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/cache_sink_operator.h" |
31 | | #include "exec/operator/cache_source_operator.h" |
32 | | #include "exec/operator/datagen_operator.h" |
33 | | #include "exec/operator/dict_sink_operator.h" |
34 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
35 | | #include "exec/operator/empty_set_operator.h" |
36 | | #include "exec/operator/es_scan_operator.h" |
37 | | #include "exec/operator/exchange_sink_operator.h" |
38 | | #include "exec/operator/exchange_source_operator.h" |
39 | | #include "exec/operator/file_scan_operator.h" |
40 | | #include "exec/operator/group_commit_block_sink_operator.h" |
41 | | #include "exec/operator/group_commit_scan_operator.h" |
42 | | #include "exec/operator/hashjoin_build_sink.h" |
43 | | #include "exec/operator/hashjoin_probe_operator.h" |
44 | | #include "exec/operator/hive_table_sink_operator.h" |
45 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
46 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
47 | | #include "exec/operator/iceberg_table_sink_operator.h" |
48 | | #include "exec/operator/jdbc_scan_operator.h" |
49 | | #include "exec/operator/jdbc_table_sink_operator.h" |
50 | | #include "exec/operator/local_merge_sort_source_operator.h" |
51 | | #include "exec/operator/materialization_opertor.h" |
52 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
53 | | #include "exec/operator/memory_scratch_sink_operator.h" |
54 | | #include "exec/operator/meta_scan_operator.h" |
55 | | #include "exec/operator/mock_operator.h" |
56 | | #include "exec/operator/mock_scan_operator.h" |
57 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
58 | | #include "exec/operator/multi_cast_data_stream_source.h" |
59 | | #include "exec/operator/nested_loop_join_build_operator.h" |
60 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
61 | | #include "exec/operator/olap_scan_operator.h" |
62 | | #include "exec/operator/olap_table_sink_operator.h" |
63 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
64 | | #include "exec/operator/partition_sort_sink_operator.h" |
65 | | #include "exec/operator/partition_sort_source_operator.h" |
66 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
67 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
68 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
69 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
70 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_scan_operator.h" |
72 | | #include "exec/operator/rec_cte_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_source_operator.h" |
74 | | #include "exec/operator/repeat_operator.h" |
75 | | #include "exec/operator/result_file_sink_operator.h" |
76 | | #include "exec/operator/result_sink_operator.h" |
77 | | #include "exec/operator/schema_scan_operator.h" |
78 | | #include "exec/operator/select_operator.h" |
79 | | #include "exec/operator/set_probe_sink_operator.h" |
80 | | #include "exec/operator/set_sink_operator.h" |
81 | | #include "exec/operator/set_source_operator.h" |
82 | | #include "exec/operator/sort_sink_operator.h" |
83 | | #include "exec/operator/sort_source_operator.h" |
84 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
85 | | #include "exec/operator/spill_sort_sink_operator.h" |
86 | | #include "exec/operator/spill_sort_source_operator.h" |
87 | | #include "exec/operator/streaming_aggregation_operator.h" |
88 | | #include "exec/operator/table_function_operator.h" |
89 | | #include "exec/operator/tvf_table_sink_operator.h" |
90 | | #include "exec/operator/union_sink_operator.h" |
91 | | #include "exec/operator/union_source_operator.h" |
92 | | #include "exec/pipeline/dependency.h" |
93 | | #include "exec/pipeline/pipeline.h" |
94 | | #include "exprs/vexpr.h" |
95 | | #include "exprs/vexpr_context.h" |
96 | | #include "runtime/runtime_profile.h" |
97 | | #include "runtime/runtime_profile_counter_names.h" |
98 | | #include "util/debug_util.h" |
99 | | #include "util/string_util.h" |
100 | | |
101 | | namespace doris { |
102 | | #include "common/compile_check_begin.h" |
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.17M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.17M | if (_parent->nereids_id() == -1) { |
120 | 1.14M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.14M | } else { |
122 | 1.02M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.02M | } |
124 | 2.17M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 97.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 97.1k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 97.1k | } else { | 122 | 97.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 97.1k | } | 124 | 97.1k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 1 | if (_parent->nereids_id() == -1) { | 120 | 1 | return fmt::format("(id={})", _parent->node_id()); | 121 | 1 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 265k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 265k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 265k | } else { | 122 | 265k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 265k | } | 124 | 265k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 35 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 35 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 35 | } else { | 122 | 35 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 35 | } | 124 | 35 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.10k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.10k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.10k | } else { | 122 | 9.10k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.10k | } | 124 | 9.10k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 8.05k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 8.05k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 8.04k | } else { | 122 | 8.04k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 8.04k | } | 124 | 8.05k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 155k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 155k | if (_parent->nereids_id() == -1) { | 120 | 27 | return fmt::format("(id={})", _parent->node_id()); | 121 | 155k | } else { | 122 | 155k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 155k | } | 124 | 155k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 52 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 52 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 52 | } else { | 122 | 52 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 52 | } | 124 | 52 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 826k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 826k | if (_parent->nereids_id() == -1) { | 120 | 392k | return fmt::format("(id={})", _parent->node_id()); | 121 | 434k | } else { | 122 | 434k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 434k | } | 124 | 826k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54.3k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54.3k | } else { | 122 | 54.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54.3k | } | 124 | 54.3k | } |
_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 | 8.26k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 8.26k | if (_parent->nereids_id() == -1) { | 120 | 8.25k | return fmt::format("(id={})", _parent->node_id()); | 121 | 8.25k | } else { | 122 | 4 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4 | } | 124 | 8.26k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 381 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 381 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 279 | } else { | 122 | 279 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 279 | } | 124 | 381 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 5.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 5.14k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 5.13k | } else { | 122 | 5.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 5.13k | } | 124 | 5.14k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 742k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 742k | if (_parent->nereids_id() == -1) { | 120 | 742k | 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 | 742k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 151 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 151 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 151 | } else { | 122 | 151 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 151 | } | 124 | 151 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.39M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.39M | if (_parent->nereids_id() == -1) { |
129 | 801k | return fmt::format("(id={})", _parent->node_id()); |
130 | 801k | } else { |
131 | 596k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 596k | } |
133 | 1.39M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 146k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 146k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 146k | } else { | 131 | 146k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 146k | } | 133 | 146k | } |
_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 | 267k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 267k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 267k | } else { | 131 | 267k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 267k | } | 133 | 267k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 41 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 41 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 41 | } else { | 131 | 41 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 41 | } | 133 | 41 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.38k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.38k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.38k | } else { | 131 | 9.38k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.38k | } | 133 | 9.38k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.10k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.10k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.09k | } else { | 131 | 8.09k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.09k | } | 133 | 8.10k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 155k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 155k | if (_parent->nereids_id() == -1) { | 129 | 27 | return fmt::format("(id={})", _parent->node_id()); | 130 | 155k | } else { | 131 | 155k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 155k | } | 133 | 155k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 62 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 62 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 62 | } else { | 131 | 62 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 62 | } | 133 | 62 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 131 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 131 | if (_parent->nereids_id() == -1) { | 129 | 131 | return fmt::format("(id={})", _parent->node_id()); | 130 | 131 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.70k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.70k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.70k | } else { | 131 | 8.70k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.70k | } | 133 | 8.70k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 381 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 381 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 279 | } else { | 131 | 279 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 279 | } | 133 | 381 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.6k | if (_parent->nereids_id() == -1) { | 129 | 12.6k | 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.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 318k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 318k | if (_parent->nereids_id() == -1) { | 129 | 318k | return fmt::format("(id={})", _parent->node_id()); | 130 | 318k | } else { | 131 | 43 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 43 | } | 133 | 318k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 470k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 470k | if (_parent->nereids_id() == -1) { | 129 | 470k | return fmt::format("(id={})", _parent->node_id()); | 130 | 470k | } else { | 131 | 232 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 232 | } | 133 | 470k | } |
_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 | 28.6k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 28.6k | if (_terminated) { |
138 | 1 | return Status::OK(); |
139 | 1 | } |
140 | 28.6k | _terminated = true; |
141 | 28.6k | return Status::OK(); |
142 | 28.6k | } _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 | 602 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 602 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 602 | _terminated = true; | 141 | 602 | return Status::OK(); | 142 | 602 | } |
_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 | 15 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 15 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 15 | _terminated = true; | 141 | 15 | return Status::OK(); | 142 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4 | _terminated = true; | 141 | 4 | return Status::OK(); | 142 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2.94k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2.94k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2.94k | _terminated = true; | 141 | 2.94k | return Status::OK(); | 142 | 2.94k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 627 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 627 | if (_terminated) { | 138 | 1 | return Status::OK(); | 139 | 1 | } | 140 | 626 | _terminated = true; | 141 | 626 | return Status::OK(); | 142 | 627 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 15 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 15 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 15 | _terminated = true; | 141 | 15 | return Status::OK(); | 142 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 101 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 101 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 101 | _terminated = true; | 141 | 101 | return Status::OK(); | 142 | 101 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_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_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 176 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 176 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 176 | _terminated = true; | 141 | 176 | return Status::OK(); | 142 | 176 | } |
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 | 800k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 800k | return _child && _child->is_serial_operator() && !is_source() |
146 | 800k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 800k | : DataDistribution(ExchangeType::NOOP); |
148 | 800k | } |
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 | 50.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
156 | 50.3k | fmt::memory_buffer debug_string_buffer; |
157 | 50.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
158 | 50.3k | return fmt::to_string(debug_string_buffer); |
159 | 50.3k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 96 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 96 | fmt::memory_buffer debug_string_buffer; | 157 | 96 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 96 | return fmt::to_string(debug_string_buffer); | 159 | 96 | } |
_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 | 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 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 25 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 25 | fmt::memory_buffer debug_string_buffer; | 157 | 25 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 25 | return fmt::to_string(debug_string_buffer); | 159 | 25 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_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 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 50.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 50.0k | fmt::memory_buffer debug_string_buffer; | 157 | 50.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 50.0k | return fmt::to_string(debug_string_buffer); | 159 | 50.0k | } |
_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 | 169 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 169 | fmt::memory_buffer debug_string_buffer; | 157 | 169 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 169 | return fmt::to_string(debug_string_buffer); | 159 | 169 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
160 | | |
161 | | template <typename SharedStateArg> |
162 | 50.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 50.2k | fmt::memory_buffer debug_string_buffer; |
164 | 50.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 50.2k | return fmt::to_string(debug_string_buffer); |
166 | 50.2k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 16 | fmt::memory_buffer debug_string_buffer; | 164 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 16 | return fmt::to_string(debug_string_buffer); | 166 | 16 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 32 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 32 | fmt::memory_buffer debug_string_buffer; | 164 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 32 | return fmt::to_string(debug_string_buffer); | 166 | 32 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 16 | fmt::memory_buffer debug_string_buffer; | 164 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 16 | return fmt::to_string(debug_string_buffer); | 166 | 16 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 32 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 32 | fmt::memory_buffer debug_string_buffer; | 164 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 32 | return fmt::to_string(debug_string_buffer); | 166 | 32 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 121 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 121 | fmt::memory_buffer debug_string_buffer; | 164 | 121 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 121 | return fmt::to_string(debug_string_buffer); | 166 | 121 | } |
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 | 98 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 98 | fmt::memory_buffer debug_string_buffer; | 164 | 98 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 98 | return fmt::to_string(debug_string_buffer); | 166 | 98 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 49.9k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 49.9k | fmt::memory_buffer debug_string_buffer; | 164 | 49.9k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 49.9k | return fmt::to_string(debug_string_buffer); | 166 | 49.9k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
167 | | |
168 | 50.5k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 50.5k | fmt::memory_buffer debug_string_buffer; |
170 | 50.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 50.5k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 50.5k | _is_serial_operator); |
173 | 50.5k | return fmt::to_string(debug_string_buffer); |
174 | 50.5k | } |
175 | | |
176 | 50.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
177 | 50.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
178 | 50.3k | } |
179 | | |
180 | 689k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 689k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 689k | _nereids_id = tnode.nereids_id; |
183 | 689k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 3.00k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 3.00k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 3.00k | 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 | 3.00k | } |
196 | 689k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 689k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 689k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 689k | } else if (tnode.__isset.conjuncts) { |
202 | 436k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 436k | VExprContextSPtr context; |
204 | 436k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 436k | _conjuncts.emplace_back(context); |
206 | 436k | } |
207 | 138k | } |
208 | | |
209 | | // create the projections expr |
210 | 689k | if (tnode.__isset.projections) { |
211 | 301k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 301k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 301k | } |
214 | 689k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 3.00k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 3.00k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 4.08k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 4.08k | VExprContextSPtrs projections; |
219 | 4.08k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 4.08k | _intermediate_projections.push_back(projections); |
221 | 4.08k | } |
222 | 3.00k | } |
223 | 689k | return Status::OK(); |
224 | 689k | } |
225 | | |
226 | 719k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 719k | for (auto& conjunct : _conjuncts) { |
228 | 435k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 435k | } |
230 | 719k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 669k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 594k | return a->execute_cost() < b->execute_cost(); |
233 | 594k | }); |
234 | 669k | }; |
235 | | |
236 | 723k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 4.08k | RETURN_IF_ERROR( |
238 | 4.08k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 4.08k | } |
240 | 719k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 719k | if (has_output_row_desc()) { |
243 | 301k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 301k | } |
245 | | |
246 | 719k | for (auto& conjunct : _conjuncts) { |
247 | 435k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 435k | } |
249 | 719k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 719k | for (auto& projections : _intermediate_projections) { |
251 | 4.08k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 4.08k | } |
253 | 719k | if (_child && !is_source()) { |
254 | 137k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 137k | } |
256 | | |
257 | 719k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 719k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 719k | return Status::OK(); |
263 | 719k | } |
264 | | |
265 | 6.61k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 6.61k | if (_child && !is_source()) { |
267 | 1.93k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 1.93k | } |
269 | 6.61k | auto result = state->get_local_state_result(operator_id()); |
270 | 6.61k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 6.61k | return result.value()->terminate(state); |
274 | 6.61k | } |
275 | | |
276 | 6.05M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 6.05M | if (_child && !is_source()) { |
278 | 1.07M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.07M | } |
280 | 6.05M | auto result = state->get_local_state_result(operator_id()); |
281 | 6.05M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 6.05M | return result.value()->close(state); |
285 | 6.05M | } |
286 | | |
287 | 308k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 308k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 308k | } |
290 | | |
291 | 582k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 582k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 582k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 582k | return Status::OK(); |
296 | 582k | } |
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 | 308k | Block* output_block) const { |
305 | 308k | auto* local_state = state->get_local_state(operator_id()); |
306 | 308k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 308k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 308k | const size_t rows = origin_block->rows(); |
309 | 308k | if (rows == 0) { |
310 | 168k | return Status::OK(); |
311 | 168k | } |
312 | 139k | Block input_block = *origin_block; |
313 | | |
314 | 139k | size_t bytes_usage = 0; |
315 | 139k | ColumnsWithTypeAndName new_columns; |
316 | 139k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 1.23k | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 1.23k | new_columns.resize(projections.size()); |
322 | 8.95k | for (int i = 0; i < projections.size(); i++) { |
323 | 7.72k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 7.72k | 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.72k | } |
332 | 1.23k | Block tmp_block {new_columns}; |
333 | 1.23k | bytes_usage += tmp_block.allocated_bytes(); |
334 | 1.23k | input_block.swap(tmp_block); |
335 | 1.23k | } |
336 | | |
337 | 139k | 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 | 646k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 646k | 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)->assume_mutable(); |
352 | 0 | } |
353 | 646k | } else { |
354 | 646k | if (_keep_origin || !from->is_exclusive()) { |
355 | 633k | to->insert_range_from(*from, 0, rows); |
356 | 633k | bytes_usage += from->allocated_bytes(); |
357 | 633k | } else { |
358 | 13.2k | to = from->assume_mutable(); |
359 | 13.2k | } |
360 | 646k | } |
361 | 646k | }; |
362 | | |
363 | 139k | MutableBlock mutable_block = |
364 | 139k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
365 | 139k | if (rows != 0) { |
366 | 139k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 139k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
368 | 785k | for (int i = 0; i < mutable_columns.size(); ++i) { |
369 | 646k | ColumnPtr column_ptr; |
370 | 646k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 646k | if (column_ptr->size() != rows) { |
372 | 0 | return Status::InternalError( |
373 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
374 | 0 | column_ptr->size(), rows, |
375 | 0 | local_state->_projections[i]->root()->debug_string()); |
376 | 0 | } |
377 | 646k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 646k | bytes_usage += column_ptr->allocated_bytes(); |
379 | 646k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
380 | 646k | } |
381 | 139k | DCHECK(mutable_block.rows() == rows); |
382 | 139k | output_block->set_columns(std::move(mutable_columns)); |
383 | 139k | } |
384 | | |
385 | 139k | local_state->_estimate_memory_usage += bytes_usage; |
386 | | |
387 | 139k | return Status::OK(); |
388 | 139k | } |
389 | | |
390 | 3.98M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
391 | 3.98M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
392 | 3.98M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
393 | 3.98M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
394 | 3.98M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
395 | 3.98M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
396 | 3.98M | if (_debug_point_count++ % 2 == 0) { |
397 | 3.98M | return Status::OK(); |
398 | 3.98M | } |
399 | 3.98M | } |
400 | 3.98M | }); |
401 | | |
402 | 3.98M | Status status; |
403 | 3.98M | auto* local_state = state->get_local_state(operator_id()); |
404 | 3.98M | Defer defer([&]() { |
405 | 3.98M | if (status.ok()) { |
406 | 3.98M | if (auto rows = block->rows()) { |
407 | 887k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
408 | 887k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
409 | 887k | } |
410 | 3.98M | } |
411 | 3.98M | }); |
412 | 3.98M | if (_output_row_descriptor) { |
413 | 308k | local_state->clear_origin_block(); |
414 | 308k | status = get_block(state, &local_state->_origin_block, eos); |
415 | 308k | if (UNLIKELY(!status.ok())) { |
416 | 17 | return status; |
417 | 17 | } |
418 | 308k | status = do_projections(state, &local_state->_origin_block, block); |
419 | 308k | return status; |
420 | 308k | } |
421 | 3.67M | status = get_block(state, block, eos); |
422 | 3.67M | RETURN_IF_ERROR(block->check_type_and_column()); |
423 | 3.67M | return status; |
424 | 3.67M | } |
425 | | |
426 | 3.05M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
427 | 3.05M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
428 | 6.21k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
429 | 6.21k | *eos = true; |
430 | 6.21k | } |
431 | | |
432 | 3.05M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
433 | 3.05M | auto op_name = to_lower(_parent->_op_name); |
434 | 3.05M | auto arg_op_name = dp->param<std::string>("op_name"); |
435 | 3.05M | arg_op_name = to_lower(arg_op_name); |
436 | | |
437 | 3.05M | if (op_name == arg_op_name) { |
438 | 3.05M | *eos = true; |
439 | 3.05M | } |
440 | 3.05M | }); |
441 | | |
442 | 3.05M | if (auto rows = block->rows()) { |
443 | 831k | _num_rows_returned += rows; |
444 | 831k | } |
445 | 3.05M | } |
446 | | |
447 | 28.6k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
448 | 28.6k | auto result = state->get_sink_local_state_result(); |
449 | 28.6k | if (!result) { |
450 | 0 | return result.error(); |
451 | 0 | } |
452 | 28.6k | return result.value()->terminate(state); |
453 | 28.6k | } |
454 | | |
455 | 50.3k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
456 | 50.3k | fmt::memory_buffer debug_string_buffer; |
457 | | |
458 | 50.3k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
459 | 50.3k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
460 | 50.3k | return fmt::to_string(debug_string_buffer); |
461 | 50.3k | } |
462 | | |
463 | 50.2k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
464 | 50.2k | return state->get_sink_local_state()->debug_string(indentation_level); |
465 | 50.2k | } |
466 | | |
467 | 433k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
468 | 433k | std::string op_name = "UNKNOWN_SINK"; |
469 | 433k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
470 | | |
471 | 433k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
472 | 432k | op_name = it->second; |
473 | 432k | } |
474 | 433k | _name = op_name + "_OPERATOR"; |
475 | 433k | return Status::OK(); |
476 | 433k | } |
477 | | |
478 | 194k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
479 | 194k | std::string op_name = print_plan_node_type(tnode.node_type); |
480 | 194k | _nereids_id = tnode.nereids_id; |
481 | 194k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
482 | 194k | _name = substr + "_SINK_OPERATOR"; |
483 | 194k | return Status::OK(); |
484 | 194k | } |
485 | | |
486 | | template <typename LocalStateType> |
487 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
488 | 2.05M | LocalSinkStateInfo& info) { |
489 | 2.05M | auto local_state = LocalStateType::create_unique(this, state); |
490 | 2.05M | RETURN_IF_ERROR(local_state->init(state, info)); |
491 | 2.05M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
492 | 2.05M | return Status::OK(); |
493 | 2.05M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 146k | LocalSinkStateInfo& info) { | 489 | 146k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 146k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 146k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 146k | return Status::OK(); | 493 | 146k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 401k | LocalSinkStateInfo& info) { | 489 | 401k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 401k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 401k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 401k | return Status::OK(); | 493 | 401k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 80 | LocalSinkStateInfo& info) { | 489 | 80 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 80 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 80 | return Status::OK(); | 493 | 80 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 3 | LocalSinkStateInfo& info) { | 489 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 3 | return Status::OK(); | 493 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 518 | LocalSinkStateInfo& info) { | 489 | 518 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 518 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 518 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 518 | return Status::OK(); | 493 | 518 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 53.8k | LocalSinkStateInfo& info) { | 489 | 53.8k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 53.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 53.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 53.8k | return Status::OK(); | 493 | 53.8k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 5.46k | LocalSinkStateInfo& info) { | 489 | 5.46k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 5.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 5.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 5.46k | return Status::OK(); | 493 | 5.46k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 5.14k | LocalSinkStateInfo& info) { | 489 | 5.14k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 5.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 5.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 5.14k | return Status::OK(); | 493 | 5.14k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 156 | LocalSinkStateInfo& info) { | 489 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 156 | return Status::OK(); | 493 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 3.38k | LocalSinkStateInfo& info) { | 489 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 3.38k | return Status::OK(); | 493 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 160 | LocalSinkStateInfo& info) { | 489 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 160 | return Status::OK(); | 493 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 640 | LocalSinkStateInfo& info) { | 489 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 640 | return Status::OK(); | 493 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 8.11k | LocalSinkStateInfo& info) { | 489 | 8.11k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 8.11k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 8.11k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 8.11k | return Status::OK(); | 493 | 8.11k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 128 | LocalSinkStateInfo& info) { | 489 | 128 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 128 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 128 | return Status::OK(); | 493 | 128 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 268k | LocalSinkStateInfo& info) { | 489 | 268k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 268k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 268k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 268k | return Status::OK(); | 493 | 268k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 41 | LocalSinkStateInfo& info) { | 489 | 41 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 41 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 41 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 41 | return Status::OK(); | 493 | 41 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 318k | LocalSinkStateInfo& info) { | 489 | 318k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 318k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 318k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 318k | return Status::OK(); | 493 | 318k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 155k | LocalSinkStateInfo& info) { | 489 | 155k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 155k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 155k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 155k | return Status::OK(); | 493 | 155k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 62 | LocalSinkStateInfo& info) { | 489 | 62 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 62 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 62 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 62 | return Status::OK(); | 493 | 62 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 652k | LocalSinkStateInfo& info) { | 489 | 652k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 652k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 652k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 652k | return Status::OK(); | 493 | 652k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 9.40k | LocalSinkStateInfo& info) { | 489 | 9.40k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 9.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 9.40k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 9.40k | return Status::OK(); | 493 | 9.40k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 8.70k | LocalSinkStateInfo& info) { | 489 | 8.70k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 8.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 8.70k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 8.70k | return Status::OK(); | 493 | 8.70k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 3.05k | LocalSinkStateInfo& info) { | 489 | 3.05k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 3.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 3.05k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 3.05k | return Status::OK(); | 493 | 3.05k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 278 | LocalSinkStateInfo& info) { | 489 | 278 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 278 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 278 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 278 | return Status::OK(); | 493 | 278 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 4.73k | LocalSinkStateInfo& info) { | 489 | 4.73k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 4.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 4.73k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 4.73k | return Status::OK(); | 493 | 4.73k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.72k | LocalSinkStateInfo& info) { | 489 | 2.72k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.72k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.72k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.72k | return Status::OK(); | 493 | 2.72k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.51k | LocalSinkStateInfo& info) { | 489 | 2.51k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.51k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.51k | return Status::OK(); | 493 | 2.51k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.62k | LocalSinkStateInfo& info) { | 489 | 2.62k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.62k | return Status::OK(); | 493 | 2.62k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 1 | LocalSinkStateInfo& info) { | 489 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 1 | return Status::OK(); | 493 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 165 | LocalSinkStateInfo& info) { | 489 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 165 | return Status::OK(); | 493 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 14 | LocalSinkStateInfo& info) { | 489 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 14 | return Status::OK(); | 493 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 105 | LocalSinkStateInfo& info) { | 489 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 105 | return Status::OK(); | 493 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 151 | LocalSinkStateInfo& info) { | 489 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 151 | return Status::OK(); | 493 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 151 | LocalSinkStateInfo& info) { | 489 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 151 | return Status::OK(); | 493 | 151 | } |
|
494 | | |
495 | | template <typename LocalStateType> |
496 | 1.70M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
498 | 0 | LocalExchangeSharedState>) { |
499 | 0 | return nullptr; |
500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
501 | 0 | MultiCastSharedState>) { |
502 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
503 | 1.70M | } else { |
504 | 1.70M | auto ss = LocalStateType::SharedStateType::create_shared(); |
505 | 1.70M | ss->id = operator_id(); |
506 | 1.70M | for (auto& dest : dests_id()) { |
507 | 1.69M | ss->related_op_ids.insert(dest); |
508 | 1.69M | } |
509 | 1.70M | return ss; |
510 | 1.70M | } |
511 | 1.70M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 129k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 129k | } else { | 504 | 129k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 129k | ss->id = operator_id(); | 506 | 129k | for (auto& dest : dests_id()) { | 507 | 129k | ss->related_op_ids.insert(dest); | 508 | 129k | } | 509 | 129k | return ss; | 510 | 129k | } | 511 | 129k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 402k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 402k | } else { | 504 | 402k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 402k | ss->id = operator_id(); | 506 | 402k | for (auto& dest : dests_id()) { | 507 | 401k | ss->related_op_ids.insert(dest); | 508 | 401k | } | 509 | 402k | return ss; | 510 | 402k | } | 511 | 402k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 80 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 80 | } else { | 504 | 80 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 80 | ss->id = operator_id(); | 506 | 80 | for (auto& dest : dests_id()) { | 507 | 80 | ss->related_op_ids.insert(dest); | 508 | 80 | } | 509 | 80 | return ss; | 510 | 80 | } | 511 | 80 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 3 | } else { | 504 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 3 | ss->id = operator_id(); | 506 | 3 | for (auto& dest : dests_id()) { | 507 | 3 | ss->related_op_ids.insert(dest); | 508 | 3 | } | 509 | 3 | return ss; | 510 | 3 | } | 511 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 518 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 518 | } else { | 504 | 518 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 518 | ss->id = operator_id(); | 506 | 520 | for (auto& dest : dests_id()) { | 507 | 520 | ss->related_op_ids.insert(dest); | 508 | 520 | } | 509 | 518 | return ss; | 510 | 518 | } | 511 | 518 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 52.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 52.7k | } else { | 504 | 52.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 52.7k | ss->id = operator_id(); | 506 | 52.7k | for (auto& dest : dests_id()) { | 507 | 52.5k | ss->related_op_ids.insert(dest); | 508 | 52.5k | } | 509 | 52.7k | return ss; | 510 | 52.7k | } | 511 | 52.7k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 4.96k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 4.96k | } else { | 504 | 4.96k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 4.96k | ss->id = operator_id(); | 506 | 4.96k | for (auto& dest : dests_id()) { | 507 | 4.96k | ss->related_op_ids.insert(dest); | 508 | 4.96k | } | 509 | 4.96k | return ss; | 510 | 4.96k | } | 511 | 4.96k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 5.14k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 5.14k | } else { | 504 | 5.14k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 5.14k | ss->id = operator_id(); | 506 | 5.14k | for (auto& dest : dests_id()) { | 507 | 5.14k | ss->related_op_ids.insert(dest); | 508 | 5.14k | } | 509 | 5.14k | return ss; | 510 | 5.14k | } | 511 | 5.14k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 156 | } else { | 504 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 156 | ss->id = operator_id(); | 506 | 156 | for (auto& dest : dests_id()) { | 507 | 156 | ss->related_op_ids.insert(dest); | 508 | 156 | } | 509 | 156 | return ss; | 510 | 156 | } | 511 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 3.38k | } else { | 504 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 3.38k | ss->id = operator_id(); | 506 | 3.38k | for (auto& dest : dests_id()) { | 507 | 3.38k | ss->related_op_ids.insert(dest); | 508 | 3.38k | } | 509 | 3.38k | return ss; | 510 | 3.38k | } | 511 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 160 | } else { | 504 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 160 | ss->id = operator_id(); | 506 | 160 | for (auto& dest : dests_id()) { | 507 | 160 | ss->related_op_ids.insert(dest); | 508 | 160 | } | 509 | 160 | return ss; | 510 | 160 | } | 511 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 640 | } else { | 504 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 640 | ss->id = operator_id(); | 506 | 640 | for (auto& dest : dests_id()) { | 507 | 640 | ss->related_op_ids.insert(dest); | 508 | 640 | } | 509 | 640 | return ss; | 510 | 640 | } | 511 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 8.13k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 8.13k | } else { | 504 | 8.13k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 8.13k | ss->id = operator_id(); | 506 | 8.13k | for (auto& dest : dests_id()) { | 507 | 8.12k | ss->related_op_ids.insert(dest); | 508 | 8.12k | } | 509 | 8.13k | return ss; | 510 | 8.13k | } | 511 | 8.13k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 128 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 128 | } else { | 504 | 128 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 128 | ss->id = operator_id(); | 506 | 128 | for (auto& dest : dests_id()) { | 507 | 128 | ss->related_op_ids.insert(dest); | 508 | 128 | } | 509 | 128 | return ss; | 510 | 128 | } | 511 | 128 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 268k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 268k | } else { | 504 | 268k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 268k | ss->id = operator_id(); | 506 | 268k | for (auto& dest : dests_id()) { | 507 | 267k | ss->related_op_ids.insert(dest); | 508 | 267k | } | 509 | 268k | return ss; | 510 | 268k | } | 511 | 268k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 43 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 43 | } else { | 504 | 43 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 43 | ss->id = operator_id(); | 506 | 43 | for (auto& dest : dests_id()) { | 507 | 43 | ss->related_op_ids.insert(dest); | 508 | 43 | } | 509 | 43 | return ss; | 510 | 43 | } | 511 | 43 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 156k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 156k | } else { | 504 | 156k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 156k | ss->id = operator_id(); | 506 | 156k | for (auto& dest : dests_id()) { | 507 | 155k | ss->related_op_ids.insert(dest); | 508 | 155k | } | 509 | 156k | return ss; | 510 | 156k | } | 511 | 156k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 61 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 61 | } else { | 504 | 61 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 61 | ss->id = operator_id(); | 506 | 61 | for (auto& dest : dests_id()) { | 507 | 61 | ss->related_op_ids.insert(dest); | 508 | 61 | } | 509 | 61 | return ss; | 510 | 61 | } | 511 | 61 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 653k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 653k | } else { | 504 | 653k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 653k | ss->id = operator_id(); | 506 | 653k | for (auto& dest : dests_id()) { | 507 | 650k | ss->related_op_ids.insert(dest); | 508 | 650k | } | 509 | 653k | return ss; | 510 | 653k | } | 511 | 653k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 9.40k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 9.40k | } else { | 504 | 9.40k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 9.40k | ss->id = operator_id(); | 506 | 9.40k | for (auto& dest : dests_id()) { | 507 | 9.39k | ss->related_op_ids.insert(dest); | 508 | 9.39k | } | 509 | 9.40k | return ss; | 510 | 9.40k | } | 511 | 9.40k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 381 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 381 | } else { | 504 | 381 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 381 | ss->id = operator_id(); | 506 | 381 | for (auto& dest : dests_id()) { | 507 | 381 | ss->related_op_ids.insert(dest); | 508 | 381 | } | 509 | 381 | return ss; | 510 | 381 | } | 511 | 381 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 496 | 2.51k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 2.51k | } else { | 504 | 2.51k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 2.51k | ss->id = operator_id(); | 506 | 2.51k | for (auto& dest : dests_id()) { | 507 | 2.50k | ss->related_op_ids.insert(dest); | 508 | 2.50k | } | 509 | 2.51k | return ss; | 510 | 2.51k | } | 511 | 2.51k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 496 | 2.62k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 2.62k | } else { | 504 | 2.62k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 2.62k | ss->id = operator_id(); | 506 | 2.62k | for (auto& dest : dests_id()) { | 507 | 2.61k | ss->related_op_ids.insert(dest); | 508 | 2.61k | } | 509 | 2.62k | return ss; | 510 | 2.62k | } | 511 | 2.62k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 165 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 165 | } else { | 504 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 165 | ss->id = operator_id(); | 506 | 165 | for (auto& dest : dests_id()) { | 507 | 165 | ss->related_op_ids.insert(dest); | 508 | 165 | } | 509 | 165 | return ss; | 510 | 165 | } | 511 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 105 | } else { | 504 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 105 | ss->id = operator_id(); | 506 | 105 | for (auto& dest : dests_id()) { | 507 | 105 | ss->related_op_ids.insert(dest); | 508 | 105 | } | 509 | 105 | return ss; | 510 | 105 | } | 511 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
512 | | |
513 | | template <typename LocalStateType> |
514 | 2.51M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
515 | 2.51M | auto local_state = LocalStateType::create_unique(state, this); |
516 | 2.51M | RETURN_IF_ERROR(local_state->init(state, info)); |
517 | 2.51M | state->emplace_local_state(operator_id(), std::move(local_state)); |
518 | 2.51M | return Status::OK(); |
519 | 2.51M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 97.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 97.8k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 97.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 97.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 97.8k | return Status::OK(); | 519 | 97.8k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 301k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 301k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 301k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 301k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 301k | return Status::OK(); | 519 | 301k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 78 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 78 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 78 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 78 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 78 | return Status::OK(); | 519 | 78 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 31.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 31.1k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 31.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 31.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 31.1k | return Status::OK(); | 519 | 31.1k | } |
_ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 592 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 592 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 592 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 592 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 592 | return Status::OK(); | 519 | 592 | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 8.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 8.08k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 8.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 8.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 8.08k | return Status::OK(); | 519 | 8.08k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 8.55k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 8.55k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 8.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 8.55k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 8.55k | return Status::OK(); | 519 | 8.55k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 35 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 35 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 35 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 35 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 35 | return Status::OK(); | 519 | 35 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 258k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 258k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 258k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 258k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 258k | return Status::OK(); | 519 | 258k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 155k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 155k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 155k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 155k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 155k | return Status::OK(); | 519 | 155k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 52 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 52 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 52 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 52 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 52 | return Status::OK(); | 519 | 52 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 3.70k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 3.70k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 3.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 3.70k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 3.70k | return Status::OK(); | 519 | 3.70k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 391k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 391k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 391k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 391k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 391k | return Status::OK(); | 519 | 391k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.22k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.22k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.22k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.22k | return Status::OK(); | 519 | 1.22k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 9.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 9.28k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 9.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 9.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 9.28k | return Status::OK(); | 519 | 9.28k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 221 | return Status::OK(); | 519 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.58k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.58k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.58k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.58k | return Status::OK(); | 519 | 1.58k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 54.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 54.5k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 54.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 54.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 54.5k | return Status::OK(); | 519 | 54.5k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 8.26k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 8.26k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 8.26k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 8.26k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 8.26k | return Status::OK(); | 519 | 8.26k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 277 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 277 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 277 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 277 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 277 | return Status::OK(); | 519 | 277 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.51k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.51k | return Status::OK(); | 519 | 2.51k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.62k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.62k | return Status::OK(); | 519 | 2.62k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 461 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 461 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 461 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 461 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 461 | return Status::OK(); | 519 | 461 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.31k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.31k | return Status::OK(); | 519 | 2.31k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 5.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 5.85k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 5.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 5.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 5.85k | return Status::OK(); | 519 | 5.85k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 745k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 745k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 745k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 745k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 745k | return Status::OK(); | 519 | 745k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 14 | return Status::OK(); | 519 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 151 | return Status::OK(); | 519 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.95k | return Status::OK(); | 519 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.59k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.59k | return Status::OK(); | 519 | 1.59k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.04k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.04k | return Status::OK(); | 519 | 2.04k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 16.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 16.2k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 16.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 16.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 16.2k | return Status::OK(); | 519 | 16.2k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 400k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 400k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 400k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 400k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 400k | return Status::OK(); | 519 | 400k | } |
|
520 | | |
521 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
522 | | RuntimeState* state) |
523 | 2.05M | : _parent(parent), _state(state) {} |
524 | | |
525 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
526 | 2.51M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
527 | | |
528 | | template <typename SharedStateArg> |
529 | 2.51M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.51M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
531 | 2.51M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
532 | 2.51M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
533 | 2.51M | _operator_profile->set_metadata(_parent->node_id()); |
534 | | // indent is false so that source operator will have same |
535 | | // indentation_level with its parent operator. |
536 | 2.51M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
537 | 2.51M | _operator_profile->add_child(_common_profile.get(), true); |
538 | 2.51M | _operator_profile->add_child(_custom_profile.get(), true); |
539 | 2.51M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
540 | 2.51M | if constexpr (!is_fake_shared) { |
541 | 1.35M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
542 | 761k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
543 | 761k | .first.get() |
544 | 761k | ->template cast<SharedStateArg>(); |
545 | | |
546 | 761k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
547 | 761k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
548 | 761k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
549 | 761k | } else if (info.shared_state) { |
550 | 533k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
551 | 0 | DCHECK(false); |
552 | 0 | } |
553 | | // For UnionSourceOperator without children, there is no shared state. |
554 | 533k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
555 | | |
556 | 533k | _dependency = _shared_state->create_source_dependency( |
557 | 533k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
558 | 533k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
559 | 533k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
560 | 533k | } else { |
561 | 57.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
562 | 791 | DCHECK(false); |
563 | 791 | } |
564 | 57.3k | } |
565 | 1.35M | } |
566 | | |
567 | 2.51M | if (must_set_shared_state() && _shared_state == nullptr) { |
568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
569 | 0 | } |
570 | | |
571 | 2.51M | _rows_returned_counter = |
572 | 2.51M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
573 | 2.51M | _blocks_returned_counter = |
574 | 2.51M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
575 | 2.51M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
576 | 2.51M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
577 | 2.51M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
578 | 2.51M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
579 | 2.51M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
580 | 2.51M | _memory_used_counter = |
581 | 2.51M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
582 | 2.51M | _common_profile->add_info_string("IsColocate", |
583 | 2.51M | std::to_string(_parent->is_colocated_operator())); |
584 | 2.51M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
585 | 2.51M | _common_profile->add_info_string("FollowedByShuffledOperator", |
586 | 2.51M | std::to_string(_parent->followed_by_shuffled_operator())); |
587 | 2.51M | return Status::OK(); |
588 | 2.51M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 97.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 97.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 97.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 97.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 97.8k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 97.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 97.8k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 97.8k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 97.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 97.8k | if constexpr (!is_fake_shared) { | 541 | 97.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 16.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 16.7k | .first.get() | 544 | 16.7k | ->template cast<SharedStateArg>(); | 545 | | | 546 | 16.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 16.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 16.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 81.0k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 80.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 80.3k | _dependency = _shared_state->create_source_dependency( | 557 | 80.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 80.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 80.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 80.3k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 739 | } | 565 | 97.8k | } | 566 | | | 567 | 97.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 97.8k | _rows_returned_counter = | 572 | 97.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 97.8k | _blocks_returned_counter = | 574 | 97.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 97.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 97.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 97.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 97.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 97.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 97.8k | _memory_used_counter = | 581 | 97.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 97.8k | _common_profile->add_info_string("IsColocate", | 583 | 97.8k | std::to_string(_parent->is_colocated_operator())); | 584 | 97.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 97.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 97.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 97.8k | return Status::OK(); | 588 | 97.8k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 1 | if constexpr (!is_fake_shared) { | 541 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 1 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 1 | _dependency = _shared_state->create_source_dependency( | 557 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 1 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 1 | } | 566 | | | 567 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 1 | _rows_returned_counter = | 572 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 1 | _blocks_returned_counter = | 574 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 1 | _memory_used_counter = | 581 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 1 | _common_profile->add_info_string("IsColocate", | 583 | 1 | std::to_string(_parent->is_colocated_operator())); | 584 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 1 | return Status::OK(); | 588 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 267k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 267k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 267k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 267k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 267k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 267k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 267k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 267k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 267k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 267k | if constexpr (!is_fake_shared) { | 541 | 267k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 267k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 263k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 263k | _dependency = _shared_state->create_source_dependency( | 557 | 263k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 263k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 263k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 263k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 4.46k | } | 565 | 267k | } | 566 | | | 567 | 267k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 267k | _rows_returned_counter = | 572 | 267k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 267k | _blocks_returned_counter = | 574 | 267k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 267k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 267k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 267k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 267k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 267k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 267k | _memory_used_counter = | 581 | 267k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 267k | _common_profile->add_info_string("IsColocate", | 583 | 267k | std::to_string(_parent->is_colocated_operator())); | 584 | 267k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 267k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 267k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 267k | return Status::OK(); | 588 | 267k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 35 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 35 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 35 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 35 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 35 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 35 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 35 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 35 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 35 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 35 | if constexpr (!is_fake_shared) { | 541 | 35 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 35 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 35 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 35 | _dependency = _shared_state->create_source_dependency( | 557 | 35 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 35 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 35 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 35 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 35 | } | 566 | | | 567 | 35 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 35 | _rows_returned_counter = | 572 | 35 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 35 | _blocks_returned_counter = | 574 | 35 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 35 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 35 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 35 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 35 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 35 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 35 | _memory_used_counter = | 581 | 35 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 35 | _common_profile->add_info_string("IsColocate", | 583 | 35 | std::to_string(_parent->is_colocated_operator())); | 584 | 35 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 35 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 35 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 35 | return Status::OK(); | 588 | 35 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 9.14k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 9.14k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 9.14k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 9.14k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 9.14k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 9.14k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 9.14k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 9.14k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 9.14k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 9.14k | if constexpr (!is_fake_shared) { | 541 | 9.14k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 9.14k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 9.11k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 9.11k | _dependency = _shared_state->create_source_dependency( | 557 | 9.11k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 9.11k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 9.11k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 9.11k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 24 | } | 565 | 9.14k | } | 566 | | | 567 | 9.14k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 9.14k | _rows_returned_counter = | 572 | 9.14k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 9.14k | _blocks_returned_counter = | 574 | 9.14k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 9.14k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 9.14k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 9.14k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 9.14k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 9.14k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 9.14k | _memory_used_counter = | 581 | 9.14k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 9.14k | _common_profile->add_info_string("IsColocate", | 583 | 9.14k | std::to_string(_parent->is_colocated_operator())); | 584 | 9.14k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 9.14k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 9.14k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 9.14k | return Status::OK(); | 588 | 9.14k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.07k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.07k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 8.07k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 8.07k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 8.07k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 8.07k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 8.07k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 8.07k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 8.07k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 8.07k | if constexpr (!is_fake_shared) { | 541 | 8.07k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 8.07k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 8.06k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 8.06k | _dependency = _shared_state->create_source_dependency( | 557 | 8.06k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 8.06k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 8.06k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 8.06k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 15 | } | 565 | 8.07k | } | 566 | | | 567 | 8.07k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 8.07k | _rows_returned_counter = | 572 | 8.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 8.07k | _blocks_returned_counter = | 574 | 8.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 8.07k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 8.07k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 8.07k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 8.07k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 8.07k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 8.07k | _memory_used_counter = | 581 | 8.07k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 8.07k | _common_profile->add_info_string("IsColocate", | 583 | 8.07k | std::to_string(_parent->is_colocated_operator())); | 584 | 8.07k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 8.07k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 8.07k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 8.07k | return Status::OK(); | 588 | 8.07k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 155k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 155k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 155k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 155k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 155k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 155k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 155k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 155k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 155k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 155k | if constexpr (!is_fake_shared) { | 541 | 155k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 155k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 154k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 154k | _dependency = _shared_state->create_source_dependency( | 557 | 154k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 154k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 154k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 154k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 985 | } | 565 | 155k | } | 566 | | | 567 | 155k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 155k | _rows_returned_counter = | 572 | 155k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 155k | _blocks_returned_counter = | 574 | 155k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 155k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 155k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 155k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 155k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 155k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 155k | _memory_used_counter = | 581 | 155k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 155k | _common_profile->add_info_string("IsColocate", | 583 | 155k | std::to_string(_parent->is_colocated_operator())); | 584 | 155k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 155k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 155k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 155k | return Status::OK(); | 588 | 155k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 52 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 52 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 52 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 52 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 52 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 52 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 52 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 52 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 52 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 52 | if constexpr (!is_fake_shared) { | 541 | 52 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 52 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 52 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 52 | _dependency = _shared_state->create_source_dependency( | 557 | 52 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 52 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 52 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 52 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 52 | } | 566 | | | 567 | 52 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 52 | _rows_returned_counter = | 572 | 52 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 52 | _blocks_returned_counter = | 574 | 52 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 52 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 52 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 52 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 52 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 52 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 52 | _memory_used_counter = | 581 | 52 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 52 | _common_profile->add_info_string("IsColocate", | 583 | 52 | std::to_string(_parent->is_colocated_operator())); | 584 | 52 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 52 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 52 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 52 | return Status::OK(); | 588 | 52 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.16M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.16M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 1.16M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 1.16M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 1.16M | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 1.16M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 1.16M | _operator_profile->add_child(_common_profile.get(), true); | 538 | 1.16M | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 1.16M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | | if constexpr (!is_fake_shared) { | 541 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | | .first.get() | 544 | | ->template cast<SharedStateArg>(); | 545 | | | 546 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | | _dependency = _shared_state->create_source_dependency( | 557 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | | } | 565 | | } | 566 | | | 567 | 1.16M | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 1.16M | _rows_returned_counter = | 572 | 1.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 1.16M | _blocks_returned_counter = | 574 | 1.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 1.16M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 1.16M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 1.16M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 1.16M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 1.16M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 1.16M | _memory_used_counter = | 581 | 1.16M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 1.16M | _common_profile->add_info_string("IsColocate", | 583 | 1.16M | std::to_string(_parent->is_colocated_operator())); | 584 | 1.16M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 1.16M | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 1.16M | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 1.16M | return Status::OK(); | 588 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 54.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 54.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 54.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 54.4k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 54.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 54.4k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 54.4k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 54.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 54.4k | if constexpr (!is_fake_shared) { | 541 | 54.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 54.4k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 4.19k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 4.19k | _dependency = _shared_state->create_source_dependency( | 557 | 4.19k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 4.19k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 4.19k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 50.3k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 50.3k | } | 565 | 54.4k | } | 566 | | | 567 | 54.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 54.4k | _rows_returned_counter = | 572 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 54.4k | _blocks_returned_counter = | 574 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 54.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 54.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 54.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 54.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 54.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 54.4k | _memory_used_counter = | 581 | 54.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 54.4k | _common_profile->add_info_string("IsColocate", | 583 | 54.4k | std::to_string(_parent->is_colocated_operator())); | 584 | 54.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 54.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 54.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 54.4k | return Status::OK(); | 588 | 54.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 17 | if constexpr (!is_fake_shared) { | 541 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 17 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 17 | _dependency = _shared_state->create_source_dependency( | 557 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 17 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 17 | } | 566 | | | 567 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 17 | _rows_returned_counter = | 572 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 17 | _blocks_returned_counter = | 574 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 17 | _memory_used_counter = | 581 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 17 | _common_profile->add_info_string("IsColocate", | 583 | 17 | std::to_string(_parent->is_colocated_operator())); | 584 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 17 | return Status::OK(); | 588 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.26k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.26k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 8.26k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 8.26k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 8.26k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 8.26k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 8.26k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 8.26k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 8.26k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 8.26k | if constexpr (!is_fake_shared) { | 541 | 8.26k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 8.26k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 8.25k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 8.25k | _dependency = _shared_state->create_source_dependency( | 557 | 8.25k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 8.25k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 8.25k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 8.25k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 15 | } | 565 | 8.26k | } | 566 | | | 567 | 8.26k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 8.26k | _rows_returned_counter = | 572 | 8.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 8.26k | _blocks_returned_counter = | 574 | 8.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 8.26k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 8.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 8.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 8.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 8.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 8.26k | _memory_used_counter = | 581 | 8.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 8.26k | _common_profile->add_info_string("IsColocate", | 583 | 8.26k | std::to_string(_parent->is_colocated_operator())); | 584 | 8.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 8.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 8.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 8.26k | return Status::OK(); | 588 | 8.26k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 379 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 379 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 379 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 379 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 379 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 379 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 379 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 379 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 379 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 379 | if constexpr (!is_fake_shared) { | 541 | 379 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 381 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 381 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 381 | _dependency = _shared_state->create_source_dependency( | 557 | 381 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 381 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 381 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 18.4E | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 18.4E | } | 565 | 379 | } | 566 | | | 567 | 379 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 379 | _rows_returned_counter = | 572 | 379 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 379 | _blocks_returned_counter = | 574 | 379 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 379 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 379 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 379 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 379 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 379 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 379 | _memory_used_counter = | 581 | 379 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 379 | _common_profile->add_info_string("IsColocate", | 583 | 379 | std::to_string(_parent->is_colocated_operator())); | 584 | 379 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 379 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 379 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 379 | return Status::OK(); | 588 | 379 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 5.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 5.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 5.15k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 5.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 5.15k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 5.15k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 5.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 5.15k | if constexpr (!is_fake_shared) { | 541 | 5.15k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 5.15k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 5.13k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 5.13k | _dependency = _shared_state->create_source_dependency( | 557 | 5.13k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 5.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 5.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 5.13k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 23 | } | 565 | 5.15k | } | 566 | | | 567 | 5.15k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 5.15k | _rows_returned_counter = | 572 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 5.15k | _blocks_returned_counter = | 574 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 5.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 5.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 5.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 5.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 5.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 5.15k | _memory_used_counter = | 581 | 5.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 5.15k | _common_profile->add_info_string("IsColocate", | 583 | 5.15k | std::to_string(_parent->is_colocated_operator())); | 584 | 5.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 5.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 5.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 5.15k | return Status::OK(); | 588 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 745k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 745k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 745k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 745k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 745k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 745k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 745k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 745k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 745k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 745k | if constexpr (!is_fake_shared) { | 541 | 745k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 744k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 744k | .first.get() | 544 | 744k | ->template cast<SharedStateArg>(); | 545 | | | 546 | 744k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 744k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 744k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 744k | } else if (info.shared_state) { | 550 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | 0 | DCHECK(false); | 552 | 0 | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | |
| 556 | 0 | _dependency = _shared_state->create_source_dependency( | 557 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 791 | } else { | 561 | 791 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | 791 | DCHECK(false); | 563 | 791 | } | 564 | 791 | } | 565 | 745k | } | 566 | | | 567 | 745k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 745k | _rows_returned_counter = | 572 | 745k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 745k | _blocks_returned_counter = | 574 | 745k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 745k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 745k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 745k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 745k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 745k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 745k | _memory_used_counter = | 581 | 745k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 745k | _common_profile->add_info_string("IsColocate", | 583 | 745k | std::to_string(_parent->is_colocated_operator())); | 584 | 745k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 745k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 745k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 745k | return Status::OK(); | 588 | 745k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 151 | if constexpr (!is_fake_shared) { | 541 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 151 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 151 | _dependency = _shared_state->create_source_dependency( | 557 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 151 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 151 | } | 566 | | | 567 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 151 | _rows_returned_counter = | 572 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 151 | _blocks_returned_counter = | 574 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 151 | _memory_used_counter = | 581 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 151 | _common_profile->add_info_string("IsColocate", | 583 | 151 | std::to_string(_parent->is_colocated_operator())); | 584 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 151 | return Status::OK(); | 588 | 151 | } |
|
589 | | |
590 | | template <typename SharedStateArg> |
591 | 2.52M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
592 | 2.52M | _conjuncts.resize(_parent->_conjuncts.size()); |
593 | 2.52M | _projections.resize(_parent->_projections.size()); |
594 | 3.01M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
595 | 495k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
596 | 495k | } |
597 | 5.35M | for (size_t i = 0; i < _projections.size(); i++) { |
598 | 2.83M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
599 | 2.83M | } |
600 | 2.52M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
601 | 2.53M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
602 | 8.08k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
603 | 56.0k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
604 | 47.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
605 | 47.9k | state, _intermediate_projections[i][j])); |
606 | 47.9k | } |
607 | 8.08k | } |
608 | 2.52M | return Status::OK(); |
609 | 2.52M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 98.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 98.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 98.6k | _projections.resize(_parent->_projections.size()); | 594 | 99.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 1.26k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 1.26k | } | 597 | 499k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 401k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 401k | } | 600 | 98.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 99.8k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 1.23k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 13.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 12.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 12.1k | state, _intermediate_projections[i][j])); | 606 | 12.1k | } | 607 | 1.23k | } | 608 | 98.6k | return Status::OK(); | 609 | 98.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 3 | _projections.resize(_parent->_projections.size()); | 594 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 3 | return Status::OK(); | 609 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 268k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 268k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 268k | _projections.resize(_parent->_projections.size()); | 594 | 268k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 268k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 354 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 354 | } | 600 | 268k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 268k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 268k | return Status::OK(); | 609 | 268k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 34 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 34 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 34 | _projections.resize(_parent->_projections.size()); | 594 | 34 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 34 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 34 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 34 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 34 | return Status::OK(); | 609 | 34 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 9.41k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 9.41k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 9.41k | _projections.resize(_parent->_projections.size()); | 594 | 9.49k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 75 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 75 | } | 597 | 54.5k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 45.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 45.0k | } | 600 | 9.41k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 9.56k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 149 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 948 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 799 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 799 | state, _intermediate_projections[i][j])); | 606 | 799 | } | 607 | 149 | } | 608 | 9.41k | return Status::OK(); | 609 | 9.41k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 8.13k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 8.13k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 8.13k | _projections.resize(_parent->_projections.size()); | 594 | 8.84k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 704 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 704 | } | 597 | 22.6k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 14.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 14.4k | } | 600 | 8.13k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 8.22k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 656 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 569 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 569 | state, _intermediate_projections[i][j])); | 606 | 569 | } | 607 | 87 | } | 608 | 8.13k | return Status::OK(); | 609 | 8.13k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 156k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 156k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 156k | _projections.resize(_parent->_projections.size()); | 594 | 160k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 4.06k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 4.06k | } | 597 | 417k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 261k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 261k | } | 600 | 156k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 156k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 266 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 2.07k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 1.81k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 1.81k | state, _intermediate_projections[i][j])); | 606 | 1.81k | } | 607 | 266 | } | 608 | 156k | return Status::OK(); | 609 | 156k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 56 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 56 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 56 | _projections.resize(_parent->_projections.size()); | 594 | 56 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 68 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 12 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 12 | } | 600 | 56 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 56 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 56 | return Status::OK(); | 609 | 56 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 1.16M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 1.16M | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 1.16M | _projections.resize(_parent->_projections.size()); | 594 | 1.65M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 486k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 486k | } | 597 | 3.18M | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 2.01M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 2.01M | } | 600 | 1.16M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 1.17M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 6.34k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 38.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 32.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 32.6k | state, _intermediate_projections[i][j])); | 606 | 32.6k | } | 607 | 6.34k | } | 608 | 1.16M | return Status::OK(); | 609 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 54.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 54.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 54.7k | _projections.resize(_parent->_projections.size()); | 594 | 54.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 146k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 91.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 91.8k | } | 600 | 54.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 54.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 54.7k | return Status::OK(); | 609 | 54.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 17 | _projections.resize(_parent->_projections.size()); | 594 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 17 | return Status::OK(); | 609 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 8.27k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 8.27k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 8.27k | _projections.resize(_parent->_projections.size()); | 594 | 10.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 2.68k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 2.68k | } | 597 | 8.27k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 8.27k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 8.27k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 8.27k | return Status::OK(); | 609 | 8.27k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 381 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 381 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 381 | _projections.resize(_parent->_projections.size()); | 594 | 381 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 381 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 381 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 381 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 381 | return Status::OK(); | 609 | 381 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 5.17k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 5.17k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 5.17k | _projections.resize(_parent->_projections.size()); | 594 | 5.17k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 5.17k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 5.17k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 5.17k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 5.17k | return Status::OK(); | 609 | 5.17k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 749k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 749k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 749k | _projections.resize(_parent->_projections.size()); | 594 | 749k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 749k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 749k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 749k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 749k | return Status::OK(); | 609 | 749k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 151 | _projections.resize(_parent->_projections.size()); | 594 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 7 | } | 597 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 296 | } | 600 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 2 | state, _intermediate_projections[i][j])); | 606 | 2 | } | 607 | 1 | } | 608 | 151 | return Status::OK(); | 609 | 151 | } |
|
610 | | |
611 | | template <typename SharedStateArg> |
612 | 6.61k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
613 | 6.61k | if (_terminated) { |
614 | 4 | return Status::OK(); |
615 | 4 | } |
616 | 6.61k | _terminated = true; |
617 | 6.61k | return Status::OK(); |
618 | 6.61k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 1.26k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 1.26k | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 1.26k | _terminated = true; | 617 | 1.26k | return Status::OK(); | 618 | 1.26k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 83 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 83 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 83 | _terminated = true; | 617 | 83 | return Status::OK(); | 618 | 83 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 303 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 303 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 303 | _terminated = true; | 617 | 303 | return Status::OK(); | 618 | 303 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 124 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 124 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 124 | _terminated = true; | 617 | 124 | return Status::OK(); | 618 | 124 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 3.97k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 3.97k | if (_terminated) { | 614 | 1 | return Status::OK(); | 615 | 1 | } | 616 | 3.97k | _terminated = true; | 617 | 3.97k | return Status::OK(); | 618 | 3.97k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 6 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 6 | _terminated = true; | 617 | 6 | return Status::OK(); | 618 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 11 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 11 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 11 | _terminated = true; | 617 | 11 | return Status::OK(); | 618 | 11 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 1 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 1 | _terminated = true; | 617 | 1 | return Status::OK(); | 618 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 823 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 823 | if (_terminated) { | 614 | 3 | return Status::OK(); | 615 | 3 | } | 616 | 820 | _terminated = true; | 617 | 820 | return Status::OK(); | 618 | 823 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 15 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 15 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 15 | _terminated = true; | 617 | 15 | return Status::OK(); | 618 | 15 | } |
|
619 | | |
620 | | template <typename SharedStateArg> |
621 | 2.82M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
622 | 2.82M | if (_closed) { |
623 | 298k | return Status::OK(); |
624 | 298k | } |
625 | 2.52M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
626 | 1.35M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
627 | 1.35M | } |
628 | 2.52M | _closed = true; |
629 | 2.52M | return Status::OK(); |
630 | 2.82M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 98.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 98.6k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 98.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 98.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 98.6k | } | 628 | 98.6k | _closed = true; | 629 | 98.6k | return Status::OK(); | 630 | 98.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 3 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 3 | } | 628 | 3 | _closed = true; | 629 | 3 | return Status::OK(); | 630 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 533k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 533k | if (_closed) { | 623 | 267k | return Status::OK(); | 624 | 267k | } | 625 | 266k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 266k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 266k | } | 628 | 266k | _closed = true; | 629 | 266k | return Status::OK(); | 630 | 533k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 35 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 35 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 35 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 35 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 35 | } | 628 | 35 | _closed = true; | 629 | 35 | return Status::OK(); | 630 | 35 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 9.42k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 9.42k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 9.42k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 9.42k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 9.42k | } | 628 | 9.42k | _closed = true; | 629 | 9.42k | return Status::OK(); | 630 | 9.42k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 16.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 16.3k | if (_closed) { | 623 | 8.27k | return Status::OK(); | 624 | 8.27k | } | 625 | 8.12k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 8.12k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 8.12k | } | 628 | 8.12k | _closed = true; | 629 | 8.12k | return Status::OK(); | 630 | 16.3k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 155k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 155k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 155k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 155k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 155k | } | 628 | 155k | _closed = true; | 629 | 155k | return Status::OK(); | 630 | 155k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 51 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 51 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 51 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 51 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 51 | } | 628 | 51 | _closed = true; | 629 | 51 | return Status::OK(); | 630 | 51 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 1.18M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 1.18M | if (_closed) { | 623 | 17.0k | return Status::OK(); | 624 | 17.0k | } | 625 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | | } | 628 | 1.16M | _closed = true; | 629 | 1.16M | return Status::OK(); | 630 | 1.18M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 54.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 54.7k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 54.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 54.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 54.7k | } | 628 | 54.7k | _closed = true; | 629 | 54.7k | return Status::OK(); | 630 | 54.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 28 | if (_closed) { | 623 | 14 | return Status::OK(); | 624 | 14 | } | 625 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 14 | } | 628 | 14 | _closed = true; | 629 | 14 | return Status::OK(); | 630 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 8.25k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 8.25k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 8.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 8.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 8.25k | } | 628 | 8.25k | _closed = true; | 629 | 8.25k | return Status::OK(); | 630 | 8.25k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 555 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 555 | if (_closed) { | 623 | 278 | return Status::OK(); | 624 | 278 | } | 625 | 277 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 277 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 277 | } | 628 | 277 | _closed = true; | 629 | 277 | return Status::OK(); | 630 | 555 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 10.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 10.4k | if (_closed) { | 623 | 5.24k | return Status::OK(); | 624 | 5.24k | } | 625 | 5.16k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 5.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 5.16k | } | 628 | 5.16k | _closed = true; | 629 | 5.16k | return Status::OK(); | 630 | 10.4k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 751k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 751k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 751k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 751k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 751k | } | 628 | 751k | _closed = true; | 629 | 751k | return Status::OK(); | 630 | 751k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 304 | if (_closed) { | 623 | 162 | return Status::OK(); | 624 | 162 | } | 625 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 142 | } | 628 | 142 | _closed = true; | 629 | 142 | return Status::OK(); | 630 | 304 | } |
|
631 | | |
632 | | template <typename SharedState> |
633 | 2.05M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
634 | | // create profile |
635 | 2.05M | _operator_profile = |
636 | 2.05M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
637 | 2.05M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
638 | 2.05M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
639 | | |
640 | | // indentation is true |
641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
642 | | // So we should set the indentation to true. |
643 | 2.05M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
644 | 2.05M | _operator_profile->add_child(_common_profile, true); |
645 | 2.05M | _operator_profile->add_child(_custom_profile, true); |
646 | | |
647 | 2.05M | _operator_profile->set_metadata(_parent->node_id()); |
648 | 2.05M | _wait_for_finish_dependency_timer = |
649 | 2.05M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
650 | 2.05M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
651 | 2.05M | if constexpr (!is_fake_shared) { |
652 | 1.40M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
653 | 1.40M | info.shared_state_map.end()) { |
654 | 337k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
655 | 318k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
656 | 318k | } |
657 | 337k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
658 | 337k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
659 | 337k | ? 0 |
660 | 337k | : info.task_idx] |
661 | 337k | .get(); |
662 | 337k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
663 | 1.06M | } else { |
664 | 1.06M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
665 | 240 | DCHECK(false); |
666 | 240 | } |
667 | 1.06M | _shared_state = info.shared_state->template cast<SharedState>(); |
668 | 1.06M | _dependency = _shared_state->create_sink_dependency( |
669 | 1.06M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
670 | 1.06M | } |
671 | 1.40M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
672 | 1.40M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
673 | 1.40M | } |
674 | | |
675 | 2.05M | if (must_set_shared_state() && _shared_state == nullptr) { |
676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
677 | 0 | } |
678 | | |
679 | 2.05M | _rows_input_counter = |
680 | 2.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
681 | 2.05M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
682 | 2.05M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
683 | 2.05M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
684 | 2.05M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
685 | 2.05M | _memory_used_counter = |
686 | 2.05M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
687 | 2.05M | _common_profile->add_info_string("IsColocate", |
688 | 2.05M | std::to_string(_parent->is_colocated_operator())); |
689 | 2.05M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
690 | 2.05M | _common_profile->add_info_string("FollowedByShuffledOperator", |
691 | 2.05M | std::to_string(_parent->followed_by_shuffled_operator())); |
692 | 2.05M | return Status::OK(); |
693 | 2.05M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 146k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 146k | _operator_profile = | 636 | 146k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 146k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 146k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 146k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 146k | _operator_profile->add_child(_common_profile, true); | 645 | 146k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 146k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 146k | _wait_for_finish_dependency_timer = | 649 | 146k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 146k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 146k | if constexpr (!is_fake_shared) { | 652 | 146k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 146k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 16.8k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 16.8k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 16.8k | ? 0 | 660 | 16.8k | : info.task_idx] | 661 | 16.8k | .get(); | 662 | 16.8k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 129k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 129k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 129k | _dependency = _shared_state->create_sink_dependency( | 669 | 129k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 129k | } | 671 | 146k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 146k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 146k | } | 674 | | | 675 | 146k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 146k | _rows_input_counter = | 680 | 146k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 146k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 146k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 146k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 146k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 146k | _memory_used_counter = | 686 | 146k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 146k | _common_profile->add_info_string("IsColocate", | 688 | 146k | std::to_string(_parent->is_colocated_operator())); | 689 | 146k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 146k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 146k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 146k | return Status::OK(); | 693 | 146k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 2 | _operator_profile = | 636 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 2 | _operator_profile->add_child(_common_profile, true); | 645 | 2 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 2 | _wait_for_finish_dependency_timer = | 649 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 2 | if constexpr (!is_fake_shared) { | 652 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 2 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 2 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 2 | _dependency = _shared_state->create_sink_dependency( | 669 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 2 | } | 671 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 2 | } | 674 | | | 675 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 2 | _rows_input_counter = | 680 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 2 | _memory_used_counter = | 686 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 2 | _common_profile->add_info_string("IsColocate", | 688 | 2 | std::to_string(_parent->is_colocated_operator())); | 689 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 2 | return Status::OK(); | 693 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 268k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 268k | _operator_profile = | 636 | 268k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 268k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 268k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 268k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 268k | _operator_profile->add_child(_common_profile, true); | 645 | 268k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 268k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 268k | _wait_for_finish_dependency_timer = | 649 | 268k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 268k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 268k | if constexpr (!is_fake_shared) { | 652 | 268k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 268k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 268k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 268k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 268k | _dependency = _shared_state->create_sink_dependency( | 669 | 268k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 268k | } | 671 | 268k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 268k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 268k | } | 674 | | | 675 | 268k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 268k | _rows_input_counter = | 680 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 268k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 268k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 268k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 268k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 268k | _memory_used_counter = | 686 | 268k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 268k | _common_profile->add_info_string("IsColocate", | 688 | 268k | std::to_string(_parent->is_colocated_operator())); | 689 | 268k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 268k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 268k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 268k | return Status::OK(); | 693 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 41 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 41 | _operator_profile = | 636 | 41 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 41 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 41 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 41 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 41 | _operator_profile->add_child(_common_profile, true); | 645 | 41 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 41 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 41 | _wait_for_finish_dependency_timer = | 649 | 41 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 41 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 41 | if constexpr (!is_fake_shared) { | 652 | 41 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 41 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 41 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 41 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 41 | _dependency = _shared_state->create_sink_dependency( | 669 | 41 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 41 | } | 671 | 41 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 41 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 41 | } | 674 | | | 675 | 41 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 41 | _rows_input_counter = | 680 | 41 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 41 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 41 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 41 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 41 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 41 | _memory_used_counter = | 686 | 41 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 41 | _common_profile->add_info_string("IsColocate", | 688 | 41 | std::to_string(_parent->is_colocated_operator())); | 689 | 41 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 41 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 41 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 41 | return Status::OK(); | 693 | 41 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 9.39k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 9.39k | _operator_profile = | 636 | 9.39k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 9.39k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 9.39k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 9.39k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 9.39k | _operator_profile->add_child(_common_profile, true); | 645 | 9.39k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 9.39k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 9.39k | _wait_for_finish_dependency_timer = | 649 | 9.39k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 9.39k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 9.39k | if constexpr (!is_fake_shared) { | 652 | 9.39k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 9.39k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 9.39k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 9.39k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 9.39k | _dependency = _shared_state->create_sink_dependency( | 669 | 9.39k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 9.39k | } | 671 | 9.39k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 9.39k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 9.39k | } | 674 | | | 675 | 9.39k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 9.39k | _rows_input_counter = | 680 | 9.39k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 9.39k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 9.39k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 9.39k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 9.39k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 9.39k | _memory_used_counter = | 686 | 9.39k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 9.39k | _common_profile->add_info_string("IsColocate", | 688 | 9.39k | std::to_string(_parent->is_colocated_operator())); | 689 | 9.39k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 9.39k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 9.39k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 9.39k | return Status::OK(); | 693 | 9.39k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 8.12k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 8.12k | _operator_profile = | 636 | 8.12k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 8.12k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 8.12k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 8.12k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 8.12k | _operator_profile->add_child(_common_profile, true); | 645 | 8.12k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 8.12k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 8.12k | _wait_for_finish_dependency_timer = | 649 | 8.12k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 8.12k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 8.12k | if constexpr (!is_fake_shared) { | 652 | 8.12k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 8.12k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 8.12k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 8.12k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 8.12k | _dependency = _shared_state->create_sink_dependency( | 669 | 8.12k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 8.12k | } | 671 | 8.12k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 8.12k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 8.12k | } | 674 | | | 675 | 8.12k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 8.12k | _rows_input_counter = | 680 | 8.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 8.12k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 8.12k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 8.12k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 8.12k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 8.12k | _memory_used_counter = | 686 | 8.12k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 8.12k | _common_profile->add_info_string("IsColocate", | 688 | 8.12k | std::to_string(_parent->is_colocated_operator())); | 689 | 8.12k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 8.12k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 8.12k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 8.12k | return Status::OK(); | 693 | 8.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 155k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 155k | _operator_profile = | 636 | 155k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 155k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 155k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 155k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 155k | _operator_profile->add_child(_common_profile, true); | 645 | 155k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 155k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 155k | _wait_for_finish_dependency_timer = | 649 | 155k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 155k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 155k | if constexpr (!is_fake_shared) { | 652 | 155k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 155k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 155k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 155k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 155k | _dependency = _shared_state->create_sink_dependency( | 669 | 155k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 155k | } | 671 | 155k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 155k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 155k | } | 674 | | | 675 | 155k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 155k | _rows_input_counter = | 680 | 155k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 155k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 155k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 155k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 155k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 155k | _memory_used_counter = | 686 | 155k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 155k | _common_profile->add_info_string("IsColocate", | 688 | 155k | std::to_string(_parent->is_colocated_operator())); | 689 | 155k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 155k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 155k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 155k | return Status::OK(); | 693 | 155k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 62 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 62 | _operator_profile = | 636 | 62 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 62 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 62 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 62 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 62 | _operator_profile->add_child(_common_profile, true); | 645 | 62 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 62 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 62 | _wait_for_finish_dependency_timer = | 649 | 62 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 62 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 62 | if constexpr (!is_fake_shared) { | 652 | 62 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 62 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 62 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 62 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 62 | _dependency = _shared_state->create_sink_dependency( | 669 | 62 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 62 | } | 671 | 62 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 62 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 62 | } | 674 | | | 675 | 62 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 62 | _rows_input_counter = | 680 | 62 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 62 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 62 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 62 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 62 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 62 | _memory_used_counter = | 686 | 62 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 62 | _common_profile->add_info_string("IsColocate", | 688 | 62 | std::to_string(_parent->is_colocated_operator())); | 689 | 62 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 62 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 62 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 62 | return Status::OK(); | 693 | 62 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 653k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 653k | _operator_profile = | 636 | 653k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 653k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 653k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 653k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 653k | _operator_profile->add_child(_common_profile, true); | 645 | 653k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 653k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 653k | _wait_for_finish_dependency_timer = | 649 | 653k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 653k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | | if constexpr (!is_fake_shared) { | 652 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | | ? 0 | 660 | | : info.task_idx] | 661 | | .get(); | 662 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | | _dependency = _shared_state->create_sink_dependency( | 669 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | | } | 671 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | | } | 674 | | | 675 | 653k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 653k | _rows_input_counter = | 680 | 653k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 653k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 653k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 653k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 653k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 653k | _memory_used_counter = | 686 | 653k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 653k | _common_profile->add_info_string("IsColocate", | 688 | 653k | std::to_string(_parent->is_colocated_operator())); | 689 | 653k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 653k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 653k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 653k | return Status::OK(); | 693 | 653k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 8.71k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 8.71k | _operator_profile = | 636 | 8.71k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 8.71k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 8.71k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 8.71k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 8.71k | _operator_profile->add_child(_common_profile, true); | 645 | 8.71k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 8.71k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 8.71k | _wait_for_finish_dependency_timer = | 649 | 8.71k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 8.71k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 8.71k | if constexpr (!is_fake_shared) { | 652 | 8.71k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 8.71k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 8.71k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 8.71k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 8.71k | _dependency = _shared_state->create_sink_dependency( | 669 | 8.71k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 8.71k | } | 671 | 8.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 8.71k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 8.71k | } | 674 | | | 675 | 8.71k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 8.71k | _rows_input_counter = | 680 | 8.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 8.71k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 8.71k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 8.71k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 8.71k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 8.71k | _memory_used_counter = | 686 | 8.71k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 8.71k | _common_profile->add_info_string("IsColocate", | 688 | 8.71k | std::to_string(_parent->is_colocated_operator())); | 689 | 8.71k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 8.71k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 8.71k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 8.71k | return Status::OK(); | 693 | 8.71k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 381 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 381 | _operator_profile = | 636 | 381 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 381 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 381 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 381 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 381 | _operator_profile->add_child(_common_profile, true); | 645 | 381 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 381 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 381 | _wait_for_finish_dependency_timer = | 649 | 381 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 381 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 381 | if constexpr (!is_fake_shared) { | 652 | 381 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 381 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 381 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 381 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 381 | _dependency = _shared_state->create_sink_dependency( | 669 | 381 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 381 | } | 671 | 381 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 381 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 381 | } | 674 | | | 675 | 381 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 381 | _rows_input_counter = | 680 | 381 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 381 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 381 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 381 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 381 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 381 | _memory_used_counter = | 686 | 381 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 381 | _common_profile->add_info_string("IsColocate", | 688 | 381 | std::to_string(_parent->is_colocated_operator())); | 689 | 381 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 381 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 381 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 381 | return Status::OK(); | 693 | 381 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 3.05k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 3.05k | _operator_profile = | 636 | 3.05k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 3.05k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 3.05k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 3.05k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 3.05k | _operator_profile->add_child(_common_profile, true); | 645 | 3.05k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 3.05k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 3.05k | _wait_for_finish_dependency_timer = | 649 | 3.05k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 3.05k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 3.05k | if constexpr (!is_fake_shared) { | 652 | 3.05k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 3.05k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 3.05k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 3.05k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 3.05k | _dependency = _shared_state->create_sink_dependency( | 669 | 3.05k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 3.05k | } | 671 | 3.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 3.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 3.05k | } | 674 | | | 675 | 3.05k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 3.05k | _rows_input_counter = | 680 | 3.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 3.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 3.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 3.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 3.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 3.05k | _memory_used_counter = | 686 | 3.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 3.05k | _common_profile->add_info_string("IsColocate", | 688 | 3.05k | std::to_string(_parent->is_colocated_operator())); | 689 | 3.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 3.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 3.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 3.05k | return Status::OK(); | 693 | 3.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 12.6k | _operator_profile = | 636 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 12.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 12.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 12.6k | _operator_profile->add_child(_common_profile, true); | 645 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 12.6k | _wait_for_finish_dependency_timer = | 649 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 12.6k | if constexpr (!is_fake_shared) { | 652 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 12.6k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 12.6k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 669 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 12.6k | } | 671 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 12.6k | } | 674 | | | 675 | 12.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 12.6k | _rows_input_counter = | 680 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 12.6k | _memory_used_counter = | 686 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 12.6k | _common_profile->add_info_string("IsColocate", | 688 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 689 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 12.6k | return Status::OK(); | 693 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 319k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 319k | _operator_profile = | 636 | 319k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 319k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 319k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 319k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 319k | _operator_profile->add_child(_common_profile, true); | 645 | 319k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 319k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 319k | _wait_for_finish_dependency_timer = | 649 | 319k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 319k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 319k | if constexpr (!is_fake_shared) { | 652 | 319k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 319k | info.shared_state_map.end()) { | 654 | 318k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | 318k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | 318k | } | 657 | 318k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 318k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 318k | ? 0 | 660 | 318k | : info.task_idx] | 661 | 318k | .get(); | 662 | 318k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 318k | } else { | 664 | 240 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | 240 | DCHECK(false); | 666 | 240 | } | 667 | 240 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 240 | _dependency = _shared_state->create_sink_dependency( | 669 | 240 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 240 | } | 671 | 319k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 319k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 319k | } | 674 | | | 675 | 319k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 319k | _rows_input_counter = | 680 | 319k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 319k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 319k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 319k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 319k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 319k | _memory_used_counter = | 686 | 319k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 319k | _common_profile->add_info_string("IsColocate", | 688 | 319k | std::to_string(_parent->is_colocated_operator())); | 689 | 319k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 319k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 319k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 319k | return Status::OK(); | 693 | 319k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 471k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 471k | _operator_profile = | 636 | 471k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 471k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 471k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 471k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 471k | _operator_profile->add_child(_common_profile, true); | 645 | 471k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 471k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 471k | _wait_for_finish_dependency_timer = | 649 | 471k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 471k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 471k | if constexpr (!is_fake_shared) { | 652 | 471k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 471k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 1.63k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 1.63k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 1.63k | ? 0 | 660 | 1.63k | : info.task_idx] | 661 | 1.63k | .get(); | 662 | 1.63k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 469k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 469k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 469k | _dependency = _shared_state->create_sink_dependency( | 669 | 469k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 469k | } | 671 | 471k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 471k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 471k | } | 674 | | | 675 | 471k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 471k | _rows_input_counter = | 680 | 471k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 471k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 471k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 471k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 471k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 471k | _memory_used_counter = | 686 | 471k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 471k | _common_profile->add_info_string("IsColocate", | 688 | 471k | std::to_string(_parent->is_colocated_operator())); | 689 | 471k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 471k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 471k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 471k | return Status::OK(); | 693 | 471k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 17 | _operator_profile = | 636 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 17 | _operator_profile->add_child(_common_profile, true); | 645 | 17 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 17 | _wait_for_finish_dependency_timer = | 649 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 17 | if constexpr (!is_fake_shared) { | 652 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 17 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 17 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 17 | _dependency = _shared_state->create_sink_dependency( | 669 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 17 | } | 671 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 17 | } | 674 | | | 675 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 17 | _rows_input_counter = | 680 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 17 | _memory_used_counter = | 686 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 17 | _common_profile->add_info_string("IsColocate", | 688 | 17 | std::to_string(_parent->is_colocated_operator())); | 689 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 17 | return Status::OK(); | 693 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 302 | _operator_profile = | 636 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 302 | _operator_profile->add_child(_common_profile, true); | 645 | 302 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 302 | _wait_for_finish_dependency_timer = | 649 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 302 | if constexpr (!is_fake_shared) { | 652 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 302 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 302 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 302 | _dependency = _shared_state->create_sink_dependency( | 669 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 302 | } | 671 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 302 | } | 674 | | | 675 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 302 | _rows_input_counter = | 680 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 302 | _memory_used_counter = | 686 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 302 | _common_profile->add_info_string("IsColocate", | 688 | 302 | std::to_string(_parent->is_colocated_operator())); | 689 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 302 | return Status::OK(); | 693 | 302 | } |
|
694 | | |
695 | | template <typename SharedState> |
696 | 2.05M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
697 | 2.05M | if (_closed) { |
698 | 2 | return Status::OK(); |
699 | 2 | } |
700 | 2.05M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
701 | 1.40M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
702 | 1.40M | } |
703 | 2.05M | _closed = true; |
704 | 2.05M | return Status::OK(); |
705 | 2.05M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 146k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 146k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 146k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 146k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 146k | } | 703 | 146k | _closed = true; | 704 | 146k | return Status::OK(); | 705 | 146k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 1 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 1 | } | 703 | 1 | _closed = true; | 704 | 1 | return Status::OK(); | 705 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 267k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 267k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 267k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 267k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 267k | } | 703 | 267k | _closed = true; | 704 | 267k | return Status::OK(); | 705 | 267k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 33 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 33 | if (_closed) { | 698 | 2 | return Status::OK(); | 699 | 2 | } | 700 | 31 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 31 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 31 | } | 703 | 31 | _closed = true; | 704 | 31 | return Status::OK(); | 705 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 9.39k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 9.39k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 9.39k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 9.39k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 9.39k | } | 703 | 9.39k | _closed = true; | 704 | 9.39k | return Status::OK(); | 705 | 9.39k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 8.10k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 8.10k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 8.10k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 8.10k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 8.10k | } | 703 | 8.10k | _closed = true; | 704 | 8.10k | return Status::OK(); | 705 | 8.10k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 155k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 155k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 155k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 155k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 155k | } | 703 | 155k | _closed = true; | 704 | 155k | return Status::OK(); | 705 | 155k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 51 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 51 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 51 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 51 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 51 | } | 703 | 51 | _closed = true; | 704 | 51 | return Status::OK(); | 705 | 51 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 653k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 653k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | | } | 703 | 653k | _closed = true; | 704 | 653k | return Status::OK(); | 705 | 653k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 8.73k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 8.73k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 8.73k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 8.73k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 8.73k | } | 703 | 8.73k | _closed = true; | 704 | 8.73k | return Status::OK(); | 705 | 8.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 278 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 278 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 278 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 278 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 278 | } | 703 | 278 | _closed = true; | 704 | 278 | return Status::OK(); | 705 | 278 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 3.05k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 3.05k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 3.05k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 3.05k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 3.05k | } | 703 | 3.05k | _closed = true; | 704 | 3.05k | return Status::OK(); | 705 | 3.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 12.6k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 12.6k | } | 703 | 12.6k | _closed = true; | 704 | 12.6k | return Status::OK(); | 705 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 319k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 319k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 319k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 319k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 319k | } | 703 | 319k | _closed = true; | 704 | 319k | return Status::OK(); | 705 | 319k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 472k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 472k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 472k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 472k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 472k | } | 703 | 472k | _closed = true; | 704 | 472k | return Status::OK(); | 705 | 472k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 13 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 13 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 13 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 13 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 13 | } | 703 | 13 | _closed = true; | 704 | 13 | return Status::OK(); | 705 | 13 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 302 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 302 | } | 703 | 302 | _closed = true; | 704 | 302 | return Status::OK(); | 705 | 302 | } |
|
706 | | |
707 | | template <typename LocalStateType> |
708 | 6.17k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
709 | 6.17k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
710 | 6.16k | return pull(state, block, eos); |
711 | 6.17k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 708 | 431 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 709 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 710 | 431 | return pull(state, block, eos); | 711 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 708 | 5.74k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 709 | 5.74k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 710 | 5.73k | return pull(state, block, eos); | 711 | 5.74k | } |
|
712 | | |
713 | | template <typename LocalStateType> |
714 | 688k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
715 | 688k | auto& local_state = get_local_state(state); |
716 | 688k | if (need_more_input_data(state)) { |
717 | 640k | local_state._child_block->clear_column_data( |
718 | 640k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
719 | 640k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
720 | 640k | state, local_state._child_block.get(), &local_state._child_eos)); |
721 | 640k | *eos = local_state._child_eos; |
722 | 640k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
723 | 53.6k | return Status::OK(); |
724 | 53.6k | } |
725 | 586k | { |
726 | 586k | SCOPED_TIMER(local_state.exec_time_counter()); |
727 | 586k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
728 | 586k | } |
729 | 586k | } |
730 | | |
731 | 634k | if (!need_more_input_data(state)) { |
732 | 587k | SCOPED_TIMER(local_state.exec_time_counter()); |
733 | 587k | bool new_eos = false; |
734 | 587k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
735 | 587k | if (new_eos) { |
736 | 506k | *eos = true; |
737 | 506k | } else if (!need_more_input_data(state)) { |
738 | 23.9k | *eos = false; |
739 | 23.9k | } |
740 | 587k | } |
741 | 634k | return Status::OK(); |
742 | 634k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 150k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 150k | auto& local_state = get_local_state(state); | 716 | 150k | if (need_more_input_data(state)) { | 717 | 116k | local_state._child_block->clear_column_data( | 718 | 116k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 116k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 116k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 116k | *eos = local_state._child_eos; | 722 | 116k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 23.3k | return Status::OK(); | 724 | 23.3k | } | 725 | 93.0k | { | 726 | 93.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 93.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 93.0k | } | 729 | 93.0k | } | 730 | | | 731 | 127k | if (!need_more_input_data(state)) { | 732 | 127k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 127k | bool new_eos = false; | 734 | 127k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 127k | if (new_eos) { | 736 | 74.3k | *eos = true; | 737 | 74.3k | } else if (!need_more_input_data(state)) { | 738 | 9.18k | *eos = false; | 739 | 9.18k | } | 740 | 127k | } | 741 | 127k | return Status::OK(); | 742 | 127k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 3.30k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 3.30k | auto& local_state = get_local_state(state); | 716 | 3.30k | if (need_more_input_data(state)) { | 717 | 2.05k | local_state._child_block->clear_column_data( | 718 | 2.05k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 2.05k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 2.05k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 2.05k | *eos = local_state._child_eos; | 722 | 2.05k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 469 | return Status::OK(); | 724 | 469 | } | 725 | 1.58k | { | 726 | 1.58k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 1.58k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 1.58k | } | 729 | 1.58k | } | 730 | | | 731 | 2.83k | if (!need_more_input_data(state)) { | 732 | 2.83k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 2.83k | bool new_eos = false; | 734 | 2.83k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 2.83k | if (new_eos) { | 736 | 1.22k | *eos = true; | 737 | 1.61k | } else if (!need_more_input_data(state)) { | 738 | 1.24k | *eos = false; | 739 | 1.24k | } | 740 | 2.83k | } | 741 | 2.83k | return Status::OK(); | 742 | 2.83k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 4.47k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 4.47k | auto& local_state = get_local_state(state); | 716 | 4.47k | if (need_more_input_data(state)) { | 717 | 4.47k | local_state._child_block->clear_column_data( | 718 | 4.47k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 4.47k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 4.47k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 4.47k | *eos = local_state._child_eos; | 722 | 4.47k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 1.55k | return Status::OK(); | 724 | 1.55k | } | 725 | 2.91k | { | 726 | 2.91k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 2.91k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 2.91k | } | 729 | 2.91k | } | 730 | | | 731 | 2.91k | if (!need_more_input_data(state)) { | 732 | 2.91k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 2.91k | bool new_eos = false; | 734 | 2.91k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 2.91k | if (new_eos) { | 736 | 1.59k | *eos = true; | 737 | 1.59k | } else if (!need_more_input_data(state)) { | 738 | 0 | *eos = false; | 739 | 0 | } | 740 | 2.91k | } | 741 | 2.91k | return Status::OK(); | 742 | 2.91k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 38.3k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 38.3k | auto& local_state = get_local_state(state); | 716 | 38.3k | if (need_more_input_data(state)) { | 717 | 38.3k | local_state._child_block->clear_column_data( | 718 | 38.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 38.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 38.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 38.3k | *eos = local_state._child_eos; | 722 | 38.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 6.89k | return Status::OK(); | 724 | 6.89k | } | 725 | 31.4k | { | 726 | 31.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 31.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 31.4k | } | 729 | 31.4k | } | 730 | | | 731 | 31.4k | if (!need_more_input_data(state)) { | 732 | 16.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 16.2k | bool new_eos = false; | 734 | 16.2k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 16.2k | if (new_eos) { | 736 | 16.1k | *eos = true; | 737 | 16.1k | } else if (!need_more_input_data(state)) { | 738 | 14 | *eos = false; | 739 | 14 | } | 740 | 16.2k | } | 741 | 31.4k | return Status::OK(); | 742 | 31.4k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 450k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 450k | auto& local_state = get_local_state(state); | 716 | 451k | if (need_more_input_data(state)) { | 717 | 451k | local_state._child_block->clear_column_data( | 718 | 451k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 451k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 451k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 451k | *eos = local_state._child_eos; | 722 | 451k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 18.5k | return Status::OK(); | 724 | 18.5k | } | 725 | 433k | { | 726 | 433k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 433k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 433k | } | 729 | 433k | } | 730 | | | 731 | 432k | if (!need_more_input_data(state)) { | 732 | 401k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 401k | bool new_eos = false; | 734 | 401k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 401k | if (new_eos) { | 736 | 400k | *eos = true; | 737 | 400k | } else if (!need_more_input_data(state)) { | 738 | 0 | *eos = false; | 739 | 0 | } | 740 | 401k | } | 741 | 432k | return Status::OK(); | 742 | 432k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 34.5k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 34.5k | auto& local_state = get_local_state(state); | 716 | 34.5k | if (need_more_input_data(state)) { | 717 | 21.4k | local_state._child_block->clear_column_data( | 718 | 21.4k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 21.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 21.4k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 21.4k | *eos = local_state._child_eos; | 722 | 21.4k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 2.34k | return Status::OK(); | 724 | 2.34k | } | 725 | 19.1k | { | 726 | 19.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 19.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 19.1k | } | 729 | 19.1k | } | 730 | | | 731 | 32.2k | if (!need_more_input_data(state)) { | 732 | 31.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 31.2k | bool new_eos = false; | 734 | 31.2k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 31.2k | if (new_eos) { | 736 | 9.40k | *eos = true; | 737 | 21.8k | } else if (!need_more_input_data(state)) { | 738 | 13.0k | *eos = false; | 739 | 13.0k | } | 740 | 31.2k | } | 741 | 32.2k | return Status::OK(); | 742 | 32.2k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 6.19k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 6.19k | auto& local_state = get_local_state(state); | 716 | 6.19k | if (need_more_input_data(state)) { | 717 | 5.78k | local_state._child_block->clear_column_data( | 718 | 5.78k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 5.78k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 5.78k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 5.78k | *eos = local_state._child_eos; | 722 | 5.78k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 418 | return Status::OK(); | 724 | 418 | } | 725 | 5.37k | { | 726 | 5.37k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 5.37k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 5.37k | } | 729 | 5.37k | } | 730 | | | 731 | 5.77k | if (!need_more_input_data(state)) { | 732 | 5.76k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 5.76k | bool new_eos = false; | 734 | 5.76k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 5.76k | if (new_eos) { | 736 | 3.66k | *eos = true; | 737 | 3.66k | } else if (!need_more_input_data(state)) { | 738 | 402 | *eos = false; | 739 | 402 | } | 740 | 5.76k | } | 741 | 5.77k | return Status::OK(); | 742 | 5.77k | } |
|
743 | | |
744 | | template <typename Writer, typename Parent> |
745 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
746 | 69.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
747 | 69.2k | RETURN_IF_ERROR(Base::init(state, info)); |
748 | 69.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
749 | 69.2k | "AsyncWriterDependency", true); |
750 | 69.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
751 | 69.2k | _finish_dependency)); |
752 | | |
753 | 69.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
754 | 69.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
755 | 69.2k | return Status::OK(); |
756 | 69.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 519 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 519 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 519 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 519 | "AsyncWriterDependency", true); | 750 | 519 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 519 | _finish_dependency)); | 752 | | | 753 | 519 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 519 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 519 | return Status::OK(); | 756 | 519 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 80 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 80 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 80 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 80 | "AsyncWriterDependency", true); | 750 | 80 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 80 | _finish_dependency)); | 752 | | | 753 | 80 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 80 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 80 | return Status::OK(); | 756 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 53.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 53.7k | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 53.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 53.7k | "AsyncWriterDependency", true); | 750 | 53.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 53.7k | _finish_dependency)); | 752 | | | 753 | 53.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 53.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 53.7k | return Status::OK(); | 756 | 53.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 5.46k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 5.46k | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 5.46k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 5.46k | "AsyncWriterDependency", true); | 750 | 5.46k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 5.46k | _finish_dependency)); | 752 | | | 753 | 5.46k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 5.46k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 5.46k | return Status::OK(); | 756 | 5.46k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 5.14k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 5.14k | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 5.14k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 5.14k | "AsyncWriterDependency", true); | 750 | 5.14k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 5.14k | _finish_dependency)); | 752 | | | 753 | 5.14k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 5.14k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 5.14k | return Status::OK(); | 756 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 3.38k | "AsyncWriterDependency", true); | 750 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 3.38k | _finish_dependency)); | 752 | | | 753 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 3.38k | return Status::OK(); | 756 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 160 | "AsyncWriterDependency", true); | 750 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 160 | _finish_dependency)); | 752 | | | 753 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 160 | return Status::OK(); | 756 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 640 | "AsyncWriterDependency", true); | 750 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 640 | _finish_dependency)); | 752 | | | 753 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 640 | return Status::OK(); | 756 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 156 | "AsyncWriterDependency", true); | 750 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 156 | _finish_dependency)); | 752 | | | 753 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 156 | return Status::OK(); | 756 | 156 | } |
|
757 | | |
758 | | template <typename Writer, typename Parent> |
759 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
760 | 69.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
761 | 69.5k | RETURN_IF_ERROR(Base::open(state)); |
762 | 69.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
763 | 631k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
764 | 562k | RETURN_IF_ERROR( |
765 | 562k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
766 | 562k | } |
767 | 69.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
768 | 69.5k | return Status::OK(); |
769 | 69.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 519 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 519 | RETURN_IF_ERROR(Base::open(state)); | 762 | 519 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 2.78k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 2.26k | RETURN_IF_ERROR( | 765 | 2.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 2.26k | } | 767 | 519 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 519 | return Status::OK(); | 769 | 519 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 80 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 80 | RETURN_IF_ERROR(Base::open(state)); | 762 | 80 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 388 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 308 | RETURN_IF_ERROR( | 765 | 308 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 308 | } | 767 | 80 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 80 | return Status::OK(); | 769 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 54.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 54.0k | RETURN_IF_ERROR(Base::open(state)); | 762 | 54.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 409k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 354k | RETURN_IF_ERROR( | 765 | 354k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 354k | } | 767 | 54.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 54.0k | return Status::OK(); | 769 | 54.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 5.43k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 5.43k | RETURN_IF_ERROR(Base::open(state)); | 762 | 5.43k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 38.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 32.8k | RETURN_IF_ERROR( | 765 | 32.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 32.8k | } | 767 | 5.43k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 5.43k | return Status::OK(); | 769 | 5.43k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 762 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 133k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 128k | RETURN_IF_ERROR( | 765 | 128k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 128k | } | 767 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 5.14k | return Status::OK(); | 769 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 762 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 42.0k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 38.6k | RETURN_IF_ERROR( | 765 | 38.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 38.6k | } | 767 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 3.38k | return Status::OK(); | 769 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 160 | RETURN_IF_ERROR(Base::open(state)); | 762 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 478 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 318 | RETURN_IF_ERROR( | 765 | 318 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 318 | } | 767 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 160 | return Status::OK(); | 769 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 640 | RETURN_IF_ERROR(Base::open(state)); | 762 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 4.39k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 3.75k | RETURN_IF_ERROR( | 765 | 3.75k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 3.75k | } | 767 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 640 | return Status::OK(); | 769 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 156 | RETURN_IF_ERROR(Base::open(state)); | 762 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 630 | RETURN_IF_ERROR( | 765 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 630 | } | 767 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 156 | return Status::OK(); | 769 | 156 | } |
|
770 | | |
771 | | template <typename Writer, typename Parent> |
772 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
773 | 89.5k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
774 | 89.5k | return _writer->sink(block, eos); |
775 | 89.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 1.95k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 1.95k | return _writer->sink(block, eos); | 775 | 1.95k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 104 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 104 | return _writer->sink(block, eos); | 775 | 104 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 66.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 66.8k | return _writer->sink(block, eos); | 775 | 66.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 6.47k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 6.47k | return _writer->sink(block, eos); | 775 | 6.47k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 7.50k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 7.50k | return _writer->sink(block, eos); | 775 | 7.50k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 5.38k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 5.38k | return _writer->sink(block, eos); | 775 | 5.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 180 | return _writer->sink(block, eos); | 775 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 782 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 782 | return _writer->sink(block, eos); | 775 | 782 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 306 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 306 | return _writer->sink(block, eos); | 775 | 306 | } |
|
776 | | |
777 | | template <typename Writer, typename Parent> |
778 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
779 | 69.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
780 | 69.6k | if (_closed) { |
781 | 0 | return Status::OK(); |
782 | 0 | } |
783 | 69.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
784 | 69.6k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
785 | | // if the init failed, the _writer may be nullptr. so here need check |
786 | 69.6k | if (_writer) { |
787 | 69.6k | Status st = _writer->get_writer_status(); |
788 | 69.6k | if (exec_status.ok()) { |
789 | 69.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
790 | 69.5k | : Status::Cancelled("force close")); |
791 | 69.5k | } else { |
792 | 68 | _writer->force_close(exec_status); |
793 | 68 | } |
794 | | // If there is an error in process_block thread, then we should get the writer |
795 | | // status before call force_close. For example, the thread may failed in commit |
796 | | // transaction. |
797 | 69.6k | RETURN_IF_ERROR(st); |
798 | 69.6k | } |
799 | 69.5k | return Base::close(state, exec_status); |
800 | 69.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 508 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 508 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 508 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 508 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 508 | if (_writer) { | 787 | 508 | Status st = _writer->get_writer_status(); | 788 | 508 | if (exec_status.ok()) { | 789 | 508 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 508 | : Status::Cancelled("force close")); | 791 | 508 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 508 | RETURN_IF_ERROR(st); | 798 | 508 | } | 799 | 508 | return Base::close(state, exec_status); | 800 | 508 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 80 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 80 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 80 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 80 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 80 | if (_writer) { | 787 | 80 | Status st = _writer->get_writer_status(); | 788 | 80 | if (exec_status.ok()) { | 789 | 80 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 80 | : Status::Cancelled("force close")); | 791 | 80 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 80 | RETURN_IF_ERROR(st); | 798 | 80 | } | 799 | 80 | return Base::close(state, exec_status); | 800 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 54.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 54.1k | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 54.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 54.1k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 54.1k | if (_writer) { | 787 | 54.1k | Status st = _writer->get_writer_status(); | 788 | 54.1k | if (exec_status.ok()) { | 789 | 54.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 54.0k | : Status::Cancelled("force close")); | 791 | 54.0k | } else { | 792 | 52 | _writer->force_close(exec_status); | 793 | 52 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 54.1k | RETURN_IF_ERROR(st); | 798 | 54.1k | } | 799 | 54.0k | return Base::close(state, exec_status); | 800 | 54.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 5.45k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 5.45k | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 5.45k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 5.45k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 5.46k | if (_writer) { | 787 | 5.46k | Status st = _writer->get_writer_status(); | 788 | 5.46k | if (exec_status.ok()) { | 789 | 5.44k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 5.44k | : Status::Cancelled("force close")); | 791 | 5.44k | } else { | 792 | 16 | _writer->force_close(exec_status); | 793 | 16 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 5.46k | RETURN_IF_ERROR(st); | 798 | 5.46k | } | 799 | 5.45k | return Base::close(state, exec_status); | 800 | 5.45k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 5.14k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 5.14k | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 5.14k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 5.14k | if (_writer) { | 787 | 5.14k | Status st = _writer->get_writer_status(); | 788 | 5.14k | if (exec_status.ok()) { | 789 | 5.14k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 5.14k | : Status::Cancelled("force close")); | 791 | 5.14k | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 5.14k | RETURN_IF_ERROR(st); | 798 | 5.14k | } | 799 | 5.14k | return Base::close(state, exec_status); | 800 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 3.38k | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 3.38k | if (_writer) { | 787 | 3.38k | Status st = _writer->get_writer_status(); | 788 | 3.38k | if (exec_status.ok()) { | 789 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 3.38k | : Status::Cancelled("force close")); | 791 | 3.38k | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 3.38k | RETURN_IF_ERROR(st); | 798 | 3.38k | } | 799 | 3.38k | return Base::close(state, exec_status); | 800 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 160 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 160 | if (_writer) { | 787 | 160 | Status st = _writer->get_writer_status(); | 788 | 160 | if (exec_status.ok()) { | 789 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 160 | : Status::Cancelled("force close")); | 791 | 160 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 160 | RETURN_IF_ERROR(st); | 798 | 160 | } | 799 | 160 | return Base::close(state, exec_status); | 800 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 640 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 640 | if (_writer) { | 787 | 640 | Status st = _writer->get_writer_status(); | 788 | 640 | if (exec_status.ok()) { | 789 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 640 | : Status::Cancelled("force close")); | 791 | 640 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 640 | RETURN_IF_ERROR(st); | 798 | 640 | } | 799 | 640 | return Base::close(state, exec_status); | 800 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 156 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 156 | if (_writer) { | 787 | 156 | Status st = _writer->get_writer_status(); | 788 | 156 | if (exec_status.ok()) { | 789 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 156 | : Status::Cancelled("force close")); | 791 | 156 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 156 | RETURN_IF_ERROR(st); | 798 | 156 | } | 799 | 156 | return Base::close(state, exec_status); | 800 | 156 | } |
|
801 | | |
802 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
803 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
804 | | DECLARE_OPERATOR(ResultSinkLocalState) |
805 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
806 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
807 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
808 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
809 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
810 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
811 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
812 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
813 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
814 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
815 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
816 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
817 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
818 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
819 | | DECLARE_OPERATOR(SortSinkLocalState) |
820 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
821 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
822 | | DECLARE_OPERATOR(AggSinkLocalState) |
823 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
824 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
825 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
826 | | DECLARE_OPERATOR(UnionSinkLocalState) |
827 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
828 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
829 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
830 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
831 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
832 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
833 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
834 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
835 | | DECLARE_OPERATOR(CacheSinkLocalState) |
836 | | DECLARE_OPERATOR(DictSinkLocalState) |
837 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
838 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
839 | | |
840 | | #undef DECLARE_OPERATOR |
841 | | |
842 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
843 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
844 | | DECLARE_OPERATOR(OlapScanLocalState) |
845 | | DECLARE_OPERATOR(GroupCommitLocalState) |
846 | | DECLARE_OPERATOR(JDBCScanLocalState) |
847 | | DECLARE_OPERATOR(FileScanLocalState) |
848 | | DECLARE_OPERATOR(EsScanLocalState) |
849 | | DECLARE_OPERATOR(AnalyticLocalState) |
850 | | DECLARE_OPERATOR(SortLocalState) |
851 | | DECLARE_OPERATOR(SpillSortLocalState) |
852 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
853 | | DECLARE_OPERATOR(AggLocalState) |
854 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
855 | | DECLARE_OPERATOR(TableFunctionLocalState) |
856 | | DECLARE_OPERATOR(ExchangeLocalState) |
857 | | DECLARE_OPERATOR(RepeatLocalState) |
858 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
859 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
860 | | DECLARE_OPERATOR(EmptySetLocalState) |
861 | | DECLARE_OPERATOR(UnionSourceLocalState) |
862 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
863 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
864 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
865 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
866 | | DECLARE_OPERATOR(DataGenLocalState) |
867 | | DECLARE_OPERATOR(SchemaScanLocalState) |
868 | | DECLARE_OPERATOR(MetaScanLocalState) |
869 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
871 | | DECLARE_OPERATOR(CacheSourceLocalState) |
872 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
873 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
874 | | |
875 | | #ifdef BE_TEST |
876 | | DECLARE_OPERATOR(MockLocalState) |
877 | | DECLARE_OPERATOR(MockScanLocalState) |
878 | | #endif |
879 | | #undef DECLARE_OPERATOR |
880 | | |
881 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
882 | | template class StreamingOperatorX<SelectLocalState>; |
883 | | |
884 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
885 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
886 | | template class StatefulOperatorX<RepeatLocalState>; |
887 | | template class StatefulOperatorX<MaterializationLocalState>; |
888 | | template class StatefulOperatorX<StreamingAggLocalState>; |
889 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
890 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
891 | | template class StatefulOperatorX<TableFunctionLocalState>; |
892 | | |
893 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
894 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
895 | | template class PipelineXSinkLocalState<SortSharedState>; |
896 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
897 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
898 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
899 | | template class PipelineXSinkLocalState<AggSharedState>; |
900 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
901 | | template class PipelineXSinkLocalState<FakeSharedState>; |
902 | | template class PipelineXSinkLocalState<UnionSharedState>; |
903 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
904 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
905 | | template class PipelineXSinkLocalState<SetSharedState>; |
906 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
907 | | template class PipelineXSinkLocalState<BasicSharedState>; |
908 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
909 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
910 | | |
911 | | template class PipelineXLocalState<HashJoinSharedState>; |
912 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
913 | | template class PipelineXLocalState<SortSharedState>; |
914 | | template class PipelineXLocalState<SpillSortSharedState>; |
915 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
916 | | template class PipelineXLocalState<AnalyticSharedState>; |
917 | | template class PipelineXLocalState<AggSharedState>; |
918 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
919 | | template class PipelineXLocalState<FakeSharedState>; |
920 | | template class PipelineXLocalState<UnionSharedState>; |
921 | | template class PipelineXLocalState<DataQueueSharedState>; |
922 | | template class PipelineXLocalState<MultiCastSharedState>; |
923 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
924 | | template class PipelineXLocalState<SetSharedState>; |
925 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
926 | | template class PipelineXLocalState<BasicSharedState>; |
927 | | template class PipelineXLocalState<RecCTESharedState>; |
928 | | |
929 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
930 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
931 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
932 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
933 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
934 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
935 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
936 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
938 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
939 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
940 | | |
941 | | #ifdef BE_TEST |
942 | | template class OperatorX<DummyOperatorLocalState>; |
943 | | template class DataSinkOperatorX<DummySinkLocalState>; |
944 | | #endif |
945 | | |
946 | | #include "common/compile_check_end.h" |
947 | | } // namespace doris |