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.36M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.36M | if (_parent->nereids_id() == -1) { |
120 | 1.23M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.23M | } else { |
122 | 1.13M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.13M | } |
124 | 2.36M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 68.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 68.7k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 68.7k | } else { | 122 | 68.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 68.7k | } | 124 | 68.7k | } |
_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 | 262k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 262k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 261k | } else { | 122 | 261k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 261k | } | 124 | 262k | } |
_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 | 31.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 31.1k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 31.1k | } else { | 122 | 31.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 31.1k | } | 124 | 31.1k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.83k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.83k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.82k | } else { | 122 | 9.82k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.82k | } | 124 | 9.83k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 216k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 216k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 216k | } else { | 122 | 216k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 216k | } | 124 | 216k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 464 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 464 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 464 | } else { | 122 | 464 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 464 | } | 124 | 464 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 156 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 156 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 156 | } else { | 122 | 156 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 156 | } | 124 | 156 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 944k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 944k | if (_parent->nereids_id() == -1) { | 120 | 463k | return fmt::format("(id={})", _parent->node_id()); | 121 | 481k | } else { | 122 | 481k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 481k | } | 124 | 944k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54.5k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54.5k | } else { | 122 | 54.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54.5k | } | 124 | 54.5k | } |
_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 | 18.4E | } else { | 122 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 18.4E | } | 124 | 41.2k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 407 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 407 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 305 | } else { | 122 | 305 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 305 | } | 124 | 407 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.97k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.97k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.95k | } else { | 122 | 4.95k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.95k | } | 124 | 4.97k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 732k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 732k | if (_parent->nereids_id() == -1) { | 120 | 732k | return fmt::format("(id={})", _parent->node_id()); | 121 | 18.4E | } else { | 122 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 18.4E | } | 124 | 732k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 150 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 150 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 150 | } else { | 122 | 150 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 150 | } | 124 | 150 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.42M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.42M | if (_parent->nereids_id() == -1) { |
129 | 778k | return fmt::format("(id={})", _parent->node_id()); |
130 | 778k | } else { |
131 | 646k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 646k | } |
133 | 1.42M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 117k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 117k | } else { | 131 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 117k | } | 133 | 117k | } |
_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 | 263k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 263k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 263k | } else { | 131 | 263k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 263k | } | 133 | 263k | } |
_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 | 31.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 31.3k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 31.3k | } else { | 131 | 31.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 31.3k | } | 133 | 31.3k | } |
_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.83k | } else { | 131 | 9.83k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.83k | } | 133 | 9.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 217k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 217k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 217k | } else { | 131 | 217k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 217k | } | 133 | 217k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 371 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 371 | if (_parent->nereids_id() == -1) { | 129 | 0 | 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 | 371 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 166 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 166 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 166 | } else { | 131 | 166 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 166 | } | 133 | 166 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 104 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 104 | if (_parent->nereids_id() == -1) { | 129 | 104 | return fmt::format("(id={})", _parent->node_id()); | 130 | 104 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 104 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.99k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.99k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.99k | } else { | 131 | 5.99k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.99k | } | 133 | 5.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 410 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 410 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 308 | } else { | 131 | 308 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 308 | } | 133 | 410 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.1k | if (_parent->nereids_id() == -1) { | 129 | 12.1k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 12.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 280k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 280k | if (_parent->nereids_id() == -1) { | 129 | 280k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 485k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 485k | if (_parent->nereids_id() == -1) { | 129 | 485k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 485k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 17 | if (_parent->nereids_id() == -1) { | 129 | 17 | return fmt::format("(id={})", _parent->node_id()); | 130 | 17 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 302 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 302 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 302 | } else { | 131 | 302 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 302 | } | 133 | 302 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 33.7k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 33.7k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 33.7k | _terminated = true; |
141 | 33.7k | return Status::OK(); |
142 | 33.7k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 24.0k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 24.0k | _terminated = true; | 141 | 24.0k | return Status::OK(); | 142 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1.15k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.15k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1.15k | _terminated = true; | 141 | 1.15k | return Status::OK(); | 142 | 1.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2 | _terminated = true; | 141 | 2 | return Status::OK(); | 142 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 14 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 14 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 14 | _terminated = true; | 141 | 14 | return Status::OK(); | 142 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3.90k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3.90k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3.90k | _terminated = true; | 141 | 3.90k | return Status::OK(); | 142 | 3.90k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3 | _terminated = true; | 141 | 3 | return Status::OK(); | 142 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2 | _terminated = true; | 141 | 2 | return Status::OK(); | 142 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 550 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 550 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 550 | _terminated = true; | 141 | 550 | return Status::OK(); | 142 | 550 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 14 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 14 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 14 | _terminated = true; | 141 | 14 | return Status::OK(); | 142 | 14 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3.74k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3.74k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3.74k | _terminated = true; | 141 | 3.74k | return Status::OK(); | 142 | 3.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 214 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 214 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 214 | _terminated = true; | 141 | 214 | return Status::OK(); | 142 | 214 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 142 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 142 | _terminated = true; | 141 | 142 | return Status::OK(); | 142 | 142 | } |
|
143 | | |
144 | 1.10M | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 1.10M | return _child && _child->is_serial_operator() && !is_source() |
146 | 1.10M | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 1.10M | : DataDistribution(ExchangeType::NOOP); |
148 | 1.10M | } |
149 | | |
150 | 81.7k | const RowDescriptor& OperatorBase::row_desc() const { |
151 | 81.7k | return _child->row_desc(); |
152 | 81.7k | } |
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 | 32 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 32 | fmt::memory_buffer debug_string_buffer; | 157 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 32 | return fmt::to_string(debug_string_buffer); | 159 | 32 | } |
_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 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 12 | fmt::memory_buffer debug_string_buffer; | 157 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 12 | return fmt::to_string(debug_string_buffer); | 159 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 12 | fmt::memory_buffer debug_string_buffer; | 157 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 12 | return fmt::to_string(debug_string_buffer); | 159 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 24 | fmt::memory_buffer debug_string_buffer; | 157 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 24 | return fmt::to_string(debug_string_buffer); | 159 | 24 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 20.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 20.3k | fmt::memory_buffer debug_string_buffer; | 157 | 20.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 20.3k | return fmt::to_string(debug_string_buffer); | 159 | 20.3k | } |
_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 Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 360 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 360 | fmt::memory_buffer debug_string_buffer; | 157 | 360 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 360 | return fmt::to_string(debug_string_buffer); | 159 | 360 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
160 | | |
161 | | template <typename SharedStateArg> |
162 | 20.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 20.7k | fmt::memory_buffer debug_string_buffer; |
164 | 20.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 20.7k | return fmt::to_string(debug_string_buffer); |
166 | 20.7k | } _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 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 12 | fmt::memory_buffer debug_string_buffer; | 164 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 12 | return fmt::to_string(debug_string_buffer); | 166 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 24 | fmt::memory_buffer debug_string_buffer; | 164 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 24 | return fmt::to_string(debug_string_buffer); | 166 | 24 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 399 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 399 | fmt::memory_buffer debug_string_buffer; | 164 | 399 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 399 | return fmt::to_string(debug_string_buffer); | 166 | 399 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 12 | fmt::memory_buffer debug_string_buffer; | 164 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 12 | return fmt::to_string(debug_string_buffer); | 166 | 12 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 20.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 20.2k | fmt::memory_buffer debug_string_buffer; | 164 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 20.2k | return fmt::to_string(debug_string_buffer); | 166 | 20.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
167 | | |
168 | 21.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 21.0k | fmt::memory_buffer debug_string_buffer; |
170 | 21.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 21.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 21.0k | _is_serial_operator); |
173 | 21.0k | return fmt::to_string(debug_string_buffer); |
174 | 21.0k | } |
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 | 889k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 889k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 889k | _nereids_id = tnode.nereids_id; |
183 | 889k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 5.73k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 5.73k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 5.73k | 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.73k | } |
196 | 889k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 889k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 889k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 889k | } else if (tnode.__isset.conjuncts) { |
202 | 440k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 440k | VExprContextSPtr context; |
204 | 440k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 440k | _conjuncts.emplace_back(context); |
206 | 440k | } |
207 | 141k | } |
208 | | |
209 | | // create the projections expr |
210 | 889k | if (tnode.__isset.projections) { |
211 | 353k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 353k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 353k | } |
214 | 889k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 5.74k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 5.74k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 17.6k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 17.6k | VExprContextSPtrs projections; |
219 | 17.6k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 17.6k | _intermediate_projections.push_back(projections); |
221 | 17.6k | } |
222 | 5.74k | } |
223 | 889k | return Status::OK(); |
224 | 889k | } |
225 | | |
226 | 953k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 953k | for (auto& conjunct : _conjuncts) { |
228 | 440k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 440k | } |
230 | 953k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 901k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 596k | return a->execute_cost() < b->execute_cost(); |
233 | 596k | }); |
234 | 901k | }; |
235 | | |
236 | 970k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 17.6k | RETURN_IF_ERROR( |
238 | 17.6k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 17.6k | } |
240 | 953k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 953k | if (has_output_row_desc()) { |
243 | 353k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 353k | } |
245 | | |
246 | 953k | for (auto& conjunct : _conjuncts) { |
247 | 439k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 439k | } |
249 | 953k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 953k | for (auto& projections : _intermediate_projections) { |
251 | 17.6k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 17.6k | } |
253 | 953k | if (_child && !is_source()) { |
254 | 176k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 176k | } |
256 | | |
257 | 953k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 953k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 953k | return Status::OK(); |
263 | 953k | } |
264 | | |
265 | 15.0k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 15.0k | if (_child && !is_source()) { |
267 | 5.24k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 5.24k | } |
269 | 15.0k | auto result = state->get_local_state_result(operator_id()); |
270 | 15.0k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 15.0k | return result.value()->terminate(state); |
274 | 15.0k | } |
275 | | |
276 | 6.47M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 6.47M | if (_child && !is_source()) { |
278 | 1.14M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.14M | } |
280 | 6.47M | auto result = state->get_local_state_result(operator_id()); |
281 | 6.47M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 6.47M | return result.value()->close(state); |
285 | 6.47M | } |
286 | | |
287 | 378k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 378k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 378k | } |
290 | | |
291 | 773k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 773k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 773k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 773k | return Status::OK(); |
296 | 773k | } |
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 | 378k | Block* output_block) const { |
305 | 378k | auto* local_state = state->get_local_state(operator_id()); |
306 | 378k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 378k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 378k | const size_t rows = origin_block->rows(); |
309 | 378k | if (rows == 0) { |
310 | 190k | return Status::OK(); |
311 | 190k | } |
312 | 187k | Block input_block = *origin_block; |
313 | | |
314 | 187k | size_t bytes_usage = 0; |
315 | 187k | ColumnsWithTypeAndName new_columns; |
316 | 187k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 1.16k | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 1.16k | new_columns.resize(projections.size()); |
322 | 8.30k | for (int i = 0; i < projections.size(); i++) { |
323 | 7.14k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 7.14k | 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.14k | } |
332 | 1.16k | Block tmp_block {new_columns}; |
333 | 1.16k | bytes_usage += tmp_block.allocated_bytes(); |
334 | 1.16k | input_block.swap(tmp_block); |
335 | 1.16k | } |
336 | | |
337 | 187k | 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 | 862k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 862k | 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 | 862k | } else { |
354 | 862k | if (_keep_origin || !from->is_exclusive()) { |
355 | 839k | to->insert_range_from(*from, 0, rows); |
356 | 839k | bytes_usage += from->allocated_bytes(); |
357 | 839k | } else { |
358 | 23.0k | to = from->assert_mutable(); |
359 | 23.0k | } |
360 | 862k | } |
361 | 862k | }; |
362 | | |
363 | 187k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
364 | 187k | output_block, *_output_row_descriptor); |
365 | 187k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
366 | 187k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 187k | if (rows != 0) { |
368 | 187k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
369 | 1.05M | for (int i = 0; i < mutable_columns.size(); ++i) { |
370 | 862k | ColumnPtr column_ptr; |
371 | 862k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
372 | 862k | 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 | 862k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
379 | 862k | bytes_usage += column_ptr->allocated_bytes(); |
380 | 862k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
381 | 862k | } |
382 | 187k | DCHECK(mutable_block.rows() == rows); |
383 | 187k | } |
384 | 187k | local_state->_estimate_memory_usage += bytes_usage; |
385 | | |
386 | 187k | return Status::OK(); |
387 | 187k | } |
388 | | |
389 | 5.35M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
390 | 5.35M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
391 | 5.35M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
392 | 5.35M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
393 | 5.35M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
394 | 5.35M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
395 | 5.35M | if (_debug_point_count++ % 2 == 0) { |
396 | 5.35M | return Status::OK(); |
397 | 5.35M | } |
398 | 5.35M | } |
399 | 5.35M | }); |
400 | | |
401 | 5.35M | Status status; |
402 | 5.35M | auto* local_state = state->get_local_state(operator_id()); |
403 | 5.35M | Defer defer([&]() { |
404 | 5.35M | if (status.ok()) { |
405 | 5.35M | local_state->update_output_block_counters(*block); |
406 | 5.35M | } |
407 | 5.35M | }); |
408 | 5.35M | if (_output_row_descriptor) { |
409 | 378k | local_state->clear_origin_block(); |
410 | 378k | status = get_block(state, &local_state->_origin_block, eos); |
411 | 378k | if (UNLIKELY(!status.ok())) { |
412 | 19 | return status; |
413 | 19 | } |
414 | 378k | status = do_projections(state, &local_state->_origin_block, block); |
415 | 378k | return status; |
416 | 378k | } |
417 | 4.97M | status = get_block(state, block, eos); |
418 | 4.97M | RETURN_IF_ERROR(block->check_type_and_column()); |
419 | 4.97M | return status; |
420 | 4.97M | } |
421 | | |
422 | 3.25M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
423 | 3.25M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
424 | 6.94k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
425 | 6.94k | *eos = true; |
426 | 6.94k | } |
427 | | |
428 | 3.25M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
429 | 3.25M | auto op_name = to_lower(_parent->_op_name); |
430 | 3.25M | auto arg_op_name = dp->param<std::string>("op_name"); |
431 | 3.25M | arg_op_name = to_lower(arg_op_name); |
432 | | |
433 | 3.25M | if (op_name == arg_op_name) { |
434 | 3.25M | *eos = true; |
435 | 3.25M | } |
436 | 3.25M | }); |
437 | | |
438 | 3.25M | if (auto rows = block->rows()) { |
439 | 937k | _num_rows_returned += rows; |
440 | 937k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
441 | 937k | } |
442 | 3.25M | } |
443 | | |
444 | 33.7k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
445 | 33.7k | auto result = state->get_sink_local_state_result(); |
446 | 33.7k | if (!result) { |
447 | 0 | return result.error(); |
448 | 0 | } |
449 | 33.7k | return result.value()->terminate(state); |
450 | 33.7k | } |
451 | | |
452 | 21.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
453 | 21.0k | fmt::memory_buffer debug_string_buffer; |
454 | | |
455 | 21.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
456 | 21.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
457 | 21.0k | return fmt::to_string(debug_string_buffer); |
458 | 21.0k | } |
459 | | |
460 | 20.7k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
461 | 20.7k | return state->get_sink_local_state()->debug_string(indentation_level); |
462 | 20.7k | } |
463 | | |
464 | 540k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
465 | 540k | std::string op_name = "UNKNOWN_SINK"; |
466 | 540k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
467 | | |
468 | 541k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
469 | 541k | op_name = it->second; |
470 | 541k | } |
471 | 540k | _name = op_name + "_OPERATOR"; |
472 | 540k | return Status::OK(); |
473 | 540k | } |
474 | | |
475 | 281k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
476 | 281k | std::string op_name = print_plan_node_type(tnode.node_type); |
477 | 281k | _nereids_id = tnode.nereids_id; |
478 | 281k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
479 | 281k | _name = substr + "_SINK_OPERATOR"; |
480 | 281k | return Status::OK(); |
481 | 281k | } |
482 | | |
483 | | template <typename LocalStateType> |
484 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
485 | 2.19M | LocalSinkStateInfo& info) { |
486 | 2.19M | auto local_state = LocalStateType::create_unique(this, state); |
487 | 2.19M | RETURN_IF_ERROR(local_state->init(state, info)); |
488 | 2.19M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
489 | 2.19M | return Status::OK(); |
490 | 2.19M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 117k | LocalSinkStateInfo& info) { | 486 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 117k | return Status::OK(); | 490 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 423k | LocalSinkStateInfo& info) { | 486 | 423k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 423k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 423k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 423k | return Status::OK(); | 490 | 423k | } |
_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 | 540 | LocalSinkStateInfo& info) { | 486 | 540 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 540 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 540 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 540 | return Status::OK(); | 490 | 540 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 43.1k | LocalSinkStateInfo& info) { | 486 | 43.1k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 43.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 43.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 43.1k | return Status::OK(); | 490 | 43.1k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 8.79k | LocalSinkStateInfo& info) { | 486 | 8.79k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 8.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 8.79k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 8.79k | return Status::OK(); | 490 | 8.79k | } |
_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.84k | LocalSinkStateInfo& info) { | 486 | 9.84k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 9.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 9.84k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 9.84k | return Status::OK(); | 490 | 9.84k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 101 | LocalSinkStateInfo& info) { | 486 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 101 | return Status::OK(); | 490 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 263k | LocalSinkStateInfo& info) { | 486 | 263k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 263k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 263k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 263k | return Status::OK(); | 490 | 263k | } |
_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 | 280k | LocalSinkStateInfo& info) { | 486 | 280k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 280k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 280k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 280k | return Status::OK(); | 490 | 280k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 217k | LocalSinkStateInfo& info) { | 486 | 217k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 217k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 217k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 217k | return Status::OK(); | 490 | 217k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_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_28PartitionedAggSinkLocalStateEE17setup_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_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 755k | LocalSinkStateInfo& info) { | 486 | 755k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 755k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 755k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 755k | return Status::OK(); | 490 | 755k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 31.3k | LocalSinkStateInfo& info) { | 486 | 31.3k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 31.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 31.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 31.3k | return Status::OK(); | 490 | 31.3k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.98k | LocalSinkStateInfo& info) { | 486 | 5.98k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.98k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.98k | return Status::OK(); | 490 | 5.98k | } |
_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 | 307 | LocalSinkStateInfo& info) { | 486 | 307 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 307 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 307 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 307 | return Status::OK(); | 490 | 307 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 4.65k | LocalSinkStateInfo& info) { | 486 | 4.65k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 4.65k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 4.65k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 4.65k | return Status::OK(); | 490 | 4.65k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.52k | LocalSinkStateInfo& info) { | 486 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.52k | return Status::OK(); | 490 | 2.52k | } |
_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.47k | LocalSinkStateInfo& info) { | 486 | 2.47k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.47k | return Status::OK(); | 490 | 2.47k | } |
_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 | 105 | LocalSinkStateInfo& info) { | 486 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 105 | return Status::OK(); | 490 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
|
491 | | |
492 | | template <typename LocalStateType> |
493 | 1.86M | 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.86M | } else { |
501 | 1.86M | auto ss = LocalStateType::SharedStateType::create_shared(); |
502 | 1.86M | ss->id = operator_id(); |
503 | 1.86M | for (auto& dest : dests_id()) { |
504 | 1.86M | ss->related_op_ids.insert(dest); |
505 | 1.86M | } |
506 | 1.86M | return ss; |
507 | 1.86M | } |
508 | 1.86M | } _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.0k | ss->related_op_ids.insert(dest); | 505 | 97.0k | } | 506 | 97.2k | return ss; | 507 | 97.2k | } | 508 | 97.2k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 424k | 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 | 424k | } else { | 501 | 424k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 424k | ss->id = operator_id(); | 503 | 424k | for (auto& dest : dests_id()) { | 504 | 423k | ss->related_op_ids.insert(dest); | 505 | 423k | } | 506 | 424k | return ss; | 507 | 424k | } | 508 | 424k | } |
_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 | 541 | 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 | 541 | } else { | 501 | 541 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 541 | ss->id = operator_id(); | 503 | 541 | for (auto& dest : dests_id()) { | 504 | 539 | ss->related_op_ids.insert(dest); | 505 | 539 | } | 506 | 541 | return ss; | 507 | 541 | } | 508 | 541 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 43.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 | 43.1k | } else { | 501 | 43.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 43.1k | ss->id = operator_id(); | 503 | 43.1k | for (auto& dest : dests_id()) { | 504 | 43.0k | ss->related_op_ids.insert(dest); | 505 | 43.0k | } | 506 | 43.1k | return ss; | 507 | 43.1k | } | 508 | 43.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 8.79k | 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.79k | } else { | 501 | 8.79k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 8.79k | ss->id = operator_id(); | 503 | 8.79k | for (auto& dest : dests_id()) { | 504 | 8.79k | ss->related_op_ids.insert(dest); | 505 | 8.79k | } | 506 | 8.79k | return ss; | 507 | 8.79k | } | 508 | 8.79k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.15k | 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.15k | } else { | 501 | 5.15k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.15k | 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.15k | return ss; | 507 | 5.15k | } | 508 | 5.15k | } |
_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.86k | 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.86k | } else { | 501 | 9.86k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 9.86k | ss->id = operator_id(); | 503 | 9.86k | for (auto& dest : dests_id()) { | 504 | 9.85k | ss->related_op_ids.insert(dest); | 505 | 9.85k | } | 506 | 9.86k | return ss; | 507 | 9.86k | } | 508 | 9.86k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 101 | 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 | 101 | } else { | 501 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 101 | ss->id = operator_id(); | 503 | 101 | for (auto& dest : dests_id()) { | 504 | 101 | ss->related_op_ids.insert(dest); | 505 | 101 | } | 506 | 101 | return ss; | 507 | 101 | } | 508 | 101 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 264k | 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 | 264k | } else { | 501 | 264k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 264k | ss->id = operator_id(); | 503 | 264k | for (auto& dest : dests_id()) { | 504 | 263k | ss->related_op_ids.insert(dest); | 505 | 263k | } | 506 | 264k | return ss; | 507 | 264k | } | 508 | 264k | } |
_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 | 217k | 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 | 217k | } else { | 501 | 217k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 217k | ss->id = operator_id(); | 503 | 217k | for (auto& dest : dests_id()) { | 504 | 217k | ss->related_op_ids.insert(dest); | 505 | 217k | } | 506 | 217k | return ss; | 507 | 217k | } | 508 | 217k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 165 | 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 | 165 | } else { | 501 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 165 | ss->id = operator_id(); | 503 | 165 | for (auto& dest : dests_id()) { | 504 | 165 | ss->related_op_ids.insert(dest); | 505 | 165 | } | 506 | 165 | return ss; | 507 | 165 | } | 508 | 165 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 755k | 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 | 755k | } else { | 501 | 755k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 755k | ss->id = operator_id(); | 503 | 755k | for (auto& dest : dests_id()) { | 504 | 754k | ss->related_op_ids.insert(dest); | 505 | 754k | } | 506 | 755k | return ss; | 507 | 755k | } | 508 | 755k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 31.4k | 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.4k | } else { | 501 | 31.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 31.4k | ss->id = operator_id(); | 503 | 31.4k | for (auto& dest : dests_id()) { | 504 | 31.3k | ss->related_op_ids.insert(dest); | 505 | 31.3k | } | 506 | 31.4k | return ss; | 507 | 31.4k | } | 508 | 31.4k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 410 | 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 | 410 | } else { | 501 | 410 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 410 | ss->id = operator_id(); | 503 | 410 | for (auto& dest : dests_id()) { | 504 | 410 | ss->related_op_ids.insert(dest); | 505 | 410 | } | 506 | 410 | return ss; | 507 | 410 | } | 508 | 410 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_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 | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_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 | } |
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 | 105 | 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 | 105 | } else { | 501 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 105 | ss->id = operator_id(); | 503 | 105 | for (auto& dest : dests_id()) { | 504 | 105 | ss->related_op_ids.insert(dest); | 505 | 105 | } | 506 | 105 | return ss; | 507 | 105 | } | 508 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
509 | | |
510 | | template <typename LocalStateType> |
511 | 2.69M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
512 | 2.69M | auto local_state = LocalStateType::create_unique(state, this); |
513 | 2.69M | RETURN_IF_ERROR(local_state->init(state, info)); |
514 | 2.69M | state->emplace_local_state(operator_id(), std::move(local_state)); |
515 | 2.69M | return Status::OK(); |
516 | 2.69M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 69.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 69.4k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 69.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 69.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 69.4k | return Status::OK(); | 516 | 69.4k | } |
_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 | 78 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 78 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 78 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 78 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 78 | return Status::OK(); | 516 | 78 | } |
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.84k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.84k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.84k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.84k | return Status::OK(); | 516 | 9.84k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 10.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 10.2k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 10.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 10.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 10.2k | return Status::OK(); | 516 | 10.2k | } |
_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 | 252k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 252k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 252k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 252k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 252k | return Status::OK(); | 516 | 252k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 216k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 216k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 216k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 216k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 216k | return Status::OK(); | 516 | 216k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 463 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 463 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 463 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 463 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 463 | return Status::OK(); | 516 | 463 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 156 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 156 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 156 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 156 | return Status::OK(); | 516 | 156 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 3.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 3.32k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 3.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 3.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 3.32k | return Status::OK(); | 516 | 3.32k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 463k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 463k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 463k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 463k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 463k | return Status::OK(); | 516 | 463k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.00k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.00k | return Status::OK(); | 516 | 1.00k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 31.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 31.3k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 31.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 31.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 31.3k | return Status::OK(); | 516 | 31.3k | } |
_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.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 41.3k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 41.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 41.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 41.3k | return Status::OK(); | 516 | 41.3k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 306 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 306 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 306 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 306 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 306 | return Status::OK(); | 516 | 306 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.47k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.47k | return Status::OK(); | 516 | 2.47k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.49k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.49k | return Status::OK(); | 516 | 2.49k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 466 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 466 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 466 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 466 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 466 | return Status::OK(); | 516 | 466 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.02k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.02k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.02k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.02k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.02k | return Status::OK(); | 516 | 2.02k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 6.30k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 6.30k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 6.30k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 6.30k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 6.30k | return Status::OK(); | 516 | 6.30k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 733k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 733k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 733k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 733k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 733k | return Status::OK(); | 516 | 733k | } |
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 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 151 | return Status::OK(); | 516 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.95k | return Status::OK(); | 516 | 1.95k | } |
_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.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 14.9k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 14.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 14.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 14.9k | return Status::OK(); | 516 | 14.9k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 437k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 437k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 437k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 437k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 437k | return Status::OK(); | 516 | 437k | } |
|
517 | | |
518 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
519 | | RuntimeState* state) |
520 | 2.19M | : _parent(parent), _state(state) {} |
521 | | |
522 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
523 | 2.69M | : _num_rows_returned(0), |
524 | 2.69M | _rows_returned_counter(nullptr), |
525 | 2.69M | _parent(parent), |
526 | 2.69M | _state(state), |
527 | 2.69M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
528 | | |
529 | | template <typename SharedStateArg> |
530 | 2.69M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
531 | 2.69M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
532 | 2.69M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
533 | 2.69M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
534 | 2.69M | _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.69M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
538 | 2.69M | _operator_profile->add_child(_common_profile.get(), true); |
539 | 2.69M | _operator_profile->add_child(_custom_profile.get(), true); |
540 | 2.69M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
541 | 2.69M | if constexpr (!is_fake_shared) { |
542 | 1.42M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
543 | 753k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
544 | 753k | .first.get() |
545 | 753k | ->template cast<SharedStateArg>(); |
546 | | |
547 | 753k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
548 | 753k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
549 | 753k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
550 | 753k | } else if (info.shared_state) { |
551 | 612k | 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 | 612k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
556 | | |
557 | 612k | _dependency = _shared_state->create_source_dependency( |
558 | 612k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
559 | 612k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 612k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 612k | } else { |
562 | 63.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 3.48k | DCHECK(false); |
564 | 3.48k | } |
565 | 63.6k | } |
566 | 1.42M | } |
567 | | |
568 | 2.69M | 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.69M | _rows_returned_counter = |
573 | 2.69M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
574 | 2.69M | _blocks_returned_counter = |
575 | 2.69M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
576 | 2.69M | _output_block_bytes_counter = |
577 | 2.69M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
578 | 2.69M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
579 | 2.69M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
580 | 2.69M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
581 | 2.69M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
582 | 2.69M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
583 | 2.69M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
584 | 2.69M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
585 | 2.69M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
586 | 2.69M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
587 | 2.69M | _memory_used_counter = |
588 | 2.69M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
589 | 2.69M | _common_profile->add_info_string("IsColocate", |
590 | 2.69M | std::to_string(_parent->is_colocated_operator())); |
591 | 2.69M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
592 | 2.69M | _common_profile->add_info_string("FollowedByShuffledOperator", |
593 | 2.69M | std::to_string(_parent->followed_by_shuffled_operator())); |
594 | 2.69M | return Status::OK(); |
595 | 2.69M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 69.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 69.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 69.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 69.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 69.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 | 69.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 69.2k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 69.2k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 69.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 69.2k | if constexpr (!is_fake_shared) { | 542 | 69.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 20.6k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 20.6k | .first.get() | 545 | 20.6k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 20.6k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 20.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 20.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 48.6k | } 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.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 48.1k | _dependency = _shared_state->create_source_dependency( | 558 | 48.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 48.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 48.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 48.1k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 526 | } | 566 | 69.2k | } | 567 | | | 568 | 69.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 | 69.2k | _rows_returned_counter = | 573 | 69.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 69.2k | _blocks_returned_counter = | 575 | 69.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 69.2k | _output_block_bytes_counter = | 577 | 69.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 69.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 69.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 69.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 69.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 69.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 69.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 69.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 69.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 69.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 69.2k | _memory_used_counter = | 588 | 69.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 69.2k | _common_profile->add_info_string("IsColocate", | 590 | 69.2k | std::to_string(_parent->is_colocated_operator())); | 591 | 69.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 69.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 69.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 69.2k | return Status::OK(); | 595 | 69.2k | } |
_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 | 263k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 263k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 263k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 263k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 263k | _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 | 263k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 263k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 263k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 263k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 263k | if constexpr (!is_fake_shared) { | 542 | 263k | 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 | 263k | } 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 | 259k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 259k | _dependency = _shared_state->create_source_dependency( | 558 | 259k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 259k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 259k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 259k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 4.02k | } | 566 | 263k | } | 567 | | | 568 | 263k | 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 | 263k | _rows_returned_counter = | 573 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 263k | _blocks_returned_counter = | 575 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 263k | _output_block_bytes_counter = | 577 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 263k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 263k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 263k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 263k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 263k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 263k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 263k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 263k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 263k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 263k | _memory_used_counter = | 588 | 263k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 263k | _common_profile->add_info_string("IsColocate", | 590 | 263k | std::to_string(_parent->is_colocated_operator())); | 591 | 263k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 263k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 263k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 263k | return Status::OK(); | 595 | 263k | } |
_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 | 31.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 31.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 31.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 31.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 31.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 | 31.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 31.2k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 31.2k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 31.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 31.2k | if constexpr (!is_fake_shared) { | 542 | 31.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 | 31.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 | 31.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 31.0k | _dependency = _shared_state->create_source_dependency( | 558 | 31.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 31.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 31.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 31.0k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 177 | } | 566 | 31.2k | } | 567 | | | 568 | 31.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 | 31.2k | _rows_returned_counter = | 573 | 31.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 31.2k | _blocks_returned_counter = | 575 | 31.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 31.2k | _output_block_bytes_counter = | 577 | 31.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 31.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 31.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 31.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 31.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 31.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 31.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 31.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 31.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 31.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 31.2k | _memory_used_counter = | 588 | 31.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 31.2k | _common_profile->add_info_string("IsColocate", | 590 | 31.2k | std::to_string(_parent->is_colocated_operator())); | 591 | 31.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 31.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 31.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 31.2k | return Status::OK(); | 595 | 31.2k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.86k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.86k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.86k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.86k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.86k | _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.86k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.86k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.86k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.86k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.86k | if constexpr (!is_fake_shared) { | 542 | 9.86k | 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.86k | } 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.79k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.79k | _dependency = _shared_state->create_source_dependency( | 558 | 9.79k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.79k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.79k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.79k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 70 | } | 566 | 9.86k | } | 567 | | | 568 | 9.86k | 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.86k | _rows_returned_counter = | 573 | 9.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.86k | _blocks_returned_counter = | 575 | 9.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.86k | _output_block_bytes_counter = | 577 | 9.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.86k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.86k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.86k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.86k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.86k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.86k | _memory_used_counter = | 588 | 9.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.86k | _common_profile->add_info_string("IsColocate", | 590 | 9.86k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.86k | return Status::OK(); | 595 | 9.86k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 217k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 217k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 217k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 217k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 217k | _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 | 217k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 217k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 217k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 217k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 217k | if constexpr (!is_fake_shared) { | 542 | 217k | 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 | 217k | } 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 | 213k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 213k | _dependency = _shared_state->create_source_dependency( | 558 | 213k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 213k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 213k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 213k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3.38k | } | 566 | 217k | } | 567 | | | 568 | 217k | 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 | 217k | _rows_returned_counter = | 573 | 217k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 217k | _blocks_returned_counter = | 575 | 217k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 217k | _output_block_bytes_counter = | 577 | 217k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 217k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 217k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 217k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 217k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 217k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 217k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 217k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 217k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 217k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 217k | _memory_used_counter = | 588 | 217k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 217k | _common_profile->add_info_string("IsColocate", | 590 | 217k | std::to_string(_parent->is_colocated_operator())); | 591 | 217k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 217k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 217k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 217k | return Status::OK(); | 595 | 217k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 465 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 465 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 465 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 465 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 465 | _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 | 465 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 465 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 465 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 465 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 465 | if constexpr (!is_fake_shared) { | 542 | 465 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 455 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 455 | .first.get() | 545 | 455 | ->template cast<SharedStateArg>(); | 546 | | | 547 | 455 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 455 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 455 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 455 | } 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 | 10 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 10 | } | 566 | 465 | } | 567 | | | 568 | 465 | 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 | 465 | _rows_returned_counter = | 573 | 465 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 465 | _blocks_returned_counter = | 575 | 465 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 465 | _output_block_bytes_counter = | 577 | 465 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 465 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 465 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 465 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 465 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 465 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 465 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 465 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 465 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 465 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 465 | _memory_used_counter = | 588 | 465 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 465 | _common_profile->add_info_string("IsColocate", | 590 | 465 | std::to_string(_parent->is_colocated_operator())); | 591 | 465 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 465 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 465 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 465 | return Status::OK(); | 595 | 465 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 156 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 156 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 156 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 156 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 156 | _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 | 156 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 156 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 156 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 156 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 156 | if constexpr (!is_fake_shared) { | 542 | 156 | 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 | 156 | } 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 | 156 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 156 | _dependency = _shared_state->create_source_dependency( | 558 | 156 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 156 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 156 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 156 | } | 567 | | | 568 | 156 | 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 | 156 | _rows_returned_counter = | 573 | 156 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 156 | _blocks_returned_counter = | 575 | 156 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 156 | _output_block_bytes_counter = | 577 | 156 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 156 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 156 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 156 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 156 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 156 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 156 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 156 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 156 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 156 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 156 | _memory_used_counter = | 588 | 156 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 156 | _common_profile->add_info_string("IsColocate", | 590 | 156 | std::to_string(_parent->is_colocated_operator())); | 591 | 156 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 156 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 156 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 156 | return Status::OK(); | 595 | 156 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1.26M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1.26M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1.26M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1.26M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1.26M | _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.26M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1.26M | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1.26M | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1.26M | 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.26M | 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.26M | _rows_returned_counter = | 573 | 1.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1.26M | _blocks_returned_counter = | 575 | 1.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1.26M | _output_block_bytes_counter = | 577 | 1.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1.26M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1.26M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1.26M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1.26M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1.26M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1.26M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1.26M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1.26M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1.26M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1.26M | _memory_used_counter = | 588 | 1.26M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1.26M | _common_profile->add_info_string("IsColocate", | 590 | 1.26M | std::to_string(_parent->is_colocated_operator())); | 591 | 1.26M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1.26M | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1.26M | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1.26M | return Status::OK(); | 595 | 1.26M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 54.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 54.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 54.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 54.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 54.7k | _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.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 54.7k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 54.7k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 54.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 54.7k | if constexpr (!is_fake_shared) { | 542 | 54.7k | 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.7k | } 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.85k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 2.85k | _dependency = _shared_state->create_source_dependency( | 558 | 2.85k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 2.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 2.85k | _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.7k | } | 567 | | | 568 | 54.7k | 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.7k | _rows_returned_counter = | 573 | 54.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 54.7k | _blocks_returned_counter = | 575 | 54.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 54.7k | _output_block_bytes_counter = | 577 | 54.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 54.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 54.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 54.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 54.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 54.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 54.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 54.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 54.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 54.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 54.7k | _memory_used_counter = | 588 | 54.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 54.7k | _common_profile->add_info_string("IsColocate", | 590 | 54.7k | std::to_string(_parent->is_colocated_operator())); | 591 | 54.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 54.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 54.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 54.7k | return Status::OK(); | 595 | 54.7k | } |
_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.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 41.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 41.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 41.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 41.3k | _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.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 41.3k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 41.3k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 41.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 41.3k | if constexpr (!is_fake_shared) { | 542 | 41.3k | 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.3k | } 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 | 60 | } | 566 | 41.3k | } | 567 | | | 568 | 41.3k | 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.3k | _rows_returned_counter = | 573 | 41.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 41.3k | _blocks_returned_counter = | 575 | 41.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 41.3k | _output_block_bytes_counter = | 577 | 41.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 41.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 41.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 41.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 41.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 41.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 41.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 41.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 41.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 41.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 41.3k | _memory_used_counter = | 588 | 41.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 41.3k | _common_profile->add_info_string("IsColocate", | 590 | 41.3k | std::to_string(_parent->is_colocated_operator())); | 591 | 41.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 41.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 41.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 41.3k | return Status::OK(); | 595 | 41.3k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 409 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 409 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 409 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 409 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 409 | _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 | 409 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 409 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 409 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 409 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 409 | if constexpr (!is_fake_shared) { | 542 | 409 | 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 | 410 | } 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 | 410 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 410 | _dependency = _shared_state->create_source_dependency( | 558 | 410 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 410 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 410 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 18.4E | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 18.4E | } | 566 | 409 | } | 567 | | | 568 | 409 | 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 | 409 | _rows_returned_counter = | 573 | 409 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 409 | _blocks_returned_counter = | 575 | 409 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 409 | _output_block_bytes_counter = | 577 | 409 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 409 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 409 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 409 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 409 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 409 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 409 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 409 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 409 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 409 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 409 | _memory_used_counter = | 588 | 409 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 409 | _common_profile->add_info_string("IsColocate", | 590 | 409 | std::to_string(_parent->is_colocated_operator())); | 591 | 409 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 409 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 409 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 409 | return Status::OK(); | 595 | 409 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 4.98k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 4.98k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 4.98k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 4.98k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 4.98k | _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.98k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 4.98k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 4.98k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 4.98k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 4.98k | if constexpr (!is_fake_shared) { | 542 | 4.98k | 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.98k | } 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.95k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 4.95k | _dependency = _shared_state->create_source_dependency( | 558 | 4.95k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 4.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 4.95k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 4.95k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 23 | } | 566 | 4.98k | } | 567 | | | 568 | 4.98k | 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.98k | _rows_returned_counter = | 573 | 4.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 4.98k | _blocks_returned_counter = | 575 | 4.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 4.98k | _output_block_bytes_counter = | 577 | 4.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 4.98k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 4.98k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 4.98k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 4.98k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 4.98k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 4.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 4.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 4.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 4.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 4.98k | _memory_used_counter = | 588 | 4.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 4.98k | _common_profile->add_info_string("IsColocate", | 590 | 4.98k | std::to_string(_parent->is_colocated_operator())); | 591 | 4.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 4.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 4.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 4.98k | return Status::OK(); | 595 | 4.98k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 736k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 736k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 736k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 736k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 736k | _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 | 736k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 736k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 736k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 736k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 736k | if constexpr (!is_fake_shared) { | 542 | 736k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 732k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 732k | .first.get() | 545 | 732k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 732k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 732k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 732k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 732k | } 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 | 736k | } | 567 | | | 568 | 736k | 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 | 736k | _rows_returned_counter = | 573 | 736k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 736k | _blocks_returned_counter = | 575 | 736k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 736k | _output_block_bytes_counter = | 577 | 736k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 736k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 736k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 736k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 736k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 736k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 736k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 736k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 736k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 736k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 736k | _memory_used_counter = | 588 | 736k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 736k | _common_profile->add_info_string("IsColocate", | 590 | 736k | std::to_string(_parent->is_colocated_operator())); | 591 | 736k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 736k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 736k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 736k | return Status::OK(); | 595 | 736k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 151 | _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 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 151 | if constexpr (!is_fake_shared) { | 542 | 151 | 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 | 151 | } 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 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 151 | _dependency = _shared_state->create_source_dependency( | 558 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 151 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 151 | } | 567 | | | 568 | 151 | 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 | 151 | _rows_returned_counter = | 573 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 151 | _blocks_returned_counter = | 575 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 151 | _output_block_bytes_counter = | 577 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 151 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 151 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 151 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 151 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 151 | _memory_used_counter = | 588 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 151 | _common_profile->add_info_string("IsColocate", | 590 | 151 | std::to_string(_parent->is_colocated_operator())); | 591 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 151 | return Status::OK(); | 595 | 151 | } |
|
596 | | |
597 | | template <typename SharedStateArg> |
598 | 2.70M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
599 | 2.70M | _conjuncts.resize(_parent->_conjuncts.size()); |
600 | 2.70M | _projections.resize(_parent->_projections.size()); |
601 | 3.20M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
602 | 496k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
603 | 496k | } |
604 | 5.56M | for (size_t i = 0; i < _projections.size(); i++) { |
605 | 2.86M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
606 | 2.86M | } |
607 | 2.70M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
608 | 2.72M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
609 | 21.6k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
610 | 137k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
611 | 115k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
612 | 115k | state, _intermediate_projections[i][j])); |
613 | 115k | } |
614 | 21.6k | } |
615 | 2.70M | return Status::OK(); |
616 | 2.70M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 69.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 69.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 69.9k | _projections.resize(_parent->_projections.size()); | 601 | 70.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 1.07k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 1.07k | } | 604 | 366k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 296k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 296k | } | 607 | 69.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 71.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1.32k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 14.7k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 13.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 13.4k | state, _intermediate_projections[i][j])); | 613 | 13.4k | } | 614 | 1.32k | } | 615 | 69.9k | return Status::OK(); | 616 | 69.9k | } |
_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 | 264k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 264k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 264k | _projections.resize(_parent->_projections.size()); | 601 | 264k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 264k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 355 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 355 | } | 607 | 264k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 264k | 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 | 264k | return Status::OK(); | 616 | 264k | } |
_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 | 31.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 31.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 31.4k | _projections.resize(_parent->_projections.size()); | 601 | 31.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 81 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 81 | } | 604 | 261k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 230k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 230k | } | 607 | 31.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 31.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 157 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 1.08k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 927 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 927 | state, _intermediate_projections[i][j])); | 613 | 927 | } | 614 | 157 | } | 615 | 31.4k | return Status::OK(); | 616 | 31.4k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.87k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.87k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.87k | _projections.resize(_parent->_projections.size()); | 601 | 10.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 831 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 831 | } | 604 | 26.0k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 16.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 16.1k | } | 607 | 9.87k | _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 | 691 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 600 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 600 | state, _intermediate_projections[i][j])); | 613 | 600 | } | 614 | 91 | } | 615 | 9.87k | return Status::OK(); | 616 | 9.87k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 217k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 217k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 217k | _projections.resize(_parent->_projections.size()); | 601 | 221k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 4.10k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 4.10k | } | 604 | 495k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 278k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 278k | } | 607 | 217k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 217k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 226 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 1.66k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 1.43k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 1.43k | state, _intermediate_projections[i][j])); | 613 | 1.43k | } | 614 | 226 | } | 615 | 217k | return Status::OK(); | 616 | 217k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 467 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 467 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 467 | _projections.resize(_parent->_projections.size()); | 601 | 481 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 14 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 14 | } | 604 | 1.90k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.43k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.43k | } | 607 | 467 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 467 | 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 | 467 | return Status::OK(); | 616 | 467 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 160 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 160 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 160 | _projections.resize(_parent->_projections.size()); | 601 | 160 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 344 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 184 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 184 | } | 607 | 160 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 160 | 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 | 160 | return Status::OK(); | 616 | 160 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 1.27M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 1.27M | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 1.27M | _projections.resize(_parent->_projections.size()); | 601 | 1.74M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 475k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 475k | } | 604 | 3.21M | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.94M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.94M | } | 607 | 1.27M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 1.29M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 19.8k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 119k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 99.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 99.1k | state, _intermediate_projections[i][j])); | 613 | 99.1k | } | 614 | 19.8k | } | 615 | 1.27M | return Status::OK(); | 616 | 1.27M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 54.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 54.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 54.8k | _projections.resize(_parent->_projections.size()); | 601 | 54.8k | 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.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 93.1k | } | 607 | 54.8k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 54.8k | 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.8k | return Status::OK(); | 616 | 54.8k | } |
_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 | 56.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 14.8k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 14.8k | } | 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 | 409 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 409 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 409 | _projections.resize(_parent->_projections.size()); | 601 | 409 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 409 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 409 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 409 | 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 | 409 | return Status::OK(); | 616 | 409 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 4.98k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 4.98k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 4.98k | _projections.resize(_parent->_projections.size()); | 601 | 4.98k | 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.98k | 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.98k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 4.98k | 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.98k | return Status::OK(); | 616 | 4.98k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 737k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 737k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 737k | _projections.resize(_parent->_projections.size()); | 601 | 737k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 737k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 737k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 737k | 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 | 737k | return Status::OK(); | 616 | 737k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 151 | _projections.resize(_parent->_projections.size()); | 601 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 7 | } | 604 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 296 | } | 607 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 152 | 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 | 151 | return Status::OK(); | 616 | 151 | } |
|
617 | | |
618 | | template <typename SharedStateArg> |
619 | 15.0k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
620 | 15.0k | if (_terminated) { |
621 | 0 | return Status::OK(); |
622 | 0 | } |
623 | 15.0k | _terminated = true; |
624 | 15.0k | return Status::OK(); |
625 | 15.0k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 1.14k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 1.14k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 1.14k | _terminated = true; | 624 | 1.14k | return Status::OK(); | 625 | 1.14k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 67 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 67 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 67 | _terminated = true; | 624 | 67 | return Status::OK(); | 625 | 67 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 218 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 218 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 218 | _terminated = true; | 624 | 218 | return Status::OK(); | 625 | 218 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 1 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 1 | _terminated = true; | 624 | 1 | return Status::OK(); | 625 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 140 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 140 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 140 | _terminated = true; | 624 | 140 | return Status::OK(); | 625 | 140 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 12.1k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 12.1k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 12.1k | _terminated = true; | 624 | 12.1k | return Status::OK(); | 625 | 12.1k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 9 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 9 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 9 | _terminated = true; | 624 | 9 | return Status::OK(); | 625 | 9 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 37 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 37 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 37 | _terminated = true; | 624 | 37 | return Status::OK(); | 625 | 37 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 1 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 1 | _terminated = true; | 624 | 1 | return Status::OK(); | 625 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 1.26k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 1.26k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 1.26k | _terminated = true; | 624 | 1.26k | return Status::OK(); | 625 | 1.26k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 21 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 21 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 21 | _terminated = true; | 624 | 21 | return Status::OK(); | 625 | 21 | } |
|
626 | | |
627 | | template <typename SharedStateArg> |
628 | 3.01M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
629 | 3.01M | if (_closed) { |
630 | 306k | return Status::OK(); |
631 | 306k | } |
632 | 2.70M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
633 | 1.43M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
634 | 1.43M | } |
635 | 2.70M | _closed = true; |
636 | 2.70M | return Status::OK(); |
637 | 3.01M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 69.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 69.8k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 69.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 69.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 69.8k | } | 635 | 69.8k | _closed = true; | 636 | 69.8k | return Status::OK(); | 637 | 69.8k | } |
_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 | 526k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 526k | if (_closed) { | 630 | 263k | return Status::OK(); | 631 | 263k | } | 632 | 262k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 262k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 262k | } | 635 | 262k | _closed = true; | 636 | 262k | return Status::OK(); | 637 | 526k | } |
_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 | 31.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 31.4k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 31.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 31.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 31.4k | } | 635 | 31.4k | _closed = true; | 636 | 31.4k | return Status::OK(); | 637 | 31.4k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 19.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 19.7k | if (_closed) { | 630 | 9.93k | return Status::OK(); | 631 | 9.93k | } | 632 | 9.85k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.85k | } | 635 | 9.85k | _closed = true; | 636 | 9.85k | return Status::OK(); | 637 | 19.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 217k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 217k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 217k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 217k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 217k | } | 635 | 217k | _closed = true; | 636 | 217k | return Status::OK(); | 637 | 217k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 466 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 466 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 466 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 466 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 466 | } | 635 | 466 | _closed = true; | 636 | 466 | return Status::OK(); | 637 | 466 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 155 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 155 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 155 | } | 635 | 155 | _closed = true; | 636 | 155 | return Status::OK(); | 637 | 155 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 1.29M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 1.29M | if (_closed) { | 630 | 27.4k | return Status::OK(); | 631 | 27.4k | } | 632 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | | } | 635 | 1.27M | _closed = true; | 636 | 1.27M | return Status::OK(); | 637 | 1.29M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 54.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 54.8k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 54.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 54.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 54.8k | } | 635 | 54.8k | _closed = true; | 636 | 54.8k | return Status::OK(); | 637 | 54.8k | } |
_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 | 615 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 615 | if (_closed) { | 630 | 308 | return Status::OK(); | 631 | 308 | } | 632 | 307 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 307 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 307 | } | 635 | 307 | _closed = true; | 636 | 307 | return Status::OK(); | 637 | 615 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.98k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.98k | if (_closed) { | 630 | 5.01k | return Status::OK(); | 631 | 5.01k | } | 632 | 4.97k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 4.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 4.97k | } | 635 | 4.97k | _closed = true; | 636 | 4.97k | return Status::OK(); | 637 | 9.98k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 739k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 739k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 739k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 739k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 739k | } | 635 | 739k | _closed = true; | 636 | 739k | return Status::OK(); | 637 | 739k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 304 | if (_closed) { | 630 | 162 | return Status::OK(); | 631 | 162 | } | 632 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 142 | } | 635 | 142 | _closed = true; | 636 | 142 | return Status::OK(); | 637 | 304 | } |
|
638 | | |
639 | | template <typename SharedState> |
640 | 2.19M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
641 | | // create profile |
642 | 2.19M | _operator_profile = |
643 | 2.19M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
644 | 2.19M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
645 | 2.19M | _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.19M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
651 | 2.19M | _operator_profile->add_child(_common_profile, true); |
652 | 2.19M | _operator_profile->add_child(_custom_profile, true); |
653 | | |
654 | 2.19M | _operator_profile->set_metadata(_parent->node_id()); |
655 | 2.19M | _wait_for_finish_dependency_timer = |
656 | 2.19M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
657 | 2.19M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
658 | 2.19M | if constexpr (!is_fake_shared) { |
659 | 1.44M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
660 | 1.44M | info.shared_state_map.end()) { |
661 | 301k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
662 | 280k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
663 | 280k | } |
664 | 301k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
665 | 301k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
666 | 301k | ? 0 |
667 | 301k | : info.task_idx] |
668 | 301k | .get(); |
669 | 301k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
670 | 1.13M | } else { |
671 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
672 | 18.4E | DCHECK(false); |
673 | 18.4E | } |
674 | 1.13M | _shared_state = info.shared_state->template cast<SharedState>(); |
675 | 1.13M | _dependency = _shared_state->create_sink_dependency( |
676 | 1.13M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
677 | 1.13M | } |
678 | 1.44M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
679 | 1.44M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
680 | 1.44M | } |
681 | | |
682 | 2.19M | 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.19M | _rows_input_counter = |
687 | 2.19M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
688 | 2.19M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
689 | 2.19M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
690 | 2.19M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
691 | 2.19M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
692 | 2.19M | _memory_used_counter = |
693 | 2.19M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
694 | 2.19M | _common_profile->add_info_string("IsColocate", |
695 | 2.19M | std::to_string(_parent->is_colocated_operator())); |
696 | 2.19M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
697 | 2.19M | _common_profile->add_info_string("FollowedByShuffledOperator", |
698 | 2.19M | std::to_string(_parent->followed_by_shuffled_operator())); |
699 | 2.19M | return Status::OK(); |
700 | 2.19M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 117k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 117k | _operator_profile = | 643 | 117k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 117k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 117k | _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 | 117k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 117k | _operator_profile->add_child(_common_profile, true); | 652 | 117k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 117k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 117k | _wait_for_finish_dependency_timer = | 656 | 117k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 117k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 117k | if constexpr (!is_fake_shared) { | 659 | 117k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 117k | 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 | 20.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 20.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 20.6k | ? 0 | 667 | 20.6k | : info.task_idx] | 668 | 20.6k | .get(); | 669 | 20.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 97.1k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 97.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 97.1k | _dependency = _shared_state->create_sink_dependency( | 676 | 97.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 97.1k | } | 678 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 117k | } | 681 | | | 682 | 117k | 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 | 117k | _rows_input_counter = | 687 | 117k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 117k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 117k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 117k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 117k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 117k | _memory_used_counter = | 693 | 117k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 117k | _common_profile->add_info_string("IsColocate", | 695 | 117k | std::to_string(_parent->is_colocated_operator())); | 696 | 117k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 117k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 117k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 117k | return Status::OK(); | 700 | 117k | } |
_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 | 263k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 263k | _operator_profile = | 643 | 263k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 263k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 263k | _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 | 263k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 263k | _operator_profile->add_child(_common_profile, true); | 652 | 263k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 263k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 263k | _wait_for_finish_dependency_timer = | 656 | 263k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 263k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 263k | if constexpr (!is_fake_shared) { | 659 | 263k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 263k | 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 | 263k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 263k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 263k | _dependency = _shared_state->create_sink_dependency( | 676 | 263k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 263k | } | 678 | 263k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 263k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 263k | } | 681 | | | 682 | 263k | 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 | 263k | _rows_input_counter = | 687 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 263k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 263k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 263k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 263k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 263k | _memory_used_counter = | 693 | 263k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 263k | _common_profile->add_info_string("IsColocate", | 695 | 263k | std::to_string(_parent->is_colocated_operator())); | 696 | 263k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 263k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 263k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 263k | return Status::OK(); | 700 | 263k | } |
_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 | 31.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 31.3k | _operator_profile = | 643 | 31.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 31.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 31.3k | _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 | 31.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 31.3k | _operator_profile->add_child(_common_profile, true); | 652 | 31.3k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 31.3k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 31.3k | _wait_for_finish_dependency_timer = | 656 | 31.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 31.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 31.3k | if constexpr (!is_fake_shared) { | 659 | 31.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 31.3k | 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 | 31.3k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 31.3k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 31.3k | _dependency = _shared_state->create_sink_dependency( | 676 | 31.3k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 31.3k | } | 678 | 31.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 31.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 31.3k | } | 681 | | | 682 | 31.3k | 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 | 31.3k | _rows_input_counter = | 687 | 31.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 31.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 31.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 31.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 31.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 31.3k | _memory_used_counter = | 693 | 31.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 31.3k | _common_profile->add_info_string("IsColocate", | 695 | 31.3k | std::to_string(_parent->is_colocated_operator())); | 696 | 31.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 31.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 31.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 31.3k | return Status::OK(); | 700 | 31.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 9.86k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 9.86k | _operator_profile = | 643 | 9.86k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 9.86k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 9.86k | _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.86k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 9.86k | _operator_profile->add_child(_common_profile, true); | 652 | 9.86k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 9.86k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 9.86k | _wait_for_finish_dependency_timer = | 656 | 9.86k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 9.86k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 9.86k | if constexpr (!is_fake_shared) { | 659 | 9.86k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 9.86k | 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.86k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 9.86k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 9.86k | _dependency = _shared_state->create_sink_dependency( | 676 | 9.86k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 9.86k | } | 678 | 9.86k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 9.86k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 9.86k | } | 681 | | | 682 | 9.86k | 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.86k | _rows_input_counter = | 687 | 9.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 9.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 9.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 9.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 9.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 9.86k | _memory_used_counter = | 693 | 9.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 9.86k | _common_profile->add_info_string("IsColocate", | 695 | 9.86k | std::to_string(_parent->is_colocated_operator())); | 696 | 9.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 9.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 9.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 9.86k | return Status::OK(); | 700 | 9.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 217k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 217k | _operator_profile = | 643 | 217k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 217k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 217k | _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 | 217k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 217k | _operator_profile->add_child(_common_profile, true); | 652 | 217k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 217k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 217k | _wait_for_finish_dependency_timer = | 656 | 217k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 217k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 217k | if constexpr (!is_fake_shared) { | 659 | 217k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 217k | 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 | 217k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 217k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 217k | _dependency = _shared_state->create_sink_dependency( | 676 | 217k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 217k | } | 678 | 217k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 217k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 217k | } | 681 | | | 682 | 217k | 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 | 217k | _rows_input_counter = | 687 | 217k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 217k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 217k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 217k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 217k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 217k | _memory_used_counter = | 693 | 217k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 217k | _common_profile->add_info_string("IsColocate", | 695 | 217k | std::to_string(_parent->is_colocated_operator())); | 696 | 217k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 217k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 217k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 217k | return Status::OK(); | 700 | 217k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 372 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 372 | _operator_profile = | 643 | 372 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 372 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 372 | _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 | 372 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 372 | _operator_profile->add_child(_common_profile, true); | 652 | 372 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 372 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 372 | _wait_for_finish_dependency_timer = | 656 | 372 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 372 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 372 | if constexpr (!is_fake_shared) { | 659 | 372 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 372 | 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 | 368 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 368 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 368 | ? 0 | 667 | 368 | : info.task_idx] | 668 | 368 | .get(); | 669 | 368 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 368 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 4 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 4 | _dependency = _shared_state->create_sink_dependency( | 676 | 4 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 4 | } | 678 | 372 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 372 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 372 | } | 681 | | | 682 | 372 | 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 | 372 | _rows_input_counter = | 687 | 372 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 372 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 372 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 372 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 372 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 372 | _memory_used_counter = | 693 | 372 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 372 | _common_profile->add_info_string("IsColocate", | 695 | 372 | std::to_string(_parent->is_colocated_operator())); | 696 | 372 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 372 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 372 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 372 | return Status::OK(); | 700 | 372 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 166 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 166 | _operator_profile = | 643 | 166 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 166 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 166 | _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 | 166 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 166 | _operator_profile->add_child(_common_profile, true); | 652 | 166 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 166 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 166 | _wait_for_finish_dependency_timer = | 656 | 166 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 166 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 166 | if constexpr (!is_fake_shared) { | 659 | 166 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 166 | 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 | 166 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 166 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 166 | _dependency = _shared_state->create_sink_dependency( | 676 | 166 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 166 | } | 678 | 166 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 166 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 166 | } | 681 | | | 682 | 166 | 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 | 166 | _rows_input_counter = | 687 | 166 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 166 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 166 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 166 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 166 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 166 | _memory_used_counter = | 693 | 166 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 166 | _common_profile->add_info_string("IsColocate", | 695 | 166 | std::to_string(_parent->is_colocated_operator())); | 696 | 166 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 166 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 166 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 166 | return Status::OK(); | 700 | 166 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 757k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 757k | _operator_profile = | 643 | 757k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 757k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 757k | _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 | 757k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 757k | _operator_profile->add_child(_common_profile, true); | 652 | 757k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 757k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 757k | _wait_for_finish_dependency_timer = | 656 | 757k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 757k | 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 | 757k | 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 | 757k | _rows_input_counter = | 687 | 757k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 757k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 757k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 757k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 757k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 757k | _memory_used_counter = | 693 | 757k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 757k | _common_profile->add_info_string("IsColocate", | 695 | 757k | std::to_string(_parent->is_colocated_operator())); | 696 | 757k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 757k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 757k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 757k | return Status::OK(); | 700 | 757k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 6.00k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 6.00k | _operator_profile = | 643 | 6.00k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 6.00k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 6.00k | _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.00k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 6.00k | _operator_profile->add_child(_common_profile, true); | 652 | 6.00k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 6.00k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 6.00k | _wait_for_finish_dependency_timer = | 656 | 6.00k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 6.00k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 6.00k | if constexpr (!is_fake_shared) { | 659 | 6.00k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 6.00k | 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.00k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 6.00k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 6.00k | _dependency = _shared_state->create_sink_dependency( | 676 | 6.00k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 6.00k | } | 678 | 6.00k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 6.00k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 6.00k | } | 681 | | | 682 | 6.00k | 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.00k | _rows_input_counter = | 687 | 6.00k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 6.00k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 6.00k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 6.00k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 6.00k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 6.00k | _memory_used_counter = | 693 | 6.00k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 6.00k | _common_profile->add_info_string("IsColocate", | 695 | 6.00k | std::to_string(_parent->is_colocated_operator())); | 696 | 6.00k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 6.00k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 6.00k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 6.00k | return Status::OK(); | 700 | 6.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 409 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 409 | _operator_profile = | 643 | 409 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 409 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 409 | _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 | 409 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 409 | _operator_profile->add_child(_common_profile, true); | 652 | 409 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 409 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 409 | _wait_for_finish_dependency_timer = | 656 | 409 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 409 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 409 | if constexpr (!is_fake_shared) { | 659 | 409 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 409 | 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 | 409 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 409 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 409 | _dependency = _shared_state->create_sink_dependency( | 676 | 409 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 409 | } | 678 | 409 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 409 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 409 | } | 681 | | | 682 | 409 | 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 | 409 | _rows_input_counter = | 687 | 409 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 409 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 409 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 409 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 409 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 409 | _memory_used_counter = | 693 | 409 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 409 | _common_profile->add_info_string("IsColocate", | 695 | 409 | std::to_string(_parent->is_colocated_operator())); | 696 | 409 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 409 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 409 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 409 | return Status::OK(); | 700 | 409 | } |
_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 | 280k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 280k | _operator_profile = | 643 | 280k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 280k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 280k | _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 | 280k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 280k | _operator_profile->add_child(_common_profile, true); | 652 | 280k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 280k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 280k | _wait_for_finish_dependency_timer = | 656 | 280k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 280k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 280k | if constexpr (!is_fake_shared) { | 659 | 280k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 280k | info.shared_state_map.end()) { | 661 | 280k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | 280k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | 280k | } | 664 | 280k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 280k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 280k | ? 0 | 667 | 280k | : info.task_idx] | 668 | 280k | .get(); | 669 | 280k | _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 | 280k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 280k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 280k | } | 681 | | | 682 | 280k | 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 | 280k | _rows_input_counter = | 687 | 280k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 280k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 280k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 280k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 280k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 280k | _memory_used_counter = | 693 | 280k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 280k | _common_profile->add_info_string("IsColocate", | 695 | 280k | std::to_string(_parent->is_colocated_operator())); | 696 | 280k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 280k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 280k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 280k | return Status::OK(); | 700 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 486k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 486k | _operator_profile = | 643 | 486k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 486k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 486k | _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 | 486k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 486k | _operator_profile->add_child(_common_profile, true); | 652 | 486k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 486k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 486k | _wait_for_finish_dependency_timer = | 656 | 486k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 486k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 486k | if constexpr (!is_fake_shared) { | 659 | 486k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 486k | 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 | 486k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 486k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 486k | _dependency = _shared_state->create_sink_dependency( | 676 | 486k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 486k | } | 678 | 486k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 486k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 486k | } | 681 | | | 682 | 486k | 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 | 486k | _rows_input_counter = | 687 | 486k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 486k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 486k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 486k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 486k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 486k | _memory_used_counter = | 693 | 486k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 486k | _common_profile->add_info_string("IsColocate", | 695 | 486k | std::to_string(_parent->is_colocated_operator())); | 696 | 486k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 486k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 486k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 486k | return Status::OK(); | 700 | 486k | } |
_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 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 302 | _operator_profile = | 643 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 302 | _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 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 302 | _operator_profile->add_child(_common_profile, true); | 652 | 302 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 302 | _wait_for_finish_dependency_timer = | 656 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 302 | if constexpr (!is_fake_shared) { | 659 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 302 | 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 | 302 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 302 | _dependency = _shared_state->create_sink_dependency( | 676 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 302 | } | 678 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 302 | } | 681 | | | 682 | 302 | 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 | 302 | _rows_input_counter = | 687 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 302 | _memory_used_counter = | 693 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 302 | _common_profile->add_info_string("IsColocate", | 695 | 302 | std::to_string(_parent->is_colocated_operator())); | 696 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 302 | return Status::OK(); | 700 | 302 | } |
|
701 | | |
702 | | template <typename SharedState> |
703 | 2.20M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
704 | 2.20M | if (_closed) { |
705 | 2 | return Status::OK(); |
706 | 2 | } |
707 | 2.20M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
708 | 1.44M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
709 | 1.44M | } |
710 | 2.20M | _closed = true; |
711 | 2.20M | return Status::OK(); |
712 | 2.20M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 117k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 117k | } | 710 | 117k | _closed = true; | 711 | 117k | return Status::OK(); | 712 | 117k | } |
_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 | 263k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 263k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 263k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 263k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 263k | } | 710 | 263k | _closed = true; | 711 | 263k | return Status::OK(); | 712 | 263k | } |
_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 | 31.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 31.4k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 31.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 31.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 31.4k | } | 710 | 31.4k | _closed = true; | 711 | 31.4k | return Status::OK(); | 712 | 31.4k | } |
_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 | 217k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 217k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 217k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 217k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 217k | } | 710 | 217k | _closed = true; | 711 | 217k | return Status::OK(); | 712 | 217k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 370 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 370 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 370 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 370 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 370 | } | 710 | 370 | _closed = true; | 711 | 370 | return Status::OK(); | 712 | 370 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 155 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 155 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 155 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 155 | } | 710 | 155 | _closed = true; | 711 | 155 | return Status::OK(); | 712 | 155 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 757k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 757k | 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 | 757k | _closed = true; | 711 | 757k | return Status::OK(); | 712 | 757k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 6.00k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 6.00k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 6.00k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 6.00k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 6.00k | } | 710 | 6.00k | _closed = true; | 711 | 6.00k | return Status::OK(); | 712 | 6.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 307 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 307 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 307 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 307 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 307 | } | 710 | 307 | _closed = true; | 711 | 307 | return Status::OK(); | 712 | 307 | } |
_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.2k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 12.2k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 12.2k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 12.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 12.2k | } | 710 | 12.2k | _closed = true; | 711 | 12.2k | return Status::OK(); | 712 | 12.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 281k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 281k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 281k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 281k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 281k | } | 710 | 281k | _closed = true; | 711 | 281k | return Status::OK(); | 712 | 281k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 487k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 487k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 487k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 487k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 487k | } | 710 | 487k | _closed = true; | 711 | 487k | return Status::OK(); | 712 | 487k | } |
_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 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 302 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 302 | } | 710 | 302 | _closed = true; | 711 | 302 | return Status::OK(); | 712 | 302 | } |
|
713 | | |
714 | | template <typename LocalStateType> |
715 | 84.5k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
716 | 84.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
717 | 84.5k | return pull(state, block, eos); |
718 | 84.5k | } _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 | 84.1k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 84.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 84.1k | return pull(state, block, eos); | 718 | 84.1k | } |
|
719 | | |
720 | | template <typename LocalStateType> |
721 | 784k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
722 | 784k | auto& local_state = get_local_state(state); |
723 | 784k | if (need_more_input_data(state)) { |
724 | 756k | local_state._child_block->clear_column_data( |
725 | 756k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
726 | 756k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
727 | 756k | state, local_state._child_block.get(), &local_state._child_eos)); |
728 | 756k | *eos = local_state._child_eos; |
729 | 756k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
730 | 98.1k | return Status::OK(); |
731 | 98.1k | } |
732 | 658k | { |
733 | 658k | SCOPED_TIMER(local_state.exec_time_counter()); |
734 | 658k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
735 | 658k | } |
736 | 658k | } |
737 | | |
738 | 686k | if (!need_more_input_data(state)) { |
739 | 623k | SCOPED_TIMER(local_state.exec_time_counter()); |
740 | 623k | bool new_eos = false; |
741 | 623k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
742 | 623k | if (new_eos) { |
743 | 534k | *eos = true; |
744 | 534k | } else if (!need_more_input_data(state)) { |
745 | 22.6k | *eos = false; |
746 | 22.6k | } |
747 | 623k | } |
748 | 686k | return Status::OK(); |
749 | 686k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 143k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 143k | auto& local_state = get_local_state(state); | 723 | 143k | if (need_more_input_data(state)) { | 724 | 129k | local_state._child_block->clear_column_data( | 725 | 129k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 129k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 129k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 129k | *eos = local_state._child_eos; | 729 | 129k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 42.8k | return Status::OK(); | 731 | 42.8k | } | 732 | 86.5k | { | 733 | 86.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 86.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 86.5k | } | 736 | 86.5k | } | 737 | | | 738 | 100k | if (!need_more_input_data(state)) { | 739 | 100k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 100k | bool new_eos = false; | 741 | 100k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 100k | if (new_eos) { | 743 | 45.5k | *eos = true; | 744 | 55.4k | } else if (!need_more_input_data(state)) { | 745 | 8.29k | *eos = false; | 746 | 8.29k | } | 747 | 100k | } | 748 | 100k | return Status::OK(); | 749 | 100k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 3.21k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 3.21k | auto& local_state = get_local_state(state); | 723 | 3.21k | if (need_more_input_data(state)) { | 724 | 1.93k | local_state._child_block->clear_column_data( | 725 | 1.93k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 1.93k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 1.93k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 1.93k | *eos = local_state._child_eos; | 729 | 1.93k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 520 | return Status::OK(); | 731 | 520 | } | 732 | 1.41k | { | 733 | 1.41k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 1.41k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 1.41k | } | 736 | 1.41k | } | 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.00k | *eos = true; | 744 | 1.69k | } else if (!need_more_input_data(state)) { | 745 | 1.27k | *eos = false; | 746 | 1.27k | } | 747 | 2.69k | } | 748 | 2.69k | return Status::OK(); | 749 | 2.69k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 4.70k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 4.70k | auto& local_state = get_local_state(state); | 723 | 4.70k | if (need_more_input_data(state)) { | 724 | 4.70k | local_state._child_block->clear_column_data( | 725 | 4.70k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 4.70k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 4.70k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 4.70k | *eos = local_state._child_eos; | 729 | 4.70k | 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 | 48.3k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 48.3k | auto& local_state = get_local_state(state); | 723 | 48.3k | if (need_more_input_data(state)) { | 724 | 48.2k | local_state._child_block->clear_column_data( | 725 | 48.2k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 48.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 48.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 48.2k | *eos = local_state._child_eos; | 729 | 48.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 5.28k | return Status::OK(); | 731 | 5.28k | } | 732 | 42.9k | { | 733 | 42.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 42.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 42.9k | } | 736 | 42.9k | } | 737 | | | 738 | 43.0k | if (!need_more_input_data(state)) { | 739 | 15.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 15.1k | bool new_eos = false; | 741 | 15.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 15.1k | if (new_eos) { | 743 | 14.8k | *eos = true; | 744 | 14.8k | } else if (!need_more_input_data(state)) { | 745 | 64 | *eos = false; | 746 | 64 | } | 747 | 15.1k | } | 748 | 43.0k | return Status::OK(); | 749 | 43.0k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 506k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 506k | auto& local_state = get_local_state(state); | 723 | 507k | if (need_more_input_data(state)) { | 724 | 507k | local_state._child_block->clear_column_data( | 725 | 507k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 507k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 507k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 507k | *eos = local_state._child_eos; | 729 | 507k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 33.6k | return Status::OK(); | 731 | 33.6k | } | 732 | 473k | { | 733 | 473k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 473k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 473k | } | 736 | 473k | } | 737 | | | 738 | 472k | if (!need_more_input_data(state)) { | 739 | 438k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 438k | bool new_eos = false; | 741 | 438k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 438k | if (new_eos) { | 743 | 437k | *eos = true; | 744 | 437k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 438k | } | 748 | 472k | return Status::OK(); | 749 | 472k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 72.1k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 72.1k | auto& local_state = get_local_state(state); | 723 | 72.1k | if (need_more_input_data(state)) { | 724 | 59.5k | local_state._child_block->clear_column_data( | 725 | 59.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 59.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 59.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 59.5k | *eos = local_state._child_eos; | 729 | 59.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 13.2k | return Status::OK(); | 731 | 13.2k | } | 732 | 46.2k | { | 733 | 46.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 46.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 46.2k | } | 736 | 46.2k | } | 737 | | | 738 | 58.9k | if (!need_more_input_data(state)) { | 739 | 58.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 58.4k | bool new_eos = false; | 741 | 58.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 58.4k | if (new_eos) { | 743 | 31.4k | *eos = true; | 744 | 31.4k | } else if (!need_more_input_data(state)) { | 745 | 12.6k | *eos = false; | 746 | 12.6k | } | 747 | 58.4k | } | 748 | 58.9k | return Status::OK(); | 749 | 58.9k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 6.32k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 6.32k | auto& local_state = get_local_state(state); | 723 | 6.32k | if (need_more_input_data(state)) { | 724 | 5.95k | local_state._child_block->clear_column_data( | 725 | 5.95k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 5.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 5.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 5.95k | *eos = local_state._child_eos; | 729 | 5.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 951 | return Status::OK(); | 731 | 951 | } | 732 | 5.00k | { | 733 | 5.00k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 5.00k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 5.00k | } | 736 | 5.00k | } | 737 | | | 738 | 5.36k | if (!need_more_input_data(state)) { | 739 | 5.36k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 5.36k | bool new_eos = false; | 741 | 5.36k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 5.36k | if (new_eos) { | 743 | 3.31k | *eos = true; | 744 | 3.31k | } else if (!need_more_input_data(state)) { | 745 | 366 | *eos = false; | 746 | 366 | } | 747 | 5.36k | } | 748 | 5.36k | return Status::OK(); | 749 | 5.36k | } |
|
750 | | |
751 | | template <typename Writer, typename Parent> |
752 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
753 | 61.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
754 | 61.9k | RETURN_IF_ERROR(Base::init(state, info)); |
755 | 61.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
756 | 61.9k | "AsyncWriterDependency", true); |
757 | 61.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
758 | 61.9k | _finish_dependency)); |
759 | | |
760 | 61.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
761 | 61.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
762 | 61.9k | return Status::OK(); |
763 | 61.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 540 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 540 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 540 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 540 | "AsyncWriterDependency", true); | 757 | 540 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 540 | _finish_dependency)); | 759 | | | 760 | 540 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 540 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 540 | return Status::OK(); | 763 | 540 | } |
_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 | 43.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 43.0k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 43.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 43.0k | "AsyncWriterDependency", true); | 757 | 43.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 43.0k | _finish_dependency)); | 759 | | | 760 | 43.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 43.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 43.0k | return Status::OK(); | 763 | 43.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 8.79k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 8.79k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 8.79k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 8.79k | "AsyncWriterDependency", true); | 757 | 8.79k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 8.79k | _finish_dependency)); | 759 | | | 760 | 8.79k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 8.79k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 8.79k | return Status::OK(); | 763 | 8.79k | } |
_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 | 62.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
768 | 62.0k | RETURN_IF_ERROR(Base::open(state)); |
769 | 62.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
770 | 563k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
771 | 501k | RETURN_IF_ERROR( |
772 | 501k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
773 | 501k | } |
774 | 62.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
775 | 62.0k | return Status::OK(); |
776 | 62.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 542 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 542 | RETURN_IF_ERROR(Base::open(state)); | 769 | 542 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 2.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 2.31k | RETURN_IF_ERROR( | 772 | 2.31k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 2.31k | } | 774 | 542 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 542 | return Status::OK(); | 776 | 542 | } |
_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 | 43.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 43.1k | RETURN_IF_ERROR(Base::open(state)); | 769 | 43.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 321k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 278k | RETURN_IF_ERROR( | 772 | 278k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 278k | } | 774 | 43.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 43.1k | return Status::OK(); | 776 | 43.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 8.73k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 8.73k | RETURN_IF_ERROR(Base::open(state)); | 769 | 8.73k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 53.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 44.5k | RETURN_IF_ERROR( | 772 | 44.5k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 44.5k | } | 774 | 8.73k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 8.73k | return Status::OK(); | 776 | 8.73k | } |
_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 | 137k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 131k | RETURN_IF_ERROR( | 772 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 131k | } | 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.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 38.9k | RETURN_IF_ERROR( | 772 | 38.9k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 38.9k | } | 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 | 478 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 318 | RETURN_IF_ERROR( | 772 | 318 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 318 | } | 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 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 640 | RETURN_IF_ERROR(Base::open(state)); | 769 | 640 | _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 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 640 | return Status::OK(); | 776 | 640 | } |
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.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
781 | 85.1k | return _writer->sink(block, eos); |
782 | 85.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 2.57k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 2.57k | return _writer->sink(block, eos); | 782 | 2.57k | } |
_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.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 58.1k | return _writer->sink(block, eos); | 782 | 58.1k | } |
_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.35k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 5.35k | return _writer->sink(block, eos); | 782 | 5.35k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 178 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 178 | return _writer->sink(block, eos); | 782 | 178 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 792 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 792 | return _writer->sink(block, eos); | 782 | 792 | } |
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 | 62.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
787 | 62.1k | if (_closed) { |
788 | 0 | return Status::OK(); |
789 | 0 | } |
790 | 62.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
791 | 62.1k | 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 | 62.1k | if (_writer) { |
794 | 62.1k | Status st = _writer->get_writer_status(); |
795 | 62.1k | if (exec_status.ok()) { |
796 | 62.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
797 | 62.0k | : Status::Cancelled("force close")); |
798 | 62.0k | } else { |
799 | 125 | _writer->force_close(exec_status); |
800 | 125 | } |
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 | 62.1k | RETURN_IF_ERROR(st); |
805 | 62.1k | } |
806 | 62.0k | return Base::close(state, exec_status); |
807 | 62.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 530 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 530 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 530 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 530 | 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 | 530 | if (_writer) { | 794 | 530 | Status st = _writer->get_writer_status(); | 795 | 530 | if (exec_status.ok()) { | 796 | 530 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 530 | : Status::Cancelled("force close")); | 798 | 530 | } 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 | 530 | RETURN_IF_ERROR(st); | 805 | 530 | } | 806 | 530 | return Base::close(state, exec_status); | 807 | 530 | } |
_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 | 43.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 43.2k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 43.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 43.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 | 43.2k | if (_writer) { | 794 | 43.2k | Status st = _writer->get_writer_status(); | 795 | 43.2k | if (exec_status.ok()) { | 796 | 43.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 43.2k | : Status::Cancelled("force close")); | 798 | 43.2k | } else { | 799 | 53 | _writer->force_close(exec_status); | 800 | 53 | } | 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 | 43.2k | RETURN_IF_ERROR(st); | 805 | 43.2k | } | 806 | 43.1k | return Base::close(state, exec_status); | 807 | 43.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 8.78k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 8.78k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 8.78k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 8.78k | 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.79k | if (_writer) { | 794 | 8.79k | Status st = _writer->get_writer_status(); | 795 | 8.79k | 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 | 74 | _writer->force_close(exec_status); | 800 | 74 | } | 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.79k | RETURN_IF_ERROR(st); | 805 | 8.79k | } | 806 | 8.78k | return Base::close(state, exec_status); | 807 | 8.78k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.15k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.15k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.15k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.15k | 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.14k | Status st = _writer->get_writer_status(); | 795 | 5.15k | if (exec_status.ok()) { | 796 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.15k | : Status::Cancelled("force close")); | 798 | 18.4E | } else { | 799 | 18.4E | _writer->force_close(exec_status); | 800 | 18.4E | } | 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.14k | RETURN_IF_ERROR(st); | 805 | 5.14k | } | 806 | 5.15k | return Base::close(state, exec_status); | 807 | 5.15k | } |
_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 |