Coverage Report

Created: 2026-07-29 07:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
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 <algorithm>
21
22
#include "common/status.h"
23
#include "exec/common/util.hpp"
24
#include "exec/exchange/local_exchange_sink_operator.h"
25
#include "exec/exchange/local_exchange_source_operator.h"
26
#include "exec/operator/aggregation_sink_operator.h"
27
#include "exec/operator/aggregation_source_operator.h"
28
#include "exec/operator/analytic_sink_operator.h"
29
#include "exec/operator/analytic_source_operator.h"
30
#include "exec/operator/assert_num_rows_operator.h"
31
#include "exec/operator/blackhole_sink_operator.h"
32
#include "exec/operator/bucketed_aggregation_sink_operator.h"
33
#include "exec/operator/bucketed_aggregation_source_operator.h"
34
#include "exec/operator/cache_sink_operator.h"
35
#include "exec/operator/cache_source_operator.h"
36
#include "exec/operator/datagen_operator.h"
37
#include "exec/operator/dict_sink_operator.h"
38
#include "exec/operator/distinct_streaming_aggregation_operator.h"
39
#include "exec/operator/empty_set_operator.h"
40
#include "exec/operator/exchange_sink_operator.h"
41
#include "exec/operator/exchange_source_operator.h"
42
#include "exec/operator/file_scan_operator.h"
43
#include "exec/operator/group_commit_block_sink_operator.h"
44
#include "exec/operator/group_commit_scan_operator.h"
45
#include "exec/operator/hashjoin_build_sink.h"
46
#include "exec/operator/hashjoin_probe_operator.h"
47
#include "exec/operator/hive_table_sink_operator.h"
48
#include "exec/operator/iceberg_delete_sink_operator.h"
49
#include "exec/operator/iceberg_merge_sink_operator.h"
50
#include "exec/operator/iceberg_table_sink_operator.h"
51
#include "exec/operator/jdbc_scan_operator.h"
52
#include "exec/operator/jdbc_table_sink_operator.h"
53
#include "exec/operator/local_merge_sort_source_operator.h"
54
#include "exec/operator/materialization_opertor.h"
55
#include "exec/operator/maxcompute_table_sink_operator.h"
56
#include "exec/operator/memory_scratch_sink_operator.h"
57
#include "exec/operator/meta_scan_operator.h"
58
#include "exec/operator/mock_operator.h"
59
#include "exec/operator/mock_scan_operator.h"
60
#include "exec/operator/multi_cast_data_stream_sink.h"
61
#include "exec/operator/multi_cast_data_stream_source.h"
62
#include "exec/operator/nested_loop_join_build_operator.h"
63
#include "exec/operator/nested_loop_join_probe_operator.h"
64
#include "exec/operator/olap_scan_operator.h"
65
#include "exec/operator/olap_table_sink_operator.h"
66
#include "exec/operator/olap_table_sink_v2_operator.h"
67
#include "exec/operator/partition_sort_sink_operator.h"
68
#include "exec/operator/partition_sort_source_operator.h"
69
#include "exec/operator/partitioned_aggregation_sink_operator.h"
70
#include "exec/operator/partitioned_aggregation_source_operator.h"
71
#include "exec/operator/partitioned_hash_join_probe_operator.h"
72
#include "exec/operator/partitioned_hash_join_sink_operator.h"
73
#include "exec/operator/rec_cte_anchor_sink_operator.h"
74
#include "exec/operator/rec_cte_scan_operator.h"
75
#include "exec/operator/rec_cte_sink_operator.h"
76
#include "exec/operator/rec_cte_source_operator.h"
77
#include "exec/operator/repeat_operator.h"
78
#include "exec/operator/result_file_sink_operator.h"
79
#include "exec/operator/result_sink_operator.h"
80
#include "exec/operator/schema_scan_operator.h"
81
#include "exec/operator/select_operator.h"
82
#include "exec/operator/set_probe_sink_operator.h"
83
#include "exec/operator/set_sink_operator.h"
84
#include "exec/operator/set_source_operator.h"
85
#include "exec/operator/sort_sink_operator.h"
86
#include "exec/operator/sort_source_operator.h"
87
#include "exec/operator/spill_iceberg_table_sink_operator.h"
88
#include "exec/operator/spill_sort_sink_operator.h"
89
#include "exec/operator/spill_sort_source_operator.h"
90
#include "exec/operator/streaming_aggregation_operator.h"
91
#include "exec/operator/table_function_operator.h"
92
#include "exec/operator/tvf_table_sink_operator.h"
93
#include "exec/operator/union_sink_operator.h"
94
#include "exec/operator/union_source_operator.h"
95
#include "exec/pipeline/dependency.h"
96
#include "exec/pipeline/pipeline.h"
97
#include "exprs/vexpr.h"
98
#include "exprs/vexpr_context.h"
99
#include "runtime/runtime_profile.h"
100
#include "runtime/runtime_profile_counter_names.h"
101
#include "util/debug_util.h"
102
#include "util/string_util.h"
103
104
namespace doris {
105
class RowDescriptor;
106
class RuntimeState;
107
} // namespace doris
108
109
namespace doris {
110
111
0
Status OperatorBase::close(RuntimeState* state) {
112
0
    if (_is_closed) {
113
0
        return Status::OK();
114
0
    }
115
0
    _is_closed = true;
116
0
    return Status::OK();
117
0
}
118
119
template <typename SharedStateArg>
120
2.38M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.38M
    if (_parent->nereids_id() == -1) {
122
1.27M
        return fmt::format("(id={})", _parent->node_id());
123
1.27M
    } else {
124
1.11M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.11M
    }
126
2.38M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
71.7k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
71.7k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
71.7k
    } else {
124
71.7k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
71.7k
    }
126
71.7k
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
1
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
1
    if (_parent->nereids_id() == -1) {
122
1
        return fmt::format("(id={})", _parent->node_id());
123
1
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
1
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
264k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
264k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
264k
    } else {
124
264k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
264k
    }
126
264k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
22
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
22
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
22
    } else {
124
22
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
22
    }
126
22
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
10.3k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.3k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
10.3k
    } else {
124
10.3k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
10.3k
    }
126
10.3k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
7.59k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
7.59k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
7.58k
    } else {
124
7.58k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
7.58k
    }
126
7.59k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
161k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
161k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
161k
    } else {
124
161k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
161k
    }
126
161k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
521
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
521
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
521
    } else {
124
521
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
521
    }
126
521
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
137
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
137
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
137
    } else {
124
137
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
137
    }
126
137
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
968k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
968k
    if (_parent->nereids_id() == -1) {
122
430k
        return fmt::format("(id={})", _parent->node_id());
123
538k
    } else {
124
538k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
538k
    }
126
968k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
56.8k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
56.8k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
56.8k
    } else {
124
56.8k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
56.8k
    }
126
56.8k
}
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
26
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
26
    if (_parent->nereids_id() == -1) {
122
26
        return fmt::format("(id={})", _parent->node_id());
123
26
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
26
}
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.2k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.2k
    if (_parent->nereids_id() == -1) {
122
11.2k
        return fmt::format("(id={})", _parent->node_id());
123
11.2k
    } else {
124
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1
    }
126
11.2k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
390
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
390
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
288
    } else {
124
288
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
288
    }
126
390
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
5.40k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
5.40k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
5.39k
    } else {
124
5.39k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
5.39k
    }
126
5.40k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
829k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
829k
    if (_parent->nereids_id() == -1) {
122
829k
        return fmt::format("(id={})", _parent->node_id());
123
829k
    } else {
124
590
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
590
    }
126
829k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
164
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
164
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
164
    } else {
124
164
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
164
    }
126
164
}
127
128
template <typename SharedStateArg>
129
1.46M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.46M
    if (_parent->nereids_id() == -1) {
131
887k
        return fmt::format("(id={})", _parent->node_id());
132
887k
    } else {
133
574k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
574k
    }
135
1.46M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
119k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
119k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
119k
    } else {
133
119k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
119k
    }
135
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
2
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
2
    if (_parent->nereids_id() == -1) {
131
1
        return fmt::format("(id={})", _parent->node_id());
132
1
    } else {
133
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
1
    }
135
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
266k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
266k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
266k
    } else {
133
266k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
266k
    }
135
266k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
29
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
29
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
29
    } else {
133
29
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
29
    }
135
29
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
10.3k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
10.3k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
10.3k
    } else {
133
10.3k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
10.3k
    }
135
10.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.60k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.60k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
7.59k
    } else {
133
7.59k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.59k
    }
135
7.60k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
161k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
161k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
161k
    } else {
133
161k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
161k
    }
135
161k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
520
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
520
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
520
    } else {
133
520
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
520
    }
135
520
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
147
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
147
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
147
    } else {
133
147
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
147
    }
135
147
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
128
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
128
    if (_parent->nereids_id() == -1) {
131
127
        return fmt::format("(id={})", _parent->node_id());
132
127
    } else {
133
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
1
    }
135
128
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.29k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.29k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
7.29k
    } else {
133
7.29k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.29k
    }
135
7.29k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
389
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
389
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
287
    } else {
133
287
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
287
    }
135
389
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
13.1k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
13.2k
    if (_parent->nereids_id() == -1) {
131
13.2k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
13.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
323k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
324k
    if (_parent->nereids_id() == -1) {
131
324k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
323k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
550k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
550k
    if (_parent->nereids_id() == -1) {
131
550k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
550k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
25
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
25
    if (_parent->nereids_id() == -1) {
131
25
        return fmt::format("(id={})", _parent->node_id());
132
25
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
25
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
328
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
328
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
328
    } else {
133
328
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
328
    }
135
328
}
136
137
template <typename SharedStateArg>
138
30.0k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
30.0k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
30.0k
    _terminated = true;
143
30.0k
    return Status::OK();
144
30.0k
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
24.0k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
24.0k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
24.0k
    _terminated = true;
143
24.0k
    return Status::OK();
144
24.0k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.78k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.78k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1.78k
    _terminated = true;
143
1.78k
    return Status::OK();
144
1.78k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2
    _terminated = true;
143
2
    return Status::OK();
144
2
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.59k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.59k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.59k
    _terminated = true;
143
2.59k
    return Status::OK();
144
2.59k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
635
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
635
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
634
    _terminated = true;
143
634
    return Status::OK();
144
635
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
21
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
21
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
21
    _terminated = true;
143
21
    return Status::OK();
144
21
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2
    _terminated = true;
143
2
    return Status::OK();
144
2
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
640
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
640
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
640
    _terminated = true;
143
640
    return Status::OK();
144
640
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
211
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
211
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
211
    _terminated = true;
143
211
    return Status::OK();
144
211
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
145
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
145
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
145
    _terminated = true;
143
145
    return Status::OK();
144
145
}
145
146
443k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
443k
    return _child && _child->is_serial_operator() && !is_source()
148
443k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
443k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
443k
}
151
152
41.8k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
41.8k
    if (!_child) {
154
36.7k
        return false;
155
36.7k
    }
156
5.06k
    if (_child->is_serial_operator()) {
157
196
        return true;
158
196
    }
159
4.86k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.86k
    return child_distribution.need_local_exchange() &&
161
4.86k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.06k
}
163
164
82.8k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.8k
    return _child->row_desc();
166
82.8k
}
167
168
template <typename SharedStateArg>
169
19.7k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
19.7k
    fmt::memory_buffer debug_string_buffer;
171
19.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
19.7k
    return fmt::to_string(debug_string_buffer);
173
19.7k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
32
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
32
    fmt::memory_buffer debug_string_buffer;
171
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
32
    return fmt::to_string(debug_string_buffer);
173
32
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
3
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
3
    fmt::memory_buffer debug_string_buffer;
171
3
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
3
    return fmt::to_string(debug_string_buffer);
173
3
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
19.6k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
19.6k
    fmt::memory_buffer debug_string_buffer;
171
19.6k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
19.6k
    return fmt::to_string(debug_string_buffer);
173
19.6k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
1
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
1
    fmt::memory_buffer debug_string_buffer;
171
1
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
1
    return fmt::to_string(debug_string_buffer);
173
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
169
96
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
96
    fmt::memory_buffer debug_string_buffer;
171
96
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
96
    return fmt::to_string(debug_string_buffer);
173
96
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
19.7k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
19.7k
    fmt::memory_buffer debug_string_buffer;
178
19.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
19.7k
    return fmt::to_string(debug_string_buffer);
180
19.7k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
64
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
64
    fmt::memory_buffer debug_string_buffer;
178
64
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
64
    return fmt::to_string(debug_string_buffer);
180
64
}
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
176
49
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
49
    fmt::memory_buffer debug_string_buffer;
178
49
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
49
    return fmt::to_string(debug_string_buffer);
180
49
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
19.5k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
19.5k
    fmt::memory_buffer debug_string_buffer;
178
19.5k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
19.5k
    return fmt::to_string(debug_string_buffer);
180
19.5k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
19.8k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
19.8k
    fmt::memory_buffer debug_string_buffer;
184
19.8k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
19.8k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
19.8k
                   _is_serial_operator);
187
19.8k
    return fmt::to_string(debug_string_buffer);
188
19.8k
}
189
190
19.7k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
19.7k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
19.7k
}
193
194
863k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
863k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
863k
    _nereids_id = tnode.nereids_id;
197
863k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.14k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.14k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.14k
            tnode.intermediate_projections_list.size()) {
203
0
            return Status::InternalError(
204
0
                    "intermediate_output_tuple_id_list size:{} not match "
205
0
                    "intermediate_projections_list size:{}",
206
0
                    tnode.intermediate_output_tuple_id_list.size(),
207
0
                    tnode.intermediate_projections_list.size());
208
0
        }
209
4.14k
    }
210
863k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
863k
    _op_name = substr + "_OPERATOR";
212
213
863k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
863k
    } else if (tnode.__isset.conjuncts) {
216
486k
        for (const auto& conjunct : tnode.conjuncts) {
217
486k
            VExprContextSPtr context;
218
486k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
486k
            _conjuncts.emplace_back(context);
220
486k
        }
221
156k
    }
222
223
    // create the projections expr
224
863k
    if (tnode.__isset.projections) {
225
333k
        DCHECK(tnode.__isset.output_tuple_id);
226
333k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
333k
    }
228
863k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.14k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.14k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.47k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.47k
            VExprContextSPtrs projections;
233
8.47k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.47k
            _intermediate_projections.push_back(projections);
235
8.47k
        }
236
4.14k
    }
237
863k
    return Status::OK();
238
863k
}
239
240
895k
Status OperatorXBase::prepare(RuntimeState* state) {
241
895k
    for (auto& conjunct : _conjuncts) {
242
485k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
485k
    }
244
895k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
842k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
645k
            return a->execute_cost() < b->execute_cost();
247
645k
        });
248
842k
    };
249
250
904k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.47k
        RETURN_IF_ERROR(
252
8.47k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.47k
    }
254
895k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
895k
    if (has_output_row_desc()) {
257
333k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
333k
    }
259
260
895k
    for (auto& conjunct : _conjuncts) {
261
486k
        RETURN_IF_ERROR(conjunct->open(state));
262
486k
    }
263
895k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
895k
    for (auto& projections : _intermediate_projections) {
265
8.47k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.47k
    }
267
895k
    if (_child && !is_source()) {
268
138k
        RETURN_IF_ERROR(_child->prepare(state));
269
138k
    }
270
271
895k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
895k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
895k
    return Status::OK();
277
895k
}
278
279
7.27k
Status OperatorXBase::terminate(RuntimeState* state) {
280
7.27k
    if (_child && !is_source()) {
281
1.19k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.19k
    }
283
7.27k
    auto result = state->get_local_state_result(operator_id());
284
7.27k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
7.27k
    return result.value()->terminate(state);
288
7.27k
}
289
290
6.67M
Status OperatorXBase::close(RuntimeState* state) {
291
6.67M
    if (_child && !is_source()) {
292
1.22M
        RETURN_IF_ERROR(_child->close(state));
293
1.22M
    }
294
6.67M
    auto result = state->get_local_state_result(operator_id());
295
6.67M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.67M
    return result.value()->close(state);
299
6.67M
}
300
301
306k
void PipelineXLocalStateBase::clear_origin_block() {
302
306k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
306k
}
304
305
684k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
684k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
684k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
684k
    return Status::OK();
310
684k
}
311
312
0
bool PipelineXLocalStateBase::is_blockable() const {
313
0
    return std::any_of(_projections.begin(), _projections.end(),
314
0
                       [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); });
315
0
}
316
317
Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block,
318
306k
                                     Block* output_block) const {
319
306k
    auto* local_state = state->get_local_state(operator_id());
320
306k
    SCOPED_TIMER(local_state->exec_time_counter());
321
306k
    SCOPED_TIMER(local_state->_projection_timer);
322
306k
    const size_t rows = origin_block->rows();
323
306k
    if (rows == 0) {
324
158k
        return Status::OK();
325
158k
    }
326
148k
    Block input_block = *origin_block;
327
328
148k
    size_t bytes_usage = 0;
329
148k
    ColumnsWithTypeAndName new_columns;
330
148k
    for (const auto& projections : local_state->_intermediate_projections) {
331
2.03k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
2.03k
        new_columns.resize(projections.size());
336
15.3k
        for (int i = 0; i < projections.size(); i++) {
337
13.3k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
13.3k
            if (new_columns[i].column->size() != rows) {
339
0
                return Status::InternalError(
340
0
                        "intermediate projection result column size {} not equal input rows {}, "
341
0
                        "expr: {}",
342
0
                        new_columns[i].column->size(), rows,
343
0
                        projections[i]->root()->debug_string());
344
0
            }
345
13.3k
        }
346
2.03k
        Block tmp_block {new_columns};
347
2.03k
        bytes_usage += tmp_block.allocated_bytes();
348
2.03k
        input_block.swap(tmp_block);
349
2.03k
    }
350
351
148k
    if (input_block.rows() != rows) {
352
0
        return Status::InternalError(
353
0
                "after intermediate projections input block rows {} not equal origin rows {}, "
354
0
                "input_block: {}",
355
0
                input_block.rows(), rows, input_block.dump_structure());
356
0
    }
357
699k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
699k
        if (is_column_nullable(*to) && !is_column_nullable(*from)) {
359
0
            if (_keep_origin || !from->is_exclusive()) {
360
0
                auto& null_column = reinterpret_cast<ColumnNullable&>(*to);
361
0
                null_column.get_nested_column().insert_range_from(*from, 0, rows);
362
0
                null_column.get_null_map_column().get_data().resize_fill(rows, 0);
363
0
                bytes_usage += null_column.allocated_bytes();
364
0
            } else {
365
0
                to = make_nullable(from, false)->assert_mutable();
366
0
            }
367
699k
        } else {
368
699k
            if (_keep_origin || !from->is_exclusive()) {
369
699k
                to->insert_range_from(*from, 0, rows);
370
699k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
699k
        }
375
699k
    };
376
377
148k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
148k
            output_block, *_output_row_descriptor);
379
148k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
148k
    auto& mutable_columns = mutable_block.mutable_columns();
381
148k
    if (rows != 0) {
382
148k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
847k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
699k
            ColumnPtr column_ptr;
385
699k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
699k
            if (column_ptr->size() != rows) {
387
0
                return Status::InternalError(
388
0
                        "projection result column size {} not equal input rows {}, expr: {}",
389
0
                        column_ptr->size(), rows,
390
0
                        local_state->_projections[i]->root()->debug_string());
391
0
            }
392
699k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
699k
            bytes_usage += column_ptr->allocated_bytes();
394
699k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
699k
        }
396
148k
        DCHECK(mutable_block.rows() == rows);
397
148k
    }
398
148k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
148k
    return Status::OK();
401
148k
}
402
403
5.01M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
5.01M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
5.01M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
5.01M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
5.01M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
5.01M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
5.01M
            if (_debug_point_count++ % 2 == 0) {
410
5.01M
                return Status::OK();
411
5.01M
            }
412
5.01M
        }
413
5.01M
    });
414
415
5.01M
    Status status;
416
5.01M
    auto* local_state = state->get_local_state(operator_id());
417
5.02M
    Defer defer([&]() {
418
5.02M
        if (status.ok()) {
419
5.02M
            local_state->update_output_block_counters(*block);
420
5.02M
        }
421
5.02M
    });
422
5.01M
    if (_output_row_descriptor) {
423
306k
        local_state->clear_origin_block();
424
306k
        status = get_block(state, &local_state->_origin_block, eos);
425
306k
        if (UNLIKELY(!status.ok())) {
426
22
            return status;
427
22
        }
428
306k
        status = do_projections(state, &local_state->_origin_block, block);
429
306k
        return status;
430
306k
    }
431
4.71M
    status = get_block(state, block, eos);
432
4.71M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.71M
    return status;
434
4.71M
}
435
436
3.39M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.39M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
6.73k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
6.73k
        *eos = true;
440
6.73k
    }
441
442
3.39M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.39M
        auto op_name = to_lower(_parent->_op_name);
444
3.39M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.39M
        arg_op_name = to_lower(arg_op_name);
446
447
3.39M
        if (op_name == arg_op_name) {
448
3.39M
            *eos = true;
449
3.39M
        }
450
3.39M
    });
451
452
3.39M
    if (auto rows = block->rows()) {
453
949k
        _num_rows_returned += rows;
454
949k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
949k
    }
456
3.39M
}
457
458
30.0k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
30.0k
    auto result = state->get_sink_local_state_result();
460
30.0k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
30.0k
    return result.value()->terminate(state);
464
30.0k
}
465
466
19.7k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
19.7k
    fmt::memory_buffer debug_string_buffer;
468
469
19.7k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
19.7k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
19.7k
    return fmt::to_string(debug_string_buffer);
472
19.7k
}
473
474
19.7k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
19.7k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
19.7k
}
477
478
478k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
478k
    std::string op_name = "UNKNOWN_SINK";
480
478k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
478k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
478k
        op_name = it->second;
484
478k
    }
485
478k
    _name = op_name + "_OPERATOR";
486
478k
    return Status::OK();
487
478k
}
488
489
325k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
325k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
325k
    _nereids_id = tnode.nereids_id;
492
325k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
325k
    _name = substr + "_SINK_OPERATOR";
494
325k
    return Status::OK();
495
325k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.21M
                                                            LocalSinkStateInfo& info) {
500
2.21M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.21M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.21M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.21M
    return Status::OK();
504
2.21M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
119k
                                                            LocalSinkStateInfo& info) {
500
119k
    auto local_state = LocalStateType::create_unique(this, state);
501
119k
    RETURN_IF_ERROR(local_state->init(state, info));
502
119k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
119k
    return Status::OK();
504
119k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
479k
                                                            LocalSinkStateInfo& info) {
500
479k
    auto local_state = LocalStateType::create_unique(this, state);
501
479k
    RETURN_IF_ERROR(local_state->init(state, info));
502
479k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
479k
    return Status::OK();
504
479k
}
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
86
                                                            LocalSinkStateInfo& info) {
500
86
    auto local_state = LocalStateType::create_unique(this, state);
501
86
    RETURN_IF_ERROR(local_state->init(state, info));
502
86
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
86
    return Status::OK();
504
86
}
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3
                                                            LocalSinkStateInfo& info) {
500
3
    auto local_state = LocalStateType::create_unique(this, state);
501
3
    RETURN_IF_ERROR(local_state->init(state, info));
502
3
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3
    return Status::OK();
504
3
}
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
511
                                                            LocalSinkStateInfo& info) {
500
511
    auto local_state = LocalStateType::create_unique(this, state);
501
511
    RETURN_IF_ERROR(local_state->init(state, info));
502
511
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
511
    return Status::OK();
504
511
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
48.3k
                                                            LocalSinkStateInfo& info) {
500
48.3k
    auto local_state = LocalStateType::create_unique(this, state);
501
48.3k
    RETURN_IF_ERROR(local_state->init(state, info));
502
48.3k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
48.3k
    return Status::OK();
504
48.3k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.59k
                                                            LocalSinkStateInfo& info) {
500
9.59k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.59k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.59k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.59k
    return Status::OK();
504
9.59k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.17k
                                                            LocalSinkStateInfo& info) {
500
5.17k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.17k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.17k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.17k
    return Status::OK();
504
5.17k
}
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
156
                                                            LocalSinkStateInfo& info) {
500
156
    auto local_state = LocalStateType::create_unique(this, state);
501
156
    RETURN_IF_ERROR(local_state->init(state, info));
502
156
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
156
    return Status::OK();
504
156
}
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.00k
                                                            LocalSinkStateInfo& info) {
500
4.00k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.00k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.00k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.00k
    return Status::OK();
504
4.00k
}
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
48
                                                            LocalSinkStateInfo& info) {
500
48
    auto local_state = LocalStateType::create_unique(this, state);
501
48
    RETURN_IF_ERROR(local_state->init(state, info));
502
48
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
48
    return Status::OK();
504
48
}
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
704
                                                            LocalSinkStateInfo& info) {
500
704
    auto local_state = LocalStateType::create_unique(this, state);
501
704
    RETURN_IF_ERROR(local_state->init(state, info));
502
704
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
704
    return Status::OK();
504
704
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
1.68k
                                                            LocalSinkStateInfo& info) {
500
1.68k
    auto local_state = LocalStateType::create_unique(this, state);
501
1.68k
    RETURN_IF_ERROR(local_state->init(state, info));
502
1.68k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
1.68k
    return Status::OK();
504
1.68k
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.59k
                                                            LocalSinkStateInfo& info) {
500
7.59k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.59k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.59k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.59k
    return Status::OK();
504
7.59k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
121
                                                            LocalSinkStateInfo& info) {
500
121
    auto local_state = LocalStateType::create_unique(this, state);
501
121
    RETURN_IF_ERROR(local_state->init(state, info));
502
121
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
121
    return Status::OK();
504
121
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
266k
                                                            LocalSinkStateInfo& info) {
500
266k
    auto local_state = LocalStateType::create_unique(this, state);
501
266k
    RETURN_IF_ERROR(local_state->init(state, info));
502
266k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
266k
    return Status::OK();
504
266k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
29
                                                            LocalSinkStateInfo& info) {
500
29
    auto local_state = LocalStateType::create_unique(this, state);
501
29
    RETURN_IF_ERROR(local_state->init(state, info));
502
29
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
29
    return Status::OK();
504
29
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
324k
                                                            LocalSinkStateInfo& info) {
500
324k
    auto local_state = LocalStateType::create_unique(this, state);
501
324k
    RETURN_IF_ERROR(local_state->init(state, info));
502
324k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
324k
    return Status::OK();
504
324k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
161k
                                                            LocalSinkStateInfo& info) {
500
161k
    auto local_state = LocalStateType::create_unique(this, state);
501
161k
    RETURN_IF_ERROR(local_state->init(state, info));
502
161k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
161k
    return Status::OK();
504
161k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
522
                                                            LocalSinkStateInfo& info) {
500
522
    auto local_state = LocalStateType::create_unique(this, state);
501
522
    RETURN_IF_ERROR(local_state->init(state, info));
502
522
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
522
    return Status::OK();
504
522
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
147
                                                            LocalSinkStateInfo& info) {
500
147
    auto local_state = LocalStateType::create_unique(this, state);
501
147
    RETURN_IF_ERROR(local_state->init(state, info));
502
147
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
147
    return Status::OK();
504
147
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
745k
                                                            LocalSinkStateInfo& info) {
500
745k
    auto local_state = LocalStateType::create_unique(this, state);
501
745k
    RETURN_IF_ERROR(local_state->init(state, info));
502
745k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
745k
    return Status::OK();
504
745k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
10.3k
                                                            LocalSinkStateInfo& info) {
500
10.3k
    auto local_state = LocalStateType::create_unique(this, state);
501
10.3k
    RETURN_IF_ERROR(local_state->init(state, info));
502
10.3k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
10.3k
    return Status::OK();
504
10.3k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.28k
                                                            LocalSinkStateInfo& info) {
500
7.28k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.28k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.28k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.28k
    return Status::OK();
504
7.28k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.09k
                                                            LocalSinkStateInfo& info) {
500
4.09k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.09k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.09k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.09k
    return Status::OK();
504
4.09k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
287
                                                            LocalSinkStateInfo& info) {
500
287
    auto local_state = LocalStateType::create_unique(this, state);
501
287
    RETURN_IF_ERROR(local_state->init(state, info));
502
287
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
287
    return Status::OK();
504
287
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.04k
                                                            LocalSinkStateInfo& info) {
500
5.04k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.04k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.04k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.04k
    return Status::OK();
504
5.04k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.73k
                                                            LocalSinkStateInfo& info) {
500
2.73k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.73k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.73k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.73k
    return Status::OK();
504
2.73k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.77k
                                                            LocalSinkStateInfo& info) {
500
2.77k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.77k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.77k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.77k
    return Status::OK();
504
2.77k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.57k
                                                            LocalSinkStateInfo& info) {
500
2.57k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.57k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.57k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.57k
    return Status::OK();
504
2.57k
}
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
1
                                                            LocalSinkStateInfo& info) {
500
1
    auto local_state = LocalStateType::create_unique(this, state);
501
1
    RETURN_IF_ERROR(local_state->init(state, info));
502
1
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
1
    return Status::OK();
504
1
}
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
569
                                                            LocalSinkStateInfo& info) {
500
569
    auto local_state = LocalStateType::create_unique(this, state);
501
569
    RETURN_IF_ERROR(local_state->init(state, info));
502
569
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
569
    return Status::OK();
504
569
}
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
14
                                                            LocalSinkStateInfo& info) {
500
14
    auto local_state = LocalStateType::create_unique(this, state);
501
14
    RETURN_IF_ERROR(local_state->init(state, info));
502
14
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
14
    return Status::OK();
504
14
}
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
105
                                                            LocalSinkStateInfo& info) {
500
105
    auto local_state = LocalStateType::create_unique(this, state);
501
105
    RETURN_IF_ERROR(local_state->init(state, info));
502
105
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
105
    return Status::OK();
504
105
}
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
164
                                                            LocalSinkStateInfo& info) {
500
164
    auto local_state = LocalStateType::create_unique(this, state);
501
164
    RETURN_IF_ERROR(local_state->init(state, info));
502
164
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
164
    return Status::OK();
504
164
}
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
164
                                                            LocalSinkStateInfo& info) {
500
164
    auto local_state = LocalStateType::create_unique(this, state);
501
164
    RETURN_IF_ERROR(local_state->init(state, info));
502
164
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
164
    return Status::OK();
504
164
}
505
506
template <typename LocalStateType>
507
1.85M
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
0
                                 LocalExchangeSharedState>) {
510
0
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
0
                                        MultiCastSharedState>) {
513
0
        throw Exception(Status::FatalError("should not reach here!"));
514
1.85M
    } else {
515
1.85M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.85M
        ss->id = operator_id();
517
1.85M
        for (auto& dest : dests_id()) {
518
1.84M
            ss->related_op_ids.insert(dest);
519
1.84M
        }
520
1.85M
        return ss;
521
1.85M
    }
522
1.85M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
99.1k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
99.1k
    } else {
515
99.1k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
99.1k
        ss->id = operator_id();
517
99.1k
        for (auto& dest : dests_id()) {
518
99.1k
            ss->related_op_ids.insert(dest);
519
99.1k
        }
520
99.1k
        return ss;
521
99.1k
    }
522
99.1k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
480k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
480k
    } else {
515
480k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
480k
        ss->id = operator_id();
517
480k
        for (auto& dest : dests_id()) {
518
479k
            ss->related_op_ids.insert(dest);
519
479k
        }
520
480k
        return ss;
521
480k
    }
522
480k
}
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
86
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
86
    } else {
515
86
        auto ss = LocalStateType::SharedStateType::create_shared();
516
86
        ss->id = operator_id();
517
86
        for (auto& dest : dests_id()) {
518
86
            ss->related_op_ids.insert(dest);
519
86
        }
520
86
        return ss;
521
86
    }
522
86
}
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
3
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
3
    } else {
515
3
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3
        ss->id = operator_id();
517
3
        for (auto& dest : dests_id()) {
518
3
            ss->related_op_ids.insert(dest);
519
3
        }
520
3
        return ss;
521
3
    }
522
3
}
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
511
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
511
    } else {
515
511
        auto ss = LocalStateType::SharedStateType::create_shared();
516
511
        ss->id = operator_id();
517
511
        for (auto& dest : dests_id()) {
518
511
            ss->related_op_ids.insert(dest);
519
511
        }
520
511
        return ss;
521
511
    }
522
511
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
48.3k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
48.3k
    } else {
515
48.3k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
48.3k
        ss->id = operator_id();
517
48.3k
        for (auto& dest : dests_id()) {
518
48.2k
            ss->related_op_ids.insert(dest);
519
48.2k
        }
520
48.3k
        return ss;
521
48.3k
    }
522
48.3k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.59k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
9.59k
    } else {
515
9.59k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.59k
        ss->id = operator_id();
517
9.59k
        for (auto& dest : dests_id()) {
518
9.59k
            ss->related_op_ids.insert(dest);
519
9.59k
        }
520
9.59k
        return ss;
521
9.59k
    }
522
9.59k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
5.17k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
5.17k
    } else {
515
5.17k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
5.17k
        ss->id = operator_id();
517
5.17k
        for (auto& dest : dests_id()) {
518
5.17k
            ss->related_op_ids.insert(dest);
519
5.17k
        }
520
5.17k
        return ss;
521
5.17k
    }
522
5.17k
}
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
156
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
156
    } else {
515
156
        auto ss = LocalStateType::SharedStateType::create_shared();
516
156
        ss->id = operator_id();
517
156
        for (auto& dest : dests_id()) {
518
156
            ss->related_op_ids.insert(dest);
519
156
        }
520
156
        return ss;
521
156
    }
522
156
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
4.00k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
4.00k
    } else {
515
4.00k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
4.00k
        ss->id = operator_id();
517
4.00k
        for (auto& dest : dests_id()) {
518
4.00k
            ss->related_op_ids.insert(dest);
519
4.00k
        }
520
4.00k
        return ss;
521
4.00k
    }
522
4.00k
}
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
48
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
48
    } else {
515
48
        auto ss = LocalStateType::SharedStateType::create_shared();
516
48
        ss->id = operator_id();
517
48
        for (auto& dest : dests_id()) {
518
48
            ss->related_op_ids.insert(dest);
519
48
        }
520
48
        return ss;
521
48
    }
522
48
}
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
704
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
704
    } else {
515
704
        auto ss = LocalStateType::SharedStateType::create_shared();
516
704
        ss->id = operator_id();
517
704
        for (auto& dest : dests_id()) {
518
704
            ss->related_op_ids.insert(dest);
519
704
        }
520
704
        return ss;
521
704
    }
522
704
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
1.68k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
1.68k
    } else {
515
1.68k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.68k
        ss->id = operator_id();
517
1.68k
        for (auto& dest : dests_id()) {
518
1.67k
            ss->related_op_ids.insert(dest);
519
1.67k
        }
520
1.68k
        return ss;
521
1.68k
    }
522
1.68k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
7.60k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
7.60k
    } else {
515
7.60k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
7.60k
        ss->id = operator_id();
517
7.60k
        for (auto& dest : dests_id()) {
518
7.60k
            ss->related_op_ids.insert(dest);
519
7.60k
        }
520
7.60k
        return ss;
521
7.60k
    }
522
7.60k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
124
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
124
    } else {
515
124
        auto ss = LocalStateType::SharedStateType::create_shared();
516
124
        ss->id = operator_id();
517
124
        for (auto& dest : dests_id()) {
518
124
            ss->related_op_ids.insert(dest);
519
124
        }
520
124
        return ss;
521
124
    }
522
124
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
266k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
266k
    } else {
515
266k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
266k
        ss->id = operator_id();
517
266k
        for (auto& dest : dests_id()) {
518
266k
            ss->related_op_ids.insert(dest);
519
266k
        }
520
266k
        return ss;
521
266k
    }
522
266k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
31
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
31
    } else {
515
31
        auto ss = LocalStateType::SharedStateType::create_shared();
516
31
        ss->id = operator_id();
517
31
        for (auto& dest : dests_id()) {
518
31
            ss->related_op_ids.insert(dest);
519
31
        }
520
31
        return ss;
521
31
    }
522
31
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
162k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
162k
    } else {
515
162k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
162k
        ss->id = operator_id();
517
162k
        for (auto& dest : dests_id()) {
518
162k
            ss->related_op_ids.insert(dest);
519
162k
        }
520
162k
        return ss;
521
162k
    }
522
162k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
146
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
146
    } else {
515
146
        auto ss = LocalStateType::SharedStateType::create_shared();
516
146
        ss->id = operator_id();
517
146
        for (auto& dest : dests_id()) {
518
146
            ss->related_op_ids.insert(dest);
519
146
        }
520
146
        return ss;
521
146
    }
522
146
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
746k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
746k
    } else {
515
746k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
746k
        ss->id = operator_id();
517
746k
        for (auto& dest : dests_id()) {
518
743k
            ss->related_op_ids.insert(dest);
519
743k
        }
520
746k
        return ss;
521
746k
    }
522
746k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
10.4k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
10.4k
    } else {
515
10.4k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
10.4k
        ss->id = operator_id();
517
10.4k
        for (auto& dest : dests_id()) {
518
10.4k
            ss->related_op_ids.insert(dest);
519
10.4k
        }
520
10.4k
        return ss;
521
10.4k
    }
522
10.4k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
390
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
390
    } else {
515
390
        auto ss = LocalStateType::SharedStateType::create_shared();
516
390
        ss->id = operator_id();
517
390
        for (auto& dest : dests_id()) {
518
390
            ss->related_op_ids.insert(dest);
519
390
        }
520
390
        return ss;
521
390
    }
522
390
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.77k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
2.77k
    } else {
515
2.77k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.77k
        ss->id = operator_id();
517
2.77k
        for (auto& dest : dests_id()) {
518
2.76k
            ss->related_op_ids.insert(dest);
519
2.76k
        }
520
2.77k
        return ss;
521
2.77k
    }
522
2.77k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.58k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
2.58k
    } else {
515
2.58k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.58k
        ss->id = operator_id();
517
2.58k
        for (auto& dest : dests_id()) {
518
2.58k
            ss->related_op_ids.insert(dest);
519
2.58k
        }
520
2.58k
        return ss;
521
2.58k
    }
522
2.58k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
568
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
568
    } else {
515
568
        auto ss = LocalStateType::SharedStateType::create_shared();
516
568
        ss->id = operator_id();
517
568
        for (auto& dest : dests_id()) {
518
564
            ss->related_op_ids.insert(dest);
519
564
        }
520
568
        return ss;
521
568
    }
522
568
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
105
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
105
    } else {
515
105
        auto ss = LocalStateType::SharedStateType::create_shared();
516
105
        ss->id = operator_id();
517
105
        for (auto& dest : dests_id()) {
518
105
            ss->related_op_ids.insert(dest);
519
105
        }
520
105
        return ss;
521
105
    }
522
105
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.75M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.75M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.75M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.75M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.75M
    return Status::OK();
530
2.75M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
71.8k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
71.8k
    auto local_state = LocalStateType::create_unique(state, this);
527
71.8k
    RETURN_IF_ERROR(local_state->init(state, info));
528
71.8k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
71.8k
    return Status::OK();
530
71.8k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
317k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
317k
    auto local_state = LocalStateType::create_unique(state, this);
527
317k
    RETURN_IF_ERROR(local_state->init(state, info));
528
317k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
317k
    return Status::OK();
530
317k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
160
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
160
    auto local_state = LocalStateType::create_unique(state, this);
527
160
    RETURN_IF_ERROR(local_state->init(state, info));
528
160
    state->emplace_local_state(operator_id(), std::move(local_state));
529
160
    return Status::OK();
530
160
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
37.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
37.9k
    auto local_state = LocalStateType::create_unique(state, this);
527
37.9k
    RETURN_IF_ERROR(local_state->init(state, info));
528
37.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
37.9k
    return Status::OK();
530
37.9k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.57k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.57k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.57k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.57k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.57k
    return Status::OK();
530
7.57k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.88k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.88k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.88k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.88k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.88k
    return Status::OK();
530
7.88k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
22
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
22
    auto local_state = LocalStateType::create_unique(state, this);
527
22
    RETURN_IF_ERROR(local_state->init(state, info));
528
22
    state->emplace_local_state(operator_id(), std::move(local_state));
529
22
    return Status::OK();
530
22
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
258k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
258k
    auto local_state = LocalStateType::create_unique(state, this);
527
258k
    RETURN_IF_ERROR(local_state->init(state, info));
528
258k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
258k
    return Status::OK();
530
258k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
161k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
161k
    auto local_state = LocalStateType::create_unique(state, this);
527
161k
    RETURN_IF_ERROR(local_state->init(state, info));
528
161k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
161k
    return Status::OK();
530
161k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
520
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
520
    auto local_state = LocalStateType::create_unique(state, this);
527
520
    RETURN_IF_ERROR(local_state->init(state, info));
528
520
    state->emplace_local_state(operator_id(), std::move(local_state));
529
520
    return Status::OK();
530
520
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
137
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
137
    auto local_state = LocalStateType::create_unique(state, this);
527
137
    RETURN_IF_ERROR(local_state->init(state, info));
528
137
    state->emplace_local_state(operator_id(), std::move(local_state));
529
137
    return Status::OK();
530
137
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
4.05k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
4.05k
    auto local_state = LocalStateType::create_unique(state, this);
527
4.05k
    RETURN_IF_ERROR(local_state->init(state, info));
528
4.05k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
4.05k
    return Status::OK();
530
4.05k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
430k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
430k
    auto local_state = LocalStateType::create_unique(state, this);
527
430k
    RETURN_IF_ERROR(local_state->init(state, info));
528
430k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
430k
    return Status::OK();
530
430k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.36k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.36k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.36k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.36k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.36k
    return Status::OK();
530
1.36k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.3k
    return Status::OK();
530
10.3k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
221
    auto local_state = LocalStateType::create_unique(state, this);
527
221
    RETURN_IF_ERROR(local_state->init(state, info));
528
221
    state->emplace_local_state(operator_id(), std::move(local_state));
529
221
    return Status::OK();
530
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.99k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.99k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.99k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.99k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.99k
    return Status::OK();
530
1.99k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
56.8k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.8k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.8k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.8k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.8k
    return Status::OK();
530
56.8k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.2k
    return Status::OK();
530
11.2k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
288
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
288
    auto local_state = LocalStateType::create_unique(state, this);
527
288
    RETURN_IF_ERROR(local_state->init(state, info));
528
288
    state->emplace_local_state(operator_id(), std::move(local_state));
529
288
    return Status::OK();
530
288
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.78k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.78k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.78k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.78k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.78k
    return Status::OK();
530
2.78k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.60k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.60k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.60k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.60k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.60k
    return Status::OK();
530
2.60k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
522
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
522
    auto local_state = LocalStateType::create_unique(state, this);
527
522
    RETURN_IF_ERROR(local_state->init(state, info));
528
522
    state->emplace_local_state(operator_id(), std::move(local_state));
529
522
    return Status::OK();
530
522
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.22k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.22k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.22k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.22k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.22k
    return Status::OK();
530
2.22k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
6.58k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
6.58k
    auto local_state = LocalStateType::create_unique(state, this);
527
6.58k
    RETURN_IF_ERROR(local_state->init(state, info));
528
6.58k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
6.58k
    return Status::OK();
530
6.58k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
831k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
831k
    auto local_state = LocalStateType::create_unique(state, this);
527
831k
    RETURN_IF_ERROR(local_state->init(state, info));
528
831k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
831k
    return Status::OK();
530
831k
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
14
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
14
    auto local_state = LocalStateType::create_unique(state, this);
527
14
    RETURN_IF_ERROR(local_state->init(state, info));
528
14
    state->emplace_local_state(operator_id(), std::move(local_state));
529
14
    return Status::OK();
530
14
}
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
164
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
164
    auto local_state = LocalStateType::create_unique(state, this);
527
164
    RETURN_IF_ERROR(local_state->init(state, info));
528
164
    state->emplace_local_state(operator_id(), std::move(local_state));
529
164
    return Status::OK();
530
164
}
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.18k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.18k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.18k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.18k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.18k
    return Status::OK();
530
2.18k
}
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.75k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.75k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.75k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.75k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.75k
    return Status::OK();
530
1.75k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.92k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.92k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.92k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.92k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.92k
    return Status::OK();
530
2.92k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
13.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
13.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
13.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
13.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
13.3k
    return Status::OK();
530
13.3k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
504k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
504k
    auto local_state = LocalStateType::create_unique(state, this);
527
504k
    RETURN_IF_ERROR(local_state->init(state, info));
528
504k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
504k
    return Status::OK();
530
504k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.21M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.75M
        : _num_rows_returned(0),
538
2.75M
          _rows_returned_counter(nullptr),
539
2.75M
          _parent(parent),
540
2.75M
          _state(state),
541
2.75M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.76M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.76M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.76M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.76M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.76M
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
2.76M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.76M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.76M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.76M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.76M
    if constexpr (!is_fake_shared) {
556
1.43M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
852k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
852k
                                    .first.get()
559
852k
                                    ->template cast<SharedStateArg>();
560
561
852k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
852k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
852k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
852k
        } else if (info.shared_state) {
565
512k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
0
                DCHECK(false);
567
0
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
512k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
512k
            _dependency = _shared_state->create_source_dependency(
572
512k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
512k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
512k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
512k
        } else {
576
66.3k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
5.87k
                DCHECK(false);
578
5.87k
            }
579
66.3k
        }
580
1.43M
    }
581
582
2.76M
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
2.76M
    _rows_returned_counter =
587
2.76M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.76M
    _blocks_returned_counter =
589
2.76M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.76M
    _output_block_bytes_counter =
591
2.76M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.76M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.76M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.76M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.76M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.76M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.76M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.76M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.76M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.76M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.76M
    _memory_used_counter =
602
2.76M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.76M
    _common_profile->add_info_string("IsColocate",
604
2.76M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.76M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.76M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.76M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.76M
    return Status::OK();
609
2.76M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
72.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
72.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
72.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
72.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
72.0k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
72.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
72.0k
    _operator_profile->add_child(_common_profile.get(), true);
553
72.0k
    _operator_profile->add_child(_custom_profile.get(), true);
554
72.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
72.0k
    if constexpr (!is_fake_shared) {
556
72.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
20.7k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
20.7k
                                    .first.get()
559
20.7k
                                    ->template cast<SharedStateArg>();
560
561
20.7k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
20.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
20.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
51.3k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
50.7k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
50.7k
            _dependency = _shared_state->create_source_dependency(
572
50.7k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
50.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
50.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
50.7k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
597
        }
580
72.0k
    }
581
582
72.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
72.0k
    _rows_returned_counter =
587
72.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
72.0k
    _blocks_returned_counter =
589
72.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
72.0k
    _output_block_bytes_counter =
591
72.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
72.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
72.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
72.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
72.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
72.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
72.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
72.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
72.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
72.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
72.0k
    _memory_used_counter =
602
72.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
72.0k
    _common_profile->add_info_string("IsColocate",
604
72.0k
                                     std::to_string(_parent->is_colocated_operator()));
605
72.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
72.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
72.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
72.0k
    return Status::OK();
609
72.0k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
1
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1
    _operator_profile->add_child(_common_profile.get(), true);
553
1
    _operator_profile->add_child(_custom_profile.get(), true);
554
1
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
1
    if constexpr (!is_fake_shared) {
556
1
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
1
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
1
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
1
            _dependency = _shared_state->create_source_dependency(
572
1
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
1
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
1
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
1
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
1
    }
581
582
1
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
1
    _rows_returned_counter =
587
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1
    _blocks_returned_counter =
589
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1
    _output_block_bytes_counter =
591
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1
    _memory_used_counter =
602
1
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1
    _common_profile->add_info_string("IsColocate",
604
1
                                     std::to_string(_parent->is_colocated_operator()));
605
1
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1
    return Status::OK();
609
1
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
266k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
266k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
266k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
266k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
266k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
266k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
266k
    _operator_profile->add_child(_common_profile.get(), true);
553
266k
    _operator_profile->add_child(_custom_profile.get(), true);
554
266k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
266k
    if constexpr (!is_fake_shared) {
556
266k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
266k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
261k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
261k
            _dependency = _shared_state->create_source_dependency(
572
261k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
261k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
261k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
261k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
4.98k
        }
580
266k
    }
581
582
266k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
266k
    _rows_returned_counter =
587
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
266k
    _blocks_returned_counter =
589
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
266k
    _output_block_bytes_counter =
591
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
266k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
266k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
266k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
266k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
266k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
266k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
266k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
266k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
266k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
266k
    _memory_used_counter =
602
266k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
266k
    _common_profile->add_info_string("IsColocate",
604
266k
                                     std::to_string(_parent->is_colocated_operator()));
605
266k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
266k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
266k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
266k
    return Status::OK();
609
266k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
22
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
22
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
22
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
22
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
22
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
22
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
22
    _operator_profile->add_child(_common_profile.get(), true);
553
22
    _operator_profile->add_child(_custom_profile.get(), true);
554
22
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
22
    if constexpr (!is_fake_shared) {
556
22
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
22
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
22
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
22
            _dependency = _shared_state->create_source_dependency(
572
22
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
22
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
22
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
22
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
22
    }
581
582
22
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
22
    _rows_returned_counter =
587
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
22
    _blocks_returned_counter =
589
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
22
    _output_block_bytes_counter =
591
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
22
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
22
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
22
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
22
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
22
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
22
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
22
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
22
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
22
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
22
    _memory_used_counter =
602
22
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
22
    _common_profile->add_info_string("IsColocate",
604
22
                                     std::to_string(_parent->is_colocated_operator()));
605
22
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
22
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
22
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
22
    return Status::OK();
609
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.3k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.3k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.3k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.3k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.3k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
10.3k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.3k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.3k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.3k
    if constexpr (!is_fake_shared) {
556
10.3k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
10.3k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
10.3k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.3k
            _dependency = _shared_state->create_source_dependency(
572
10.3k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.3k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
18
        }
580
10.3k
    }
581
582
10.3k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
10.3k
    _rows_returned_counter =
587
10.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.3k
    _blocks_returned_counter =
589
10.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.3k
    _output_block_bytes_counter =
591
10.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.3k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.3k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.3k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.3k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.3k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.3k
    _memory_used_counter =
602
10.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.3k
    _common_profile->add_info_string("IsColocate",
604
10.3k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.3k
    return Status::OK();
609
10.3k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
7.61k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
7.61k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
7.61k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
7.61k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
7.61k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
7.61k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
7.61k
    _operator_profile->add_child(_common_profile.get(), true);
553
7.61k
    _operator_profile->add_child(_custom_profile.get(), true);
554
7.61k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
7.61k
    if constexpr (!is_fake_shared) {
556
7.61k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
7.61k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
7.57k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
7.57k
            _dependency = _shared_state->create_source_dependency(
572
7.57k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
7.57k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
7.57k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
7.57k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
42
        }
580
7.61k
    }
581
582
7.61k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
7.61k
    _rows_returned_counter =
587
7.61k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
7.61k
    _blocks_returned_counter =
589
7.61k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
7.61k
    _output_block_bytes_counter =
591
7.61k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
7.61k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
7.61k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
7.61k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
7.61k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
7.61k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
7.61k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
7.61k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
7.61k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
7.61k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
7.61k
    _memory_used_counter =
602
7.61k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
7.61k
    _common_profile->add_info_string("IsColocate",
604
7.61k
                                     std::to_string(_parent->is_colocated_operator()));
605
7.61k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
7.61k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
7.61k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
7.61k
    return Status::OK();
609
7.61k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
161k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
161k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
161k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
161k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
161k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
161k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
161k
    _operator_profile->add_child(_common_profile.get(), true);
553
161k
    _operator_profile->add_child(_custom_profile.get(), true);
554
161k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
161k
    if constexpr (!is_fake_shared) {
556
161k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
161k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
160k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
160k
            _dependency = _shared_state->create_source_dependency(
572
160k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
160k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
160k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
160k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1.16k
        }
580
161k
    }
581
582
161k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
161k
    _rows_returned_counter =
587
161k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
161k
    _blocks_returned_counter =
589
161k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
161k
    _output_block_bytes_counter =
591
161k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
161k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
161k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
161k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
161k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
161k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
161k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
161k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
161k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
161k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
161k
    _memory_used_counter =
602
161k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
161k
    _common_profile->add_info_string("IsColocate",
604
161k
                                     std::to_string(_parent->is_colocated_operator()));
605
161k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
161k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
161k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
161k
    return Status::OK();
609
161k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
528
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
528
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
528
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
528
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
528
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
528
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
528
    _operator_profile->add_child(_common_profile.get(), true);
553
528
    _operator_profile->add_child(_custom_profile.get(), true);
554
528
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
528
    if constexpr (!is_fake_shared) {
556
528
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
515
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
515
                                    .first.get()
559
515
                                    ->template cast<SharedStateArg>();
560
561
515
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
515
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
515
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
515
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
0
            _dependency = _shared_state->create_source_dependency(
572
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
13
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
13
        }
580
528
    }
581
582
528
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
528
    _rows_returned_counter =
587
528
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
528
    _blocks_returned_counter =
589
528
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
528
    _output_block_bytes_counter =
591
528
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
528
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
528
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
528
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
528
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
528
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
528
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
528
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
528
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
528
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
528
    _memory_used_counter =
602
528
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
528
    _common_profile->add_info_string("IsColocate",
604
528
                                     std::to_string(_parent->is_colocated_operator()));
605
528
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
528
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
528
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
528
    return Status::OK();
609
528
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
137
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
137
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
137
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
137
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
137
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
137
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
137
    _operator_profile->add_child(_common_profile.get(), true);
553
137
    _operator_profile->add_child(_custom_profile.get(), true);
554
137
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
137
    if constexpr (!is_fake_shared) {
556
137
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
137
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
137
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
137
            _dependency = _shared_state->create_source_dependency(
572
137
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
137
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
137
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
137
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
137
    }
581
582
137
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
137
    _rows_returned_counter =
587
137
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
137
    _blocks_returned_counter =
589
137
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
137
    _output_block_bytes_counter =
591
137
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
137
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
137
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
137
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
137
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
137
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
137
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
137
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
137
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
137
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
137
    _memory_used_counter =
602
137
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
137
    _common_profile->add_info_string("IsColocate",
604
137
                                     std::to_string(_parent->is_colocated_operator()));
605
137
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
137
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
137
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
137
    return Status::OK();
609
137
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.33M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.33M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.33M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.33M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.33M
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
1.33M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.33M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.33M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.33M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
    if constexpr (!is_fake_shared) {
556
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
                                    .first.get()
559
                                    ->template cast<SharedStateArg>();
560
561
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
            _dependency = _shared_state->create_source_dependency(
572
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
        }
580
    }
581
582
1.33M
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
1.33M
    _rows_returned_counter =
587
1.33M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.33M
    _blocks_returned_counter =
589
1.33M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.33M
    _output_block_bytes_counter =
591
1.33M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.33M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.33M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.33M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.33M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.33M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.33M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.33M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.33M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.33M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.33M
    _memory_used_counter =
602
1.33M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.33M
    _common_profile->add_info_string("IsColocate",
604
1.33M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.33M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.33M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.33M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.33M
    return Status::OK();
609
1.33M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
56.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.9k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
56.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.9k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.9k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.9k
    if constexpr (!is_fake_shared) {
556
56.9k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
56.9k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
3.30k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
3.30k
            _dependency = _shared_state->create_source_dependency(
572
3.30k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
3.30k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
3.30k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
53.6k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
53.6k
        }
580
56.9k
    }
581
582
56.9k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
56.9k
    _rows_returned_counter =
587
56.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.9k
    _blocks_returned_counter =
589
56.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.9k
    _output_block_bytes_counter =
591
56.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.9k
    _memory_used_counter =
602
56.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.9k
    _common_profile->add_info_string("IsColocate",
604
56.9k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.9k
    return Status::OK();
609
56.9k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
26
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
26
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
26
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
26
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
26
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
26
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
26
    _operator_profile->add_child(_common_profile.get(), true);
553
26
    _operator_profile->add_child(_custom_profile.get(), true);
554
26
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
26
    if constexpr (!is_fake_shared) {
556
26
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
26
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
26
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
26
            _dependency = _shared_state->create_source_dependency(
572
26
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
26
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
26
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
26
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
26
    }
581
582
26
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
26
    _rows_returned_counter =
587
26
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
26
    _blocks_returned_counter =
589
26
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
26
    _output_block_bytes_counter =
591
26
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
26
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
26
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
26
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
26
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
26
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
26
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
26
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
26
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
26
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
26
    _memory_used_counter =
602
26
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
26
    _common_profile->add_info_string("IsColocate",
604
26
                                     std::to_string(_parent->is_colocated_operator()));
605
26
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
26
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
26
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
26
    return Status::OK();
609
26
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.2k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.2k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.2k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.2k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.2k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.2k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.2k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.2k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.2k
    if constexpr (!is_fake_shared) {
556
11.2k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.2k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.2k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.2k
            _dependency = _shared_state->create_source_dependency(
572
11.2k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.2k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.2k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.2k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
14
        }
580
11.2k
    }
581
582
11.2k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.2k
    _rows_returned_counter =
587
11.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.2k
    _blocks_returned_counter =
589
11.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.2k
    _output_block_bytes_counter =
591
11.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.2k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.2k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.2k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.2k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.2k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.2k
    _memory_used_counter =
602
11.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.2k
    _common_profile->add_info_string("IsColocate",
604
11.2k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.2k
    return Status::OK();
609
11.2k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
389
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
389
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
389
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
389
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
389
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
389
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
389
    _operator_profile->add_child(_common_profile.get(), true);
553
389
    _operator_profile->add_child(_custom_profile.get(), true);
554
389
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
389
    if constexpr (!is_fake_shared) {
556
389
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
389
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
388
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
388
            _dependency = _shared_state->create_source_dependency(
572
388
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
388
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
388
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
388
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1
        }
580
389
    }
581
582
389
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
389
    _rows_returned_counter =
587
389
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
389
    _blocks_returned_counter =
589
389
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
389
    _output_block_bytes_counter =
591
389
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
389
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
389
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
389
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
389
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
389
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
389
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
389
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
389
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
389
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
389
    _memory_used_counter =
602
389
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
389
    _common_profile->add_info_string("IsColocate",
604
389
                                     std::to_string(_parent->is_colocated_operator()));
605
389
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
389
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
389
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
389
    return Status::OK();
609
389
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.41k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.41k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.41k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.41k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.41k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
5.41k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.41k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.41k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.41k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.41k
    if constexpr (!is_fake_shared) {
556
5.41k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
5.41k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
5.38k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
5.38k
            _dependency = _shared_state->create_source_dependency(
572
5.38k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
5.38k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
5.38k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
5.38k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
30
        }
580
5.41k
    }
581
582
5.41k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
5.41k
    _rows_returned_counter =
587
5.41k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.41k
    _blocks_returned_counter =
589
5.41k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.41k
    _output_block_bytes_counter =
591
5.41k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.41k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.41k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.41k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.41k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.41k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.41k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.41k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.41k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.41k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.41k
    _memory_used_counter =
602
5.41k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.41k
    _common_profile->add_info_string("IsColocate",
604
5.41k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.41k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.41k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.41k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.41k
    return Status::OK();
609
5.41k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
836k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
836k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
836k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
836k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
836k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
836k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
836k
    _operator_profile->add_child(_common_profile.get(), true);
553
836k
    _operator_profile->add_child(_custom_profile.get(), true);
554
836k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
836k
    if constexpr (!is_fake_shared) {
556
836k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
830k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
830k
                                    .first.get()
559
830k
                                    ->template cast<SharedStateArg>();
560
561
830k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
830k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
830k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
830k
        } else if (info.shared_state) {
565
0
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
0
                DCHECK(false);
567
0
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
0
            _dependency = _shared_state->create_source_dependency(
572
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
5.87k
        } else {
576
5.87k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
5.87k
                DCHECK(false);
578
5.87k
            }
579
5.87k
        }
580
836k
    }
581
582
836k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
836k
    _rows_returned_counter =
587
836k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
836k
    _blocks_returned_counter =
589
836k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
836k
    _output_block_bytes_counter =
591
836k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
836k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
836k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
836k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
836k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
836k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
836k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
836k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
836k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
836k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
836k
    _memory_used_counter =
602
836k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
836k
    _common_profile->add_info_string("IsColocate",
604
836k
                                     std::to_string(_parent->is_colocated_operator()));
605
836k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
836k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
836k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
836k
    return Status::OK();
609
836k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
164
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
164
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
164
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
164
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
164
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
164
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
164
    _operator_profile->add_child(_common_profile.get(), true);
553
164
    _operator_profile->add_child(_custom_profile.get(), true);
554
164
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
164
    if constexpr (!is_fake_shared) {
556
164
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
164
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
164
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
164
            _dependency = _shared_state->create_source_dependency(
572
164
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
164
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
164
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
164
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
164
    }
581
582
164
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
164
    _rows_returned_counter =
587
164
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
164
    _blocks_returned_counter =
589
164
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
164
    _output_block_bytes_counter =
591
164
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
164
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
164
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
164
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
164
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
164
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
164
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
164
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
164
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
164
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
164
    _memory_used_counter =
602
164
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
164
    _common_profile->add_info_string("IsColocate",
604
164
                                     std::to_string(_parent->is_colocated_operator()));
605
164
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
164
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
164
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
164
    return Status::OK();
609
164
}
610
611
template <typename SharedStateArg>
612
2.76M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.76M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.76M
    _projections.resize(_parent->_projections.size());
615
3.30M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
540k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
540k
    }
618
5.62M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.86M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.86M
    }
621
2.76M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.77M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
14.4k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
108k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
94.5k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
94.5k
                    state, _intermediate_projections[i][j]));
627
94.5k
        }
628
14.4k
    }
629
2.76M
    return Status::OK();
630
2.76M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
72.1k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
72.1k
    _conjuncts.resize(_parent->_conjuncts.size());
614
72.1k
    _projections.resize(_parent->_projections.size());
615
73.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
1.02k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
1.02k
    }
618
370k
    for (size_t i = 0; i < _projections.size(); i++) {
619
297k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
297k
    }
621
72.1k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
75.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
3.08k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
41.4k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
38.3k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
38.3k
                    state, _intermediate_projections[i][j]));
627
38.3k
        }
628
3.08k
    }
629
72.1k
    return Status::OK();
630
72.1k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
3
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
3
    _conjuncts.resize(_parent->_conjuncts.size());
614
3
    _projections.resize(_parent->_projections.size());
615
3
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
3
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
3
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
3
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
3
    return Status::OK();
630
3
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
266k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
266k
    _conjuncts.resize(_parent->_conjuncts.size());
614
266k
    _projections.resize(_parent->_projections.size());
615
266k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
267k
    for (size_t i = 0; i < _projections.size(); i++) {
619
365
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
365
    }
621
266k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
266k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
266k
    return Status::OK();
630
266k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
22
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
22
    _conjuncts.resize(_parent->_conjuncts.size());
614
22
    _projections.resize(_parent->_projections.size());
615
22
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
22
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
22
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
22
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
22
    return Status::OK();
630
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.3k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.3k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.3k
    _projections.resize(_parent->_projections.size());
615
10.4k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
81
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
81
    }
618
68.5k
    for (size_t i = 0; i < _projections.size(); i++) {
619
58.1k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
58.1k
    }
621
10.3k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.5k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
149
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
957
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
808
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
808
                    state, _intermediate_projections[i][j]));
627
808
        }
628
149
    }
629
10.3k
    return Status::OK();
630
10.3k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
7.62k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
7.62k
    _conjuncts.resize(_parent->_conjuncts.size());
614
7.62k
    _projections.resize(_parent->_projections.size());
615
8.32k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
701
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
701
    }
618
21.0k
    for (size_t i = 0; i < _projections.size(); i++) {
619
13.4k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
13.4k
    }
621
7.62k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
7.70k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
84
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
636
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
552
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
552
                    state, _intermediate_projections[i][j]));
627
552
        }
628
84
    }
629
7.62k
    return Status::OK();
630
7.62k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
162k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
162k
    _conjuncts.resize(_parent->_conjuncts.size());
614
162k
    _projections.resize(_parent->_projections.size());
615
166k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.04k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.04k
    }
618
428k
    for (size_t i = 0; i < _projections.size(); i++) {
619
266k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
266k
    }
621
162k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
162k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
290
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
2.07k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.78k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.78k
                    state, _intermediate_projections[i][j]));
627
1.78k
        }
628
290
    }
629
162k
    return Status::OK();
630
162k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
529
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
529
    _conjuncts.resize(_parent->_conjuncts.size());
614
529
    _projections.resize(_parent->_projections.size());
615
541
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
12
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
12
    }
618
1.80k
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.27k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.27k
    }
621
529
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
529
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
529
    return Status::OK();
630
529
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
141
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
141
    _conjuncts.resize(_parent->_conjuncts.size());
614
141
    _projections.resize(_parent->_projections.size());
615
141
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
393
    for (size_t i = 0; i < _projections.size(); i++) {
619
252
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
252
    }
621
141
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
141
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
141
    return Status::OK();
630
141
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.33M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.33M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.33M
    _projections.resize(_parent->_projections.size());
615
1.86M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
531k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
531k
    }
618
3.46M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.13M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.13M
    }
621
1.33M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.34M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
10.8k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
63.8k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
52.9k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
52.9k
                    state, _intermediate_projections[i][j]));
627
52.9k
        }
628
10.8k
    }
629
1.33M
    return Status::OK();
630
1.33M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.9k
    _projections.resize(_parent->_projections.size());
615
56.9k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
153k
    for (size_t i = 0; i < _projections.size(); i++) {
619
96.3k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
96.3k
    }
621
56.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.9k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
56.9k
    return Status::OK();
630
56.9k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
25
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
25
    _conjuncts.resize(_parent->_conjuncts.size());
614
25
    _projections.resize(_parent->_projections.size());
615
25
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
25
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
25
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
25
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
25
    return Status::OK();
630
25
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.2k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.2k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.2k
    _projections.resize(_parent->_projections.size());
615
14.8k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.60k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.60k
    }
618
11.2k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
11.2k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.2k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
11.2k
    return Status::OK();
630
11.2k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
390
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
390
    _conjuncts.resize(_parent->_conjuncts.size());
614
390
    _projections.resize(_parent->_projections.size());
615
390
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
390
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
390
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
390
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
390
    return Status::OK();
630
390
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.41k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.41k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.41k
    _projections.resize(_parent->_projections.size());
615
5.41k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
5.58k
    for (size_t i = 0; i < _projections.size(); i++) {
619
168
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
168
    }
621
5.41k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.41k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
5.41k
    return Status::OK();
630
5.41k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
835k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
835k
    _conjuncts.resize(_parent->_conjuncts.size());
614
835k
    _projections.resize(_parent->_projections.size());
615
835k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
835k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
835k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
835k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
835k
    return Status::OK();
630
835k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
164
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
164
    _conjuncts.resize(_parent->_conjuncts.size());
614
164
    _projections.resize(_parent->_projections.size());
615
171
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
7
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
7
    }
618
483
    for (size_t i = 0; i < _projections.size(); i++) {
619
319
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
319
    }
621
164
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
167
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
3
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
11
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
8
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
8
                    state, _intermediate_projections[i][j]));
627
8
        }
628
3
    }
629
164
    return Status::OK();
630
164
}
631
632
template <typename SharedStateArg>
633
7.27k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
7.27k
    if (_terminated) {
635
2
        return Status::OK();
636
2
    }
637
7.27k
    _terminated = true;
638
7.27k
    return Status::OK();
639
7.27k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
265
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
265
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
265
    _terminated = true;
638
265
    return Status::OK();
639
265
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
69
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
69
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
69
    _terminated = true;
638
69
    return Status::OK();
639
69
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
55
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
55
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
55
    _terminated = true;
638
55
    return Status::OK();
639
55
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
139
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
139
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
139
    _terminated = true;
638
139
    return Status::OK();
639
139
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5.89k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.89k
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
5.89k
    _terminated = true;
638
5.89k
    return Status::OK();
639
5.89k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
5
    _terminated = true;
638
5
    return Status::OK();
639
5
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1
    _terminated = true;
638
1
    return Status::OK();
639
1
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
2
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
2
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
2
    _terminated = true;
638
2
    return Status::OK();
639
2
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
831
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
831
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
830
    _terminated = true;
638
830
    return Status::OK();
639
831
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
15
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
15
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
15
    _terminated = true;
638
15
    return Status::OK();
639
15
}
640
641
template <typename SharedStateArg>
642
3.06M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
3.06M
    if (_closed) {
644
299k
        return Status::OK();
645
299k
    }
646
2.76M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.42M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.42M
    }
649
2.76M
    _closed = true;
650
2.76M
    return Status::OK();
651
3.06M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
72.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
72.0k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
72.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
72.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
72.0k
    }
649
72.0k
    _closed = true;
650
72.0k
    return Status::OK();
651
72.0k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
4
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
4
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
4
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
4
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
4
    }
649
4
    _closed = true;
650
4
    return Status::OK();
651
4
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
528k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
528k
    if (_closed) {
644
265k
        return Status::OK();
645
265k
    }
646
263k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
263k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
263k
    }
649
263k
    _closed = true;
650
263k
    return Status::OK();
651
528k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
22
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
22
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
22
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
22
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
22
    }
649
22
    _closed = true;
650
22
    return Status::OK();
651
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.3k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.3k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.3k
    }
649
10.3k
    _closed = true;
650
10.3k
    return Status::OK();
651
10.3k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
15.4k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
15.4k
    if (_closed) {
644
7.81k
        return Status::OK();
645
7.81k
    }
646
7.60k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
7.60k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
7.60k
    }
649
7.60k
    _closed = true;
650
7.60k
    return Status::OK();
651
15.4k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
161k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
161k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
161k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
161k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
161k
    }
649
161k
    _closed = true;
650
161k
    return Status::OK();
651
161k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
529
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
529
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
529
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
529
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
529
    }
649
529
    _closed = true;
650
529
    return Status::OK();
651
529
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
136
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
136
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
136
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
136
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
136
    }
649
136
    _closed = true;
650
136
    return Status::OK();
651
136
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.35M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.35M
    if (_closed) {
644
19.8k
        return Status::OK();
645
19.8k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.33M
    _closed = true;
650
1.33M
    return Status::OK();
651
1.35M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.9k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.9k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.9k
    }
649
56.9k
    _closed = true;
650
56.9k
    return Status::OK();
651
56.9k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
28
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
28
    if (_closed) {
644
14
        return Status::OK();
645
14
    }
646
14
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
14
    }
649
14
    _closed = true;
650
14
    return Status::OK();
651
28
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
11.2k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.2k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.2k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.2k
    }
649
11.2k
    _closed = true;
650
11.2k
    return Status::OK();
651
11.2k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
574
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
574
    if (_closed) {
644
288
        return Status::OK();
645
288
    }
646
286
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
286
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
286
    }
649
286
    _closed = true;
650
286
    return Status::OK();
651
574
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
11.2k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.2k
    if (_closed) {
644
5.80k
        return Status::OK();
645
5.80k
    }
646
5.40k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.40k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.40k
    }
649
5.40k
    _closed = true;
650
5.40k
    return Status::OK();
651
11.2k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
838k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
838k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
838k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
838k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
838k
    }
649
838k
    _closed = true;
650
838k
    return Status::OK();
651
838k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
333
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
333
    if (_closed) {
644
178
        return Status::OK();
645
178
    }
646
155
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
155
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
155
    }
649
155
    _closed = true;
650
155
    return Status::OK();
651
333
}
652
653
template <typename SharedState>
654
2.21M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.21M
    _operator_profile =
657
2.21M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.21M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.21M
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
2.21M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.21M
    _operator_profile->add_child(_common_profile, true);
666
2.21M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.21M
    _operator_profile->set_metadata(_parent->node_id());
669
2.21M
    _wait_for_finish_dependency_timer =
670
2.21M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.21M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.21M
    if constexpr (!is_fake_shared) {
673
1.46M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.46M
            info.shared_state_map.end()) {
675
345k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
324k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
324k
            }
678
345k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
345k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
345k
                                                  ? 0
681
345k
                                                  : info.task_idx]
682
345k
                                  .get();
683
345k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.12M
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
1.12M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.12M
            _dependency = _shared_state->create_sink_dependency(
690
1.12M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.12M
        }
692
1.46M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.46M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.46M
    }
695
696
2.21M
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
2.21M
    _rows_input_counter =
701
2.21M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.21M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.21M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.21M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.21M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.21M
    _memory_used_counter =
707
2.21M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.21M
    _common_profile->add_info_string("IsColocate",
709
2.21M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.21M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.21M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.21M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.21M
    return Status::OK();
714
2.21M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
120k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
120k
    _operator_profile =
657
120k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
120k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
120k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
120k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
120k
    _operator_profile->add_child(_common_profile, true);
666
120k
    _operator_profile->add_child(_custom_profile, true);
667
668
120k
    _operator_profile->set_metadata(_parent->node_id());
669
120k
    _wait_for_finish_dependency_timer =
670
120k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
120k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
120k
    if constexpr (!is_fake_shared) {
673
120k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
120k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
20.8k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
20.8k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
20.8k
                                                  ? 0
681
20.8k
                                                  : info.task_idx]
682
20.8k
                                  .get();
683
20.8k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
99.1k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
99.1k
            _shared_state = info.shared_state->template cast<SharedState>();
689
99.1k
            _dependency = _shared_state->create_sink_dependency(
690
99.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
99.1k
        }
692
120k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
120k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
120k
    }
695
696
120k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
120k
    _rows_input_counter =
701
120k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
120k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
120k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
120k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
120k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
120k
    _memory_used_counter =
707
120k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
120k
    _common_profile->add_info_string("IsColocate",
709
120k
                                     std::to_string(_parent->is_colocated_operator()));
710
120k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
120k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
120k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
120k
    return Status::OK();
714
120k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
2
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2
    _operator_profile =
657
2
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
2
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2
    _operator_profile->add_child(_common_profile, true);
666
2
    _operator_profile->add_child(_custom_profile, true);
667
668
2
    _operator_profile->set_metadata(_parent->node_id());
669
2
    _wait_for_finish_dependency_timer =
670
2
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2
    if constexpr (!is_fake_shared) {
673
2
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
2
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
2
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
2
            _shared_state = info.shared_state->template cast<SharedState>();
689
2
            _dependency = _shared_state->create_sink_dependency(
690
2
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
2
        }
692
2
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
2
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
2
    }
695
696
2
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
2
    _rows_input_counter =
701
2
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2
    _memory_used_counter =
707
2
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2
    _common_profile->add_info_string("IsColocate",
709
2
                                     std::to_string(_parent->is_colocated_operator()));
710
2
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2
    return Status::OK();
714
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
266k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
266k
    _operator_profile =
657
266k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
266k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
266k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
266k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
266k
    _operator_profile->add_child(_common_profile, true);
666
266k
    _operator_profile->add_child(_custom_profile, true);
667
668
266k
    _operator_profile->set_metadata(_parent->node_id());
669
266k
    _wait_for_finish_dependency_timer =
670
266k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
266k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
266k
    if constexpr (!is_fake_shared) {
673
266k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
266k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
266k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
266k
            _shared_state = info.shared_state->template cast<SharedState>();
689
266k
            _dependency = _shared_state->create_sink_dependency(
690
266k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
266k
        }
692
266k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
266k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
266k
    }
695
696
266k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
266k
    _rows_input_counter =
701
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
266k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
266k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
266k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
266k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
266k
    _memory_used_counter =
707
266k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
266k
    _common_profile->add_info_string("IsColocate",
709
266k
                                     std::to_string(_parent->is_colocated_operator()));
710
266k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
266k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
266k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
266k
    return Status::OK();
714
266k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
29
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
29
    _operator_profile =
657
29
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
29
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
29
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
29
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
29
    _operator_profile->add_child(_common_profile, true);
666
29
    _operator_profile->add_child(_custom_profile, true);
667
668
29
    _operator_profile->set_metadata(_parent->node_id());
669
29
    _wait_for_finish_dependency_timer =
670
29
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
29
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
29
    if constexpr (!is_fake_shared) {
673
29
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
29
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
29
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
29
            _shared_state = info.shared_state->template cast<SharedState>();
689
29
            _dependency = _shared_state->create_sink_dependency(
690
29
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
29
        }
692
29
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
29
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
29
    }
695
696
29
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
29
    _rows_input_counter =
701
29
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
29
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
29
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
29
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
29
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
29
    _memory_used_counter =
707
29
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
29
    _common_profile->add_info_string("IsColocate",
709
29
                                     std::to_string(_parent->is_colocated_operator()));
710
29
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
29
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
29
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
29
    return Status::OK();
714
29
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
10.3k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
10.3k
    _operator_profile =
657
10.3k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
10.3k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
10.3k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
10.3k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
10.3k
    _operator_profile->add_child(_common_profile, true);
666
10.3k
    _operator_profile->add_child(_custom_profile, true);
667
668
10.3k
    _operator_profile->set_metadata(_parent->node_id());
669
10.3k
    _wait_for_finish_dependency_timer =
670
10.3k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
10.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
10.3k
    if constexpr (!is_fake_shared) {
673
10.3k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
10.3k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
10.3k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
10.3k
            _shared_state = info.shared_state->template cast<SharedState>();
689
10.3k
            _dependency = _shared_state->create_sink_dependency(
690
10.3k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
10.3k
        }
692
10.3k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
10.3k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
10.3k
    }
695
696
10.3k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
10.3k
    _rows_input_counter =
701
10.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
10.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
10.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
10.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
10.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
10.3k
    _memory_used_counter =
707
10.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
10.3k
    _common_profile->add_info_string("IsColocate",
709
10.3k
                                     std::to_string(_parent->is_colocated_operator()));
710
10.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
10.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
10.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
10.3k
    return Status::OK();
714
10.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.61k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.61k
    _operator_profile =
657
7.61k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.61k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.61k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
7.61k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.61k
    _operator_profile->add_child(_common_profile, true);
666
7.61k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.61k
    _operator_profile->set_metadata(_parent->node_id());
669
7.61k
    _wait_for_finish_dependency_timer =
670
7.61k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.61k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.61k
    if constexpr (!is_fake_shared) {
673
7.61k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.61k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
7.61k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.61k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.61k
            _dependency = _shared_state->create_sink_dependency(
690
7.61k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.61k
        }
692
7.61k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.61k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.61k
    }
695
696
7.61k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
7.61k
    _rows_input_counter =
701
7.61k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.61k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.61k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.61k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.61k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.61k
    _memory_used_counter =
707
7.61k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.61k
    _common_profile->add_info_string("IsColocate",
709
7.61k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.61k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.61k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.61k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.61k
    return Status::OK();
714
7.61k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
162k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
162k
    _operator_profile =
657
162k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
162k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
162k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
162k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
162k
    _operator_profile->add_child(_common_profile, true);
666
162k
    _operator_profile->add_child(_custom_profile, true);
667
668
162k
    _operator_profile->set_metadata(_parent->node_id());
669
162k
    _wait_for_finish_dependency_timer =
670
162k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
162k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
162k
    if constexpr (!is_fake_shared) {
673
162k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
162k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
162k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
162k
            _shared_state = info.shared_state->template cast<SharedState>();
689
162k
            _dependency = _shared_state->create_sink_dependency(
690
162k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
162k
        }
692
162k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
162k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
162k
    }
695
696
162k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
162k
    _rows_input_counter =
701
162k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
162k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
162k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
162k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
162k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
162k
    _memory_used_counter =
707
162k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
162k
    _common_profile->add_info_string("IsColocate",
709
162k
                                     std::to_string(_parent->is_colocated_operator()));
710
162k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
162k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
162k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
162k
    return Status::OK();
714
162k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
524
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
524
    _operator_profile =
657
524
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
524
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
524
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
524
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
524
    _operator_profile->add_child(_common_profile, true);
666
524
    _operator_profile->add_child(_custom_profile, true);
667
668
524
    _operator_profile->set_metadata(_parent->node_id());
669
524
    _wait_for_finish_dependency_timer =
670
524
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
524
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
524
    if constexpr (!is_fake_shared) {
673
524
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
524
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
522
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
522
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
522
                                                  ? 0
681
522
                                                  : info.task_idx]
682
522
                                  .get();
683
522
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
522
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
2
            _shared_state = info.shared_state->template cast<SharedState>();
689
2
            _dependency = _shared_state->create_sink_dependency(
690
2
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
2
        }
692
524
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
524
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
524
    }
695
696
524
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
524
    _rows_input_counter =
701
524
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
524
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
524
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
524
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
524
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
524
    _memory_used_counter =
707
524
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
524
    _common_profile->add_info_string("IsColocate",
709
524
                                     std::to_string(_parent->is_colocated_operator()));
710
524
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
524
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
524
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
524
    return Status::OK();
714
524
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
147
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
147
    _operator_profile =
657
147
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
147
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
147
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
147
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
147
    _operator_profile->add_child(_common_profile, true);
666
147
    _operator_profile->add_child(_custom_profile, true);
667
668
147
    _operator_profile->set_metadata(_parent->node_id());
669
147
    _wait_for_finish_dependency_timer =
670
147
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
147
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
147
    if constexpr (!is_fake_shared) {
673
147
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
147
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
147
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
147
            _shared_state = info.shared_state->template cast<SharedState>();
689
147
            _dependency = _shared_state->create_sink_dependency(
690
147
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
147
        }
692
147
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
147
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
147
    }
695
696
147
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
147
    _rows_input_counter =
701
147
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
147
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
147
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
147
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
147
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
147
    _memory_used_counter =
707
147
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
147
    _common_profile->add_info_string("IsColocate",
709
147
                                     std::to_string(_parent->is_colocated_operator()));
710
147
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
147
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
147
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
147
    return Status::OK();
714
147
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
749k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
749k
    _operator_profile =
657
749k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
749k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
749k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
749k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
749k
    _operator_profile->add_child(_common_profile, true);
666
749k
    _operator_profile->add_child(_custom_profile, true);
667
668
749k
    _operator_profile->set_metadata(_parent->node_id());
669
749k
    _wait_for_finish_dependency_timer =
670
749k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
749k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
    if constexpr (!is_fake_shared) {
673
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
                                                  ? 0
681
                                                  : info.task_idx]
682
                                  .get();
683
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
            _shared_state = info.shared_state->template cast<SharedState>();
689
            _dependency = _shared_state->create_sink_dependency(
690
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
        }
692
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
    }
695
696
749k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
749k
    _rows_input_counter =
701
749k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
749k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
749k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
749k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
749k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
749k
    _memory_used_counter =
707
749k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
749k
    _common_profile->add_info_string("IsColocate",
709
749k
                                     std::to_string(_parent->is_colocated_operator()));
710
749k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
749k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
749k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
749k
    return Status::OK();
714
749k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.30k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.30k
    _operator_profile =
657
7.30k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.30k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.30k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
7.30k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.30k
    _operator_profile->add_child(_common_profile, true);
666
7.30k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.30k
    _operator_profile->set_metadata(_parent->node_id());
669
7.30k
    _wait_for_finish_dependency_timer =
670
7.30k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.30k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.30k
    if constexpr (!is_fake_shared) {
673
7.30k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.30k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
7.30k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.30k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.30k
            _dependency = _shared_state->create_sink_dependency(
690
7.30k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.30k
        }
692
7.30k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.30k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.30k
    }
695
696
7.30k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
7.30k
    _rows_input_counter =
701
7.30k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.30k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.30k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.30k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.30k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.30k
    _memory_used_counter =
707
7.30k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.30k
    _common_profile->add_info_string("IsColocate",
709
7.30k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.30k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.30k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.30k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.30k
    return Status::OK();
714
7.30k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
390
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
390
    _operator_profile =
657
390
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
390
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
390
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
390
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
390
    _operator_profile->add_child(_common_profile, true);
666
390
    _operator_profile->add_child(_custom_profile, true);
667
668
390
    _operator_profile->set_metadata(_parent->node_id());
669
390
    _wait_for_finish_dependency_timer =
670
390
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
390
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
390
    if constexpr (!is_fake_shared) {
673
390
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
390
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
390
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
390
            _shared_state = info.shared_state->template cast<SharedState>();
689
390
            _dependency = _shared_state->create_sink_dependency(
690
390
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
390
        }
692
390
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
390
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
390
    }
695
696
390
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
390
    _rows_input_counter =
701
390
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
390
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
390
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
390
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
390
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
390
    _memory_used_counter =
707
390
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
390
    _common_profile->add_info_string("IsColocate",
709
390
                                     std::to_string(_parent->is_colocated_operator()));
710
390
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
390
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
390
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
390
    return Status::OK();
714
390
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
4.09k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
4.09k
    _operator_profile =
657
4.09k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
4.09k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
4.09k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
4.09k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
4.09k
    _operator_profile->add_child(_common_profile, true);
666
4.09k
    _operator_profile->add_child(_custom_profile, true);
667
668
4.09k
    _operator_profile->set_metadata(_parent->node_id());
669
4.09k
    _wait_for_finish_dependency_timer =
670
4.09k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
4.09k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
4.09k
    if constexpr (!is_fake_shared) {
673
4.09k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
4.09k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
4.09k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
4.09k
            _shared_state = info.shared_state->template cast<SharedState>();
689
4.09k
            _dependency = _shared_state->create_sink_dependency(
690
4.09k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
4.09k
        }
692
4.09k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
4.09k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
4.09k
    }
695
696
4.09k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
4.09k
    _rows_input_counter =
701
4.09k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
4.09k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
4.09k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
4.09k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
4.09k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
4.09k
    _memory_used_counter =
707
4.09k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
4.09k
    _common_profile->add_info_string("IsColocate",
709
4.09k
                                     std::to_string(_parent->is_colocated_operator()));
710
4.09k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
4.09k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
4.09k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
4.09k
    return Status::OK();
714
4.09k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
13.1k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
13.1k
    _operator_profile =
657
13.1k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
13.1k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
13.1k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
13.1k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
13.1k
    _operator_profile->add_child(_common_profile, true);
666
13.1k
    _operator_profile->add_child(_custom_profile, true);
667
668
13.1k
    _operator_profile->set_metadata(_parent->node_id());
669
13.1k
    _wait_for_finish_dependency_timer =
670
13.1k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
13.1k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
13.1k
    if constexpr (!is_fake_shared) {
673
13.1k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
13.1k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
13.1k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
13.1k
            _shared_state = info.shared_state->template cast<SharedState>();
689
13.1k
            _dependency = _shared_state->create_sink_dependency(
690
13.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
13.1k
        }
692
13.1k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
13.1k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
13.1k
    }
695
696
13.1k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
13.1k
    _rows_input_counter =
701
13.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
13.1k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
13.1k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
13.1k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
13.1k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
13.1k
    _memory_used_counter =
707
13.1k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
13.1k
    _common_profile->add_info_string("IsColocate",
709
13.1k
                                     std::to_string(_parent->is_colocated_operator()));
710
13.1k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
13.1k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
13.1k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
13.1k
    return Status::OK();
714
13.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
324k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
324k
    _operator_profile =
657
324k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
324k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
324k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
324k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
324k
    _operator_profile->add_child(_common_profile, true);
666
324k
    _operator_profile->add_child(_custom_profile, true);
667
668
324k
    _operator_profile->set_metadata(_parent->node_id());
669
324k
    _wait_for_finish_dependency_timer =
670
324k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
324k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
324k
    if constexpr (!is_fake_shared) {
673
324k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
324k
            info.shared_state_map.end()) {
675
324k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
324k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
324k
            }
678
324k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
324k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
324k
                                                  ? 0
681
324k
                                                  : info.task_idx]
682
324k
                                  .get();
683
324k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
18.4E
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
18.4E
            _shared_state = info.shared_state->template cast<SharedState>();
689
18.4E
            _dependency = _shared_state->create_sink_dependency(
690
18.4E
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
18.4E
        }
692
324k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
324k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
324k
    }
695
696
324k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
324k
    _rows_input_counter =
701
324k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
324k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
324k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
324k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
324k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
324k
    _memory_used_counter =
707
324k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
324k
    _common_profile->add_info_string("IsColocate",
709
324k
                                     std::to_string(_parent->is_colocated_operator()));
710
324k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
324k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
324k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
324k
    return Status::OK();
714
324k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
551k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
551k
    _operator_profile =
657
551k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
551k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
551k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
551k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
551k
    _operator_profile->add_child(_common_profile, true);
666
551k
    _operator_profile->add_child(_custom_profile, true);
667
668
551k
    _operator_profile->set_metadata(_parent->node_id());
669
551k
    _wait_for_finish_dependency_timer =
670
551k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
551k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
551k
    if constexpr (!is_fake_shared) {
673
551k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
551k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
551k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
551k
            _shared_state = info.shared_state->template cast<SharedState>();
689
551k
            _dependency = _shared_state->create_sink_dependency(
690
551k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
551k
        }
692
551k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
551k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
551k
    }
695
696
551k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
551k
    _rows_input_counter =
701
551k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
551k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
551k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
551k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
551k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
551k
    _memory_used_counter =
707
551k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
551k
    _common_profile->add_info_string("IsColocate",
709
551k
                                     std::to_string(_parent->is_colocated_operator()));
710
551k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
551k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
551k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
551k
    return Status::OK();
714
551k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
25
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
25
    _operator_profile =
657
25
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
25
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
25
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
25
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
25
    _operator_profile->add_child(_common_profile, true);
666
25
    _operator_profile->add_child(_custom_profile, true);
667
668
25
    _operator_profile->set_metadata(_parent->node_id());
669
25
    _wait_for_finish_dependency_timer =
670
25
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
25
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
25
    if constexpr (!is_fake_shared) {
673
25
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
25
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
25
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
25
            _shared_state = info.shared_state->template cast<SharedState>();
689
25
            _dependency = _shared_state->create_sink_dependency(
690
25
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
25
        }
692
25
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
25
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
25
    }
695
696
25
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
25
    _rows_input_counter =
701
25
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
25
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
25
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
25
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
25
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
25
    _memory_used_counter =
707
25
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
25
    _common_profile->add_info_string("IsColocate",
709
25
                                     std::to_string(_parent->is_colocated_operator()));
710
25
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
25
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
25
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
25
    return Status::OK();
714
25
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
328
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
328
    _operator_profile =
657
328
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
328
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
328
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
328
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
328
    _operator_profile->add_child(_common_profile, true);
666
328
    _operator_profile->add_child(_custom_profile, true);
667
668
328
    _operator_profile->set_metadata(_parent->node_id());
669
328
    _wait_for_finish_dependency_timer =
670
328
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
328
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
328
    if constexpr (!is_fake_shared) {
673
328
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
328
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
328
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
328
            _shared_state = info.shared_state->template cast<SharedState>();
689
328
            _dependency = _shared_state->create_sink_dependency(
690
328
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
328
        }
692
328
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
328
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
328
    }
695
696
328
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
328
    _rows_input_counter =
701
328
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
328
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
328
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
328
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
328
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
328
    _memory_used_counter =
707
328
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
328
    _common_profile->add_info_string("IsColocate",
709
328
                                     std::to_string(_parent->is_colocated_operator()));
710
328
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
328
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
328
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
328
    return Status::OK();
714
328
}
715
716
template <typename SharedState>
717
2.21M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.21M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.21M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.46M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.46M
    }
724
2.21M
    _closed = true;
725
2.21M
    return Status::OK();
726
2.21M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
119k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
119k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
119k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
119k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
119k
    }
724
119k
    _closed = true;
725
119k
    return Status::OK();
726
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
1
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
1
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
1
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1
    }
724
1
    _closed = true;
725
1
    return Status::OK();
726
1
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
265k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
265k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
265k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
265k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
265k
    }
724
265k
    _closed = true;
725
265k
    return Status::OK();
726
265k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
20
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
20
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
18
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
18
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
18
    }
724
18
    _closed = true;
725
18
    return Status::OK();
726
20
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
10.3k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
10.3k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
10.3k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
10.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
10.3k
    }
724
10.3k
    _closed = true;
725
10.3k
    return Status::OK();
726
10.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.58k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.58k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.58k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.58k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.58k
    }
724
7.58k
    _closed = true;
725
7.58k
    return Status::OK();
726
7.58k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
160k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
160k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
160k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
160k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
160k
    }
724
160k
    _closed = true;
725
160k
    return Status::OK();
726
160k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
525
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
525
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
525
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
525
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
525
    }
724
525
    _closed = true;
725
525
    return Status::OK();
726
525
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
136
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
136
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
136
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
136
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
136
    }
724
136
    _closed = true;
725
136
    return Status::OK();
726
136
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
748k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
748k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
    }
724
748k
    _closed = true;
725
748k
    return Status::OK();
726
748k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.29k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.29k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.29k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.29k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.29k
    }
724
7.29k
    _closed = true;
725
7.29k
    return Status::OK();
726
7.29k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
287
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
287
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
287
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
287
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
287
    }
724
287
    _closed = true;
725
287
    return Status::OK();
726
287
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
4.09k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
4.09k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
4.09k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
4.09k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
4.09k
    }
724
4.09k
    _closed = true;
725
4.09k
    return Status::OK();
726
4.09k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
13.2k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
13.2k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
13.2k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
13.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
13.2k
    }
724
13.2k
    _closed = true;
725
13.2k
    return Status::OK();
726
13.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
325k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
325k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
325k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
325k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
325k
    }
724
325k
    _closed = true;
725
325k
    return Status::OK();
726
325k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
554k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
554k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
554k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
554k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
554k
    }
724
554k
    _closed = true;
725
554k
    return Status::OK();
726
554k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
14
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
14
    }
724
14
    _closed = true;
725
14
    return Status::OK();
726
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
328
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
328
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
328
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
328
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
328
    }
724
328
    _closed = true;
725
328
    return Status::OK();
726
328
}
727
728
template <typename LocalStateType>
729
Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
730
14.8k
                                                          bool* eos) {
731
14.8k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.8k
    return pull(state, block, eos);
733
14.8k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
432
                                                          bool* eos) {
731
432
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
432
    return pull(state, block, eos);
733
432
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
14.4k
                                                          bool* eos) {
731
14.4k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.3k
    return pull(state, block, eos);
733
14.4k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
824k
                                                         bool* eos) {
738
824k
    auto& local_state = get_local_state(state);
739
824k
    if (need_more_input_data(state)) {
740
795k
        local_state._child_block->clear_column_data(
741
795k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
795k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
795k
                state, local_state._child_block.get(), &local_state._child_eos));
744
795k
        *eos = local_state._child_eos;
745
795k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
97.5k
            return Status::OK();
747
97.5k
        }
748
697k
        {
749
697k
            SCOPED_TIMER(local_state.exec_time_counter());
750
697k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
697k
        }
752
697k
    }
753
754
727k
    if (!need_more_input_data(state)) {
755
671k
        SCOPED_TIMER(local_state.exec_time_counter());
756
671k
        bool new_eos = false;
757
671k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
671k
        if (new_eos) {
759
584k
            *eos = true;
760
584k
        } else if (!need_more_input_data(state)) {
761
23.0k
            *eos = false;
762
23.0k
        }
763
671k
    }
764
727k
    return Status::OK();
765
727k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
152k
                                                         bool* eos) {
738
152k
    auto& local_state = get_local_state(state);
739
152k
    if (need_more_input_data(state)) {
740
137k
        local_state._child_block->clear_column_data(
741
137k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
137k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
137k
                state, local_state._child_block.get(), &local_state._child_eos));
744
137k
        *eos = local_state._child_eos;
745
137k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
42.3k
            return Status::OK();
747
42.3k
        }
748
94.7k
        {
749
94.7k
            SCOPED_TIMER(local_state.exec_time_counter());
750
94.7k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
94.7k
        }
752
94.7k
    }
753
754
110k
    if (!need_more_input_data(state)) {
755
110k
        SCOPED_TIMER(local_state.exec_time_counter());
756
110k
        bool new_eos = false;
757
110k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
110k
        if (new_eos) {
759
47.7k
            *eos = true;
760
62.8k
        } else if (!need_more_input_data(state)) {
761
8.67k
            *eos = false;
762
8.67k
        }
763
110k
    }
764
110k
    return Status::OK();
765
110k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.43k
                                                         bool* eos) {
738
4.43k
    auto& local_state = get_local_state(state);
739
4.43k
    if (need_more_input_data(state)) {
740
2.57k
        local_state._child_block->clear_column_data(
741
2.57k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.57k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.57k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.57k
        *eos = local_state._child_eos;
745
2.57k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
570
            return Status::OK();
747
570
        }
748
2.00k
        {
749
2.00k
            SCOPED_TIMER(local_state.exec_time_counter());
750
2.00k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
2.00k
        }
752
2.00k
    }
753
754
3.86k
    if (!need_more_input_data(state)) {
755
3.86k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.86k
        bool new_eos = false;
757
3.86k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.86k
        if (new_eos) {
759
1.36k
            *eos = true;
760
2.50k
        } else if (!need_more_input_data(state)) {
761
1.86k
            *eos = false;
762
1.86k
        }
763
3.86k
    }
764
3.86k
    return Status::OK();
765
3.86k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.99k
                                                         bool* eos) {
738
4.99k
    auto& local_state = get_local_state(state);
739
4.99k
    if (need_more_input_data(state)) {
740
4.99k
        local_state._child_block->clear_column_data(
741
4.99k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.99k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.99k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.99k
        *eos = local_state._child_eos;
745
4.99k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.73k
            return Status::OK();
747
1.73k
        }
748
3.25k
        {
749
3.25k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.25k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.25k
        }
752
3.25k
    }
753
754
3.25k
    if (!need_more_input_data(state)) {
755
3.25k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.25k
        bool new_eos = false;
757
3.25k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.25k
        if (new_eos) {
759
1.75k
            *eos = true;
760
1.75k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.25k
    }
764
3.25k
    return Status::OK();
765
3.25k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
42.5k
                                                         bool* eos) {
738
42.5k
    auto& local_state = get_local_state(state);
739
42.6k
    if (need_more_input_data(state)) {
740
42.6k
        local_state._child_block->clear_column_data(
741
42.6k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
42.6k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
42.6k
                state, local_state._child_block.get(), &local_state._child_eos));
744
42.6k
        *eos = local_state._child_eos;
745
42.6k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
7.70k
            return Status::OK();
747
7.70k
        }
748
34.9k
        {
749
34.9k
            SCOPED_TIMER(local_state.exec_time_counter());
750
34.9k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
34.9k
        }
752
34.9k
    }
753
754
34.8k
    if (!need_more_input_data(state)) {
755
13.3k
        SCOPED_TIMER(local_state.exec_time_counter());
756
13.3k
        bool new_eos = false;
757
13.3k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
13.3k
        if (new_eos) {
759
13.2k
            *eos = true;
760
13.2k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
13.3k
    }
764
34.8k
    return Status::OK();
765
34.8k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
582k
                                                         bool* eos) {
738
582k
    auto& local_state = get_local_state(state);
739
582k
    if (need_more_input_data(state)) {
740
582k
        local_state._child_block->clear_column_data(
741
582k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
582k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
582k
                state, local_state._child_block.get(), &local_state._child_eos));
744
582k
        *eos = local_state._child_eos;
745
582k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
41.9k
            return Status::OK();
747
41.9k
        }
748
540k
        {
749
540k
            SCOPED_TIMER(local_state.exec_time_counter());
750
540k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
540k
        }
752
540k
    }
753
754
540k
    if (!need_more_input_data(state)) {
755
506k
        SCOPED_TIMER(local_state.exec_time_counter());
756
506k
        bool new_eos = false;
757
506k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
506k
        if (new_eos) {
759
505k
            *eos = true;
760
505k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
506k
    }
764
540k
    return Status::OK();
765
540k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
31.1k
                                                         bool* eos) {
738
31.1k
    auto& local_state = get_local_state(state);
739
31.1k
    if (need_more_input_data(state)) {
740
19.0k
        local_state._child_block->clear_column_data(
741
19.0k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
19.0k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
19.0k
                state, local_state._child_block.get(), &local_state._child_eos));
744
19.0k
        *eos = local_state._child_eos;
745
19.0k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.84k
            return Status::OK();
747
2.84k
        }
748
16.1k
        {
749
16.1k
            SCOPED_TIMER(local_state.exec_time_counter());
750
16.1k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
16.1k
        }
752
16.1k
    }
753
754
28.3k
    if (!need_more_input_data(state)) {
755
27.6k
        SCOPED_TIMER(local_state.exec_time_counter());
756
27.6k
        bool new_eos = false;
757
27.6k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
27.6k
        if (new_eos) {
759
10.3k
            *eos = true;
760
17.2k
        } else if (!need_more_input_data(state)) {
761
12.1k
            *eos = false;
762
12.1k
        }
763
27.6k
    }
764
28.3k
    return Status::OK();
765
28.3k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
6.58k
                                                         bool* eos) {
738
6.58k
    auto& local_state = get_local_state(state);
739
6.58k
    if (need_more_input_data(state)) {
740
6.22k
        local_state._child_block->clear_column_data(
741
6.22k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
6.22k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
6.22k
                state, local_state._child_block.get(), &local_state._child_eos));
744
6.22k
        *eos = local_state._child_eos;
745
6.22k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
455
            return Status::OK();
747
455
        }
748
5.77k
        {
749
5.77k
            SCOPED_TIMER(local_state.exec_time_counter());
750
5.77k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
5.77k
        }
752
5.77k
    }
753
754
6.12k
    if (!need_more_input_data(state)) {
755
6.12k
        SCOPED_TIMER(local_state.exec_time_counter());
756
6.12k
        bool new_eos = false;
757
6.12k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
6.12k
        if (new_eos) {
759
3.99k
            *eos = true;
760
3.99k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
6.12k
    }
764
6.12k
    return Status::OK();
765
6.12k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
70.1k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
70.1k
    RETURN_IF_ERROR(Base::init(state, info));
771
70.1k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
70.1k
                                                         "AsyncWriterDependency", true);
773
70.1k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
70.1k
                             _finish_dependency));
775
776
70.1k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
70.1k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
70.1k
    return Status::OK();
779
70.1k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
511
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
511
    RETURN_IF_ERROR(Base::init(state, info));
771
511
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
511
                                                         "AsyncWriterDependency", true);
773
511
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
511
                             _finish_dependency));
775
776
511
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
511
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
511
    return Status::OK();
779
511
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
86
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
86
    RETURN_IF_ERROR(Base::init(state, info));
771
86
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
86
                                                         "AsyncWriterDependency", true);
773
86
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
86
                             _finish_dependency));
775
776
86
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
86
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
86
    return Status::OK();
779
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
48.2k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
48.2k
    RETURN_IF_ERROR(Base::init(state, info));
771
48.2k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
48.2k
                                                         "AsyncWriterDependency", true);
773
48.2k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
48.2k
                             _finish_dependency));
775
776
48.2k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
48.2k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
48.2k
    return Status::OK();
779
48.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.59k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.59k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.59k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.59k
                                                         "AsyncWriterDependency", true);
773
9.59k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.59k
                             _finish_dependency));
775
776
9.59k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.59k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.59k
    return Status::OK();
779
9.59k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
5.17k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.17k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.17k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.17k
                                                         "AsyncWriterDependency", true);
773
5.17k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.17k
                             _finish_dependency));
775
776
5.17k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.17k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.17k
    return Status::OK();
779
5.17k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
4.00k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
4.00k
    RETURN_IF_ERROR(Base::init(state, info));
771
4.00k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
4.00k
                                                         "AsyncWriterDependency", true);
773
4.00k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
4.00k
                             _finish_dependency));
775
776
4.00k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
4.00k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
4.00k
    return Status::OK();
779
4.00k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
48
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
48
    RETURN_IF_ERROR(Base::init(state, info));
771
48
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
48
                                                         "AsyncWriterDependency", true);
773
48
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
48
                             _finish_dependency));
775
776
48
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
48
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
48
    return Status::OK();
779
48
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
704
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
704
    RETURN_IF_ERROR(Base::init(state, info));
771
704
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
704
                                                         "AsyncWriterDependency", true);
773
704
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
704
                             _finish_dependency));
775
776
704
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
704
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
704
    return Status::OK();
779
704
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
1.67k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
1.67k
    RETURN_IF_ERROR(Base::init(state, info));
771
1.67k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
1.67k
                                                         "AsyncWriterDependency", true);
773
1.67k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
1.67k
                             _finish_dependency));
775
776
1.67k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
1.67k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
1.67k
    return Status::OK();
779
1.67k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
156
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
156
    RETURN_IF_ERROR(Base::init(state, info));
771
156
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
156
                                                         "AsyncWriterDependency", true);
773
156
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
156
                             _finish_dependency));
775
776
156
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
156
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
156
    return Status::OK();
779
156
}
780
781
template <typename Writer, typename Parent>
782
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
783
70.0k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
70.0k
    RETURN_IF_ERROR(Base::open(state));
785
70.0k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
613k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
543k
        RETURN_IF_ERROR(
788
543k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
543k
    }
790
70.0k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
70.0k
    return Status::OK();
792
70.0k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
511
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
511
    RETURN_IF_ERROR(Base::open(state));
785
511
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.76k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
2.25k
        RETURN_IF_ERROR(
788
2.25k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
2.25k
    }
790
511
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
511
    return Status::OK();
792
511
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
86
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
86
    RETURN_IF_ERROR(Base::open(state));
785
86
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
402
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
316
        RETURN_IF_ERROR(
788
316
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
316
    }
790
86
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
86
    return Status::OK();
792
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
48.4k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
48.4k
    RETURN_IF_ERROR(Base::open(state));
785
48.4k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
356k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
307k
        RETURN_IF_ERROR(
788
307k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
307k
    }
790
48.4k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
48.4k
    return Status::OK();
792
48.4k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.30k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.30k
    RETURN_IF_ERROR(Base::open(state));
785
9.30k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
57.5k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
48.2k
        RETURN_IF_ERROR(
788
48.2k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
48.2k
    }
790
9.30k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.30k
    return Status::OK();
792
9.30k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
5.16k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
5.16k
    RETURN_IF_ERROR(Base::open(state));
785
5.16k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
135k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
130k
        RETURN_IF_ERROR(
788
130k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
130k
    }
790
5.16k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
5.16k
    return Status::OK();
792
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
3.99k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.99k
    RETURN_IF_ERROR(Base::open(state));
785
3.99k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
44.8k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
40.8k
        RETURN_IF_ERROR(
788
40.8k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
40.8k
    }
790
3.99k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.99k
    return Status::OK();
792
3.99k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
48
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
48
    RETURN_IF_ERROR(Base::open(state));
785
48
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
208
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
160
        RETURN_IF_ERROR(
788
160
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
160
    }
790
48
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
48
    return Status::OK();
792
48
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
700
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
700
    RETURN_IF_ERROR(Base::open(state));
785
700
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.10k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
1.40k
        RETURN_IF_ERROR(
788
1.40k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
1.40k
    }
790
700
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
700
    return Status::OK();
792
700
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
1.67k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
1.67k
    RETURN_IF_ERROR(Base::open(state));
785
1.67k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
13.1k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
11.4k
        RETURN_IF_ERROR(
788
11.4k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
11.4k
    }
790
1.67k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
1.67k
    return Status::OK();
792
1.67k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
156
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
156
    RETURN_IF_ERROR(Base::open(state));
785
156
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
786
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
630
        RETURN_IF_ERROR(
788
630
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
630
    }
790
156
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
156
    return Status::OK();
792
156
}
793
794
template <typename Writer, typename Parent>
795
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
796
96.5k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
96.5k
    return _writer->sink(block, eos);
798
96.5k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.55k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.55k
    return _writer->sink(block, eos);
798
2.55k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
110
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
110
    return _writer->sink(block, eos);
798
110
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
65.7k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
65.7k
    return _writer->sink(block, eos);
798
65.7k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
11.0k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
11.0k
    return _writer->sink(block, eos);
798
11.0k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
7.54k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.54k
    return _writer->sink(block, eos);
798
7.54k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
6.36k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
6.36k
    return _writer->sink(block, eos);
798
6.36k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
60
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
60
    return _writer->sink(block, eos);
798
60
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
794
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
794
    return _writer->sink(block, eos);
798
794
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.10k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.10k
    return _writer->sink(block, eos);
798
2.10k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
310
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
310
    return _writer->sink(block, eos);
798
310
}
799
800
template <typename Writer, typename Parent>
801
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
802
70.3k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
70.3k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
70.3k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
70.3k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
70.5k
    if (_writer) {
810
70.5k
        Status st = _writer->get_writer_status();
811
70.5k
        if (exec_status.ok()) {
812
70.4k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
70.4k
                                                       : Status::Cancelled("force close"));
814
70.4k
        } else {
815
86
            _writer->force_close(exec_status);
816
86
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
70.5k
        RETURN_IF_ERROR(st);
821
70.5k
    }
822
70.3k
    return Base::close(state, exec_status);
823
70.3k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
499
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
499
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
499
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
499
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
499
    if (_writer) {
810
499
        Status st = _writer->get_writer_status();
811
499
        if (exec_status.ok()) {
812
499
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
499
                                                       : Status::Cancelled("force close"));
814
499
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
499
        RETURN_IF_ERROR(st);
821
499
    }
822
499
    return Base::close(state, exec_status);
823
499
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
86
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
86
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
86
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
86
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
86
    if (_writer) {
810
86
        Status st = _writer->get_writer_status();
811
86
        if (exec_status.ok()) {
812
86
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
86
                                                       : Status::Cancelled("force close"));
814
86
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
86
        RETURN_IF_ERROR(st);
821
86
    }
822
78
    return Base::close(state, exec_status);
823
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
48.5k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
48.5k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
48.5k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
48.5k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
48.5k
    if (_writer) {
810
48.5k
        Status st = _writer->get_writer_status();
811
48.5k
        if (exec_status.ok()) {
812
48.5k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
48.5k
                                                       : Status::Cancelled("force close"));
814
48.5k
        } else {
815
34
            _writer->force_close(exec_status);
816
34
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
48.5k
        RETURN_IF_ERROR(st);
821
48.5k
    }
822
48.4k
    return Base::close(state, exec_status);
823
48.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.52k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.52k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.52k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.52k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
9.58k
    if (_writer) {
810
9.58k
        Status st = _writer->get_writer_status();
811
9.58k
        if (exec_status.ok()) {
812
9.53k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.53k
                                                       : Status::Cancelled("force close"));
814
9.53k
        } else {
815
52
            _writer->force_close(exec_status);
816
52
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
9.58k
        RETURN_IF_ERROR(st);
821
9.58k
    }
822
9.52k
    return Base::close(state, exec_status);
823
9.52k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.17k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.17k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.17k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.17k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
5.17k
    if (_writer) {
810
5.17k
        Status st = _writer->get_writer_status();
811
5.17k
        if (exec_status.ok()) {
812
5.17k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
5.17k
                                                       : Status::Cancelled("force close"));
814
5.17k
        } else {
815
2
            _writer->force_close(exec_status);
816
2
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
5.17k
        RETURN_IF_ERROR(st);
821
5.17k
    }
822
5.17k
    return Base::close(state, exec_status);
823
5.17k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.98k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.98k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.98k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.98k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
4.00k
    if (_writer) {
810
4.00k
        Status st = _writer->get_writer_status();
811
4.00k
        if (exec_status.ok()) {
812
4.00k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
4.00k
                                                       : Status::Cancelled("force close"));
814
18.4E
        } else {
815
18.4E
            _writer->force_close(exec_status);
816
18.4E
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
4.00k
        RETURN_IF_ERROR(st);
821
4.00k
    }
822
3.98k
    return Base::close(state, exec_status);
823
3.98k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
48
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
48
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
48
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
48
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
48
    if (_writer) {
810
48
        Status st = _writer->get_writer_status();
811
48
        if (exec_status.ok()) {
812
48
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
48
                                                       : Status::Cancelled("force close"));
814
48
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
48
        RETURN_IF_ERROR(st);
821
48
    }
822
48
    return Base::close(state, exec_status);
823
48
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
704
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
704
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
704
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
704
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
704
    if (_writer) {
810
704
        Status st = _writer->get_writer_status();
811
704
        if (exec_status.ok()) {
812
704
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
704
                                                       : Status::Cancelled("force close"));
814
704
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
704
        RETURN_IF_ERROR(st);
821
704
    }
822
704
    return Base::close(state, exec_status);
823
704
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
1.68k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
1.68k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
1.68k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
1.68k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
1.68k
    if (_writer) {
810
1.68k
        Status st = _writer->get_writer_status();
811
1.68k
        if (exec_status.ok()) {
812
1.68k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
1.68k
                                                       : Status::Cancelled("force close"));
814
1.68k
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
1.68k
        RETURN_IF_ERROR(st);
821
1.68k
    }
822
1.68k
    return Base::close(state, exec_status);
823
1.68k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
156
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
156
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
156
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
156
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
156
    if (_writer) {
810
156
        Status st = _writer->get_writer_status();
811
156
        if (exec_status.ok()) {
812
156
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
156
                                                       : Status::Cancelled("force close"));
814
156
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
156
        RETURN_IF_ERROR(st);
821
156
    }
822
156
    return Base::close(state, exec_status);
823
156
}
824
825
#define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>;
826
DECLARE_OPERATOR(HashJoinBuildSinkLocalState)
827
DECLARE_OPERATOR(ResultSinkLocalState)
828
DECLARE_OPERATOR(JdbcTableSinkLocalState)
829
DECLARE_OPERATOR(MemoryScratchSinkLocalState)
830
DECLARE_OPERATOR(ResultFileSinkLocalState)
831
DECLARE_OPERATOR(OlapTableSinkLocalState)
832
DECLARE_OPERATOR(OlapTableSinkV2LocalState)
833
DECLARE_OPERATOR(HiveTableSinkLocalState)
834
DECLARE_OPERATOR(TVFTableSinkLocalState)
835
DECLARE_OPERATOR(IcebergTableSinkLocalState)
836
DECLARE_OPERATOR(SpillIcebergTableSinkLocalState)
837
DECLARE_OPERATOR(IcebergDeleteSinkLocalState)
838
DECLARE_OPERATOR(IcebergMergeSinkLocalState)
839
DECLARE_OPERATOR(MCTableSinkLocalState)
840
DECLARE_OPERATOR(AnalyticSinkLocalState)
841
DECLARE_OPERATOR(BlackholeSinkLocalState)
842
DECLARE_OPERATOR(SortSinkLocalState)
843
DECLARE_OPERATOR(SpillSortSinkLocalState)
844
DECLARE_OPERATOR(LocalExchangeSinkLocalState)
845
DECLARE_OPERATOR(AggSinkLocalState)
846
DECLARE_OPERATOR(BucketedAggSinkLocalState)
847
DECLARE_OPERATOR(PartitionedAggSinkLocalState)
848
DECLARE_OPERATOR(ExchangeSinkLocalState)
849
DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState)
850
DECLARE_OPERATOR(UnionSinkLocalState)
851
DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState)
852
DECLARE_OPERATOR(PartitionSortSinkLocalState)
853
DECLARE_OPERATOR(SetProbeSinkLocalState<true>)
854
DECLARE_OPERATOR(SetProbeSinkLocalState<false>)
855
DECLARE_OPERATOR(SetSinkLocalState<true>)
856
DECLARE_OPERATOR(SetSinkLocalState<false>)
857
DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState)
858
DECLARE_OPERATOR(GroupCommitBlockSinkLocalState)
859
DECLARE_OPERATOR(CacheSinkLocalState)
860
DECLARE_OPERATOR(DictSinkLocalState)
861
DECLARE_OPERATOR(RecCTESinkLocalState)
862
DECLARE_OPERATOR(RecCTEAnchorSinkLocalState)
863
864
#undef DECLARE_OPERATOR
865
866
#define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>;
867
DECLARE_OPERATOR(HashJoinProbeLocalState)
868
DECLARE_OPERATOR(OlapScanLocalState)
869
DECLARE_OPERATOR(GroupCommitLocalState)
870
DECLARE_OPERATOR(JDBCScanLocalState)
871
DECLARE_OPERATOR(FileScanLocalState)
872
DECLARE_OPERATOR(AnalyticLocalState)
873
DECLARE_OPERATOR(SortLocalState)
874
DECLARE_OPERATOR(SpillSortLocalState)
875
DECLARE_OPERATOR(LocalMergeSortLocalState)
876
DECLARE_OPERATOR(AggLocalState)
877
DECLARE_OPERATOR(BucketedAggLocalState)
878
DECLARE_OPERATOR(PartitionedAggLocalState)
879
DECLARE_OPERATOR(TableFunctionLocalState)
880
DECLARE_OPERATOR(ExchangeLocalState)
881
DECLARE_OPERATOR(RepeatLocalState)
882
DECLARE_OPERATOR(NestedLoopJoinProbeLocalState)
883
DECLARE_OPERATOR(AssertNumRowsLocalState)
884
DECLARE_OPERATOR(EmptySetLocalState)
885
DECLARE_OPERATOR(UnionSourceLocalState)
886
DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState)
887
DECLARE_OPERATOR(PartitionSortSourceLocalState)
888
DECLARE_OPERATOR(SetSourceLocalState<true>)
889
DECLARE_OPERATOR(SetSourceLocalState<false>)
890
DECLARE_OPERATOR(DataGenLocalState)
891
DECLARE_OPERATOR(SchemaScanLocalState)
892
DECLARE_OPERATOR(MetaScanLocalState)
893
DECLARE_OPERATOR(LocalExchangeSourceLocalState)
894
DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState)
895
DECLARE_OPERATOR(CacheSourceLocalState)
896
DECLARE_OPERATOR(RecCTESourceLocalState)
897
DECLARE_OPERATOR(RecCTEScanLocalState)
898
899
#ifdef BE_TEST
900
DECLARE_OPERATOR(MockLocalState)
901
DECLARE_OPERATOR(MockScanLocalState)
902
#endif
903
#undef DECLARE_OPERATOR
904
905
template class StreamingOperatorX<AssertNumRowsLocalState>;
906
template class StreamingOperatorX<SelectLocalState>;
907
908
template class StatefulOperatorX<HashJoinProbeLocalState>;
909
template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>;
910
template class StatefulOperatorX<RepeatLocalState>;
911
template class StatefulOperatorX<MaterializationLocalState>;
912
template class StatefulOperatorX<StreamingAggLocalState>;
913
template class StatefulOperatorX<DistinctStreamingAggLocalState>;
914
template class StatefulOperatorX<NestedLoopJoinProbeLocalState>;
915
template class StatefulOperatorX<TableFunctionLocalState>;
916
917
template class PipelineXSinkLocalState<HashJoinSharedState>;
918
template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>;
919
template class PipelineXSinkLocalState<SortSharedState>;
920
template class PipelineXSinkLocalState<SpillSortSharedState>;
921
template class PipelineXSinkLocalState<NestedLoopJoinSharedState>;
922
template class PipelineXSinkLocalState<AnalyticSharedState>;
923
template class PipelineXSinkLocalState<AggSharedState>;
924
template class PipelineXSinkLocalState<BucketedAggSharedState>;
925
template class PipelineXSinkLocalState<PartitionedAggSharedState>;
926
template class PipelineXSinkLocalState<FakeSharedState>;
927
template class PipelineXSinkLocalState<UnionSharedState>;
928
template class PipelineXSinkLocalState<PartitionSortNodeSharedState>;
929
template class PipelineXSinkLocalState<MultiCastSharedState>;
930
template class PipelineXSinkLocalState<SetSharedState>;
931
template class PipelineXSinkLocalState<LocalExchangeSharedState>;
932
template class PipelineXSinkLocalState<BasicSharedState>;
933
template class PipelineXSinkLocalState<DataQueueSharedState>;
934
template class PipelineXSinkLocalState<RecCTESharedState>;
935
936
template class PipelineXLocalState<HashJoinSharedState>;
937
template class PipelineXLocalState<PartitionedHashJoinSharedState>;
938
template class PipelineXLocalState<SortSharedState>;
939
template class PipelineXLocalState<SpillSortSharedState>;
940
template class PipelineXLocalState<NestedLoopJoinSharedState>;
941
template class PipelineXLocalState<AnalyticSharedState>;
942
template class PipelineXLocalState<AggSharedState>;
943
template class PipelineXLocalState<BucketedAggSharedState>;
944
template class PipelineXLocalState<PartitionedAggSharedState>;
945
template class PipelineXLocalState<FakeSharedState>;
946
template class PipelineXLocalState<UnionSharedState>;
947
template class PipelineXLocalState<DataQueueSharedState>;
948
template class PipelineXLocalState<MultiCastSharedState>;
949
template class PipelineXLocalState<PartitionSortNodeSharedState>;
950
template class PipelineXLocalState<SetSharedState>;
951
template class PipelineXLocalState<LocalExchangeSharedState>;
952
template class PipelineXLocalState<BasicSharedState>;
953
template class PipelineXLocalState<RecCTESharedState>;
954
955
template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>;
956
template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>;
957
template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>;
958
template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>;
959
template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>;
960
template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>;
961
template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>;
962
template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>;
963
template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>;
964
template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>;
965
template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>;
966
967
#ifdef BE_TEST
968
template class OperatorX<DummyOperatorLocalState>;
969
template class DataSinkOperatorX<DummySinkLocalState>;
970
#endif
971
972
} // namespace doris