Coverage Report

Created: 2026-07-24 17:30

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.27M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.27M
    if (_parent->nereids_id() == -1) {
122
1.22M
        return fmt::format("(id={})", _parent->node_id());
123
1.22M
    } else {
124
1.05M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.05M
    }
126
2.27M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
72.8k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
72.8k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
72.8k
    } else {
124
72.8k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
72.8k
    }
126
72.8k
}
_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
260k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
260k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
260k
    } else {
124
260k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
260k
    }
126
260k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
21
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
21
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
21
    } else {
124
21
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
21
    }
126
21
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
10.2k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.2k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
10.2k
    } else {
124
10.2k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
10.2k
    }
126
10.2k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
7.75k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
7.75k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
7.74k
    } else {
124
7.74k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
7.74k
    }
126
7.75k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
160k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
160k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
159k
    } else {
124
159k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
159k
    }
126
160k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
678
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
678
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
678
    } else {
124
678
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
678
    }
126
678
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
150
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
150
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
150
    } else {
124
150
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
150
    }
126
150
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
863k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
863k
    if (_parent->nereids_id() == -1) {
122
387k
        return fmt::format("(id={})", _parent->node_id());
123
475k
    } else {
124
475k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
475k
    }
126
863k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
56.1k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
56.1k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
56.1k
    } else {
124
56.1k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
56.1k
    }
126
56.1k
}
_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
10.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.9k
    if (_parent->nereids_id() == -1) {
122
10.9k
        return fmt::format("(id={})", _parent->node_id());
123
18.4E
    } else {
124
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
18.4E
    }
126
10.9k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
392
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
392
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
290
    } else {
124
290
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
290
    }
126
392
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
4.86k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
4.86k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
4.84k
    } else {
124
4.84k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
4.84k
    }
126
4.86k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
825k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
825k
    if (_parent->nereids_id() == -1) {
122
824k
        return fmt::format("(id={})", _parent->node_id());
123
824k
    } else {
124
1.12k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.12k
    }
126
825k
}
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.44M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.44M
    if (_parent->nereids_id() == -1) {
131
874k
        return fmt::format("(id={})", _parent->node_id());
132
874k
    } else {
133
571k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
571k
    }
135
1.44M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
121k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
121k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
121k
    } else {
133
121k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
121k
    }
135
121k
}
_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
263k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
263k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
263k
    } else {
133
263k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
263k
    }
135
263k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
28
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
28
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
28
    } else {
133
28
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
28
    }
135
28
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
10.2k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
10.2k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
10.2k
    } else {
133
10.2k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
10.2k
    }
135
10.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.82k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.82k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
7.81k
    } else {
133
7.81k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.81k
    }
135
7.82k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
160k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
160k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
160k
    } else {
133
160k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
160k
    }
135
160k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
680
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
680
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
680
    } else {
133
680
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
680
    }
135
680
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
160
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
160
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
160
    } else {
133
160
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
160
    }
135
160
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
98
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
98
    if (_parent->nereids_id() == -1) {
131
98
        return fmt::format("(id={})", _parent->node_id());
132
98
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
98
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
5.83k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
5.83k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
5.83k
    } else {
133
5.83k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
5.83k
    }
135
5.83k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
393
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
393
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
291
    } else {
133
291
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
291
    }
135
393
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.5k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.5k
    if (_parent->nereids_id() == -1) {
131
12.5k
        return fmt::format("(id={})", _parent->node_id());
132
12.5k
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
12.5k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
343k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
343k
    if (_parent->nereids_id() == -1) {
131
343k
        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
343k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
518k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
518k
    if (_parent->nereids_id() == -1) {
131
518k
        return fmt::format("(id={})", _parent->node_id());
132
518k
    } else {
133
494
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
494
    }
135
518k
}
_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.5k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
30.5k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
30.5k
    _terminated = true;
143
30.5k
    return Status::OK();
144
30.5k
}
_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.18k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.18k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1.18k
    _terminated = true;
143
1.18k
    return Status::OK();
144
1.18k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1
    _terminated = true;
143
1
    return Status::OK();
144
1
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.93k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.93k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.93k
    _terminated = true;
143
2.93k
    return Status::OK();
144
2.93k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
8
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
8
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
8
    _terminated = true;
143
8
    return Status::OK();
144
8
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.20k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.20k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
1.20k
    _terminated = true;
143
1.20k
    return Status::OK();
144
1.20k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
44
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
44
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
44
    _terminated = true;
143
44
    return Status::OK();
144
44
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
4
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
4
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
4
    _terminated = true;
143
4
    return Status::OK();
144
4
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
794
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
794
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
794
    _terminated = true;
143
794
    return Status::OK();
144
794
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
4
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
4
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
4
    _terminated = true;
143
4
    return Status::OK();
144
4
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
248
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
248
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
248
    _terminated = true;
143
248
    return Status::OK();
144
248
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
148
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
148
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
148
    _terminated = true;
143
148
    return Status::OK();
144
148
}
145
146
442k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
442k
    return _child && _child->is_serial_operator() && !is_source()
148
442k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
442k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
442k
}
151
152
40.9k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
40.9k
    if (!_child) {
154
35.8k
        return false;
155
35.8k
    }
156
5.02k
    if (_child->is_serial_operator()) {
157
170
        return true;
158
170
    }
159
4.85k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.85k
    return child_distribution.need_local_exchange() &&
161
4.85k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.02k
}
163
164
82.6k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.6k
    return _child->row_desc();
166
82.6k
}
167
168
template <typename SharedStateArg>
169
20.4k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.4k
    fmt::memory_buffer debug_string_buffer;
171
20.4k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.4k
    return fmt::to_string(debug_string_buffer);
173
20.4k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
84
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
84
    fmt::memory_buffer debug_string_buffer;
171
84
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
84
    return fmt::to_string(debug_string_buffer);
173
84
}
_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
28
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
28
    fmt::memory_buffer debug_string_buffer;
171
28
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
28
    return fmt::to_string(debug_string_buffer);
173
28
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_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
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
30
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
30
    fmt::memory_buffer debug_string_buffer;
171
30
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
30
    return fmt::to_string(debug_string_buffer);
173
30
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
20.1k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.1k
    fmt::memory_buffer debug_string_buffer;
171
20.1k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.1k
    return fmt::to_string(debug_string_buffer);
173
20.1k
}
_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
112
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
112
    fmt::memory_buffer debug_string_buffer;
171
112
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
112
    return fmt::to_string(debug_string_buffer);
173
112
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
20.2k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.2k
    fmt::memory_buffer debug_string_buffer;
178
20.2k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.2k
    return fmt::to_string(debug_string_buffer);
180
20.2k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
14
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
14
    fmt::memory_buffer debug_string_buffer;
178
14
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
14
    return fmt::to_string(debug_string_buffer);
180
14
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
28
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
28
    fmt::memory_buffer debug_string_buffer;
178
28
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
28
    return fmt::to_string(debug_string_buffer);
180
28
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
14
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
14
    fmt::memory_buffer debug_string_buffer;
178
14
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
14
    return fmt::to_string(debug_string_buffer);
180
14
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
30
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
30
    fmt::memory_buffer debug_string_buffer;
178
30
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
30
    return fmt::to_string(debug_string_buffer);
180
30
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
114
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
114
    fmt::memory_buffer debug_string_buffer;
178
114
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
114
    return fmt::to_string(debug_string_buffer);
180
114
}
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
45
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
45
    fmt::memory_buffer debug_string_buffer;
178
45
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
45
    return fmt::to_string(debug_string_buffer);
180
45
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
20.0k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.0k
    fmt::memory_buffer debug_string_buffer;
178
20.0k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.0k
    return fmt::to_string(debug_string_buffer);
180
20.0k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
20.4k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
20.4k
    fmt::memory_buffer debug_string_buffer;
184
20.4k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
20.4k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
20.4k
                   _is_serial_operator);
187
20.4k
    return fmt::to_string(debug_string_buffer);
188
20.4k
}
189
190
20.4k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
20.4k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
20.4k
}
193
194
858k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
858k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
858k
    _nereids_id = tnode.nereids_id;
197
858k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.11k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.11k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.11k
            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.11k
    }
210
858k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
858k
    _op_name = substr + "_OPERATOR";
212
213
858k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
858k
    } else if (tnode.__isset.conjuncts) {
216
477k
        for (const auto& conjunct : tnode.conjuncts) {
217
477k
            VExprContextSPtr context;
218
477k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
477k
            _conjuncts.emplace_back(context);
220
477k
        }
221
155k
    }
222
223
    // create the projections expr
224
858k
    if (tnode.__isset.projections) {
225
331k
        DCHECK(tnode.__isset.output_tuple_id);
226
331k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
331k
    }
228
858k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.11k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.11k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.42k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.42k
            VExprContextSPtrs projections;
233
8.42k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.42k
            _intermediate_projections.push_back(projections);
235
8.42k
        }
236
4.11k
    }
237
858k
    return Status::OK();
238
858k
}
239
240
891k
Status OperatorXBase::prepare(RuntimeState* state) {
241
891k
    for (auto& conjunct : _conjuncts) {
242
477k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
477k
    }
244
891k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
838k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
632k
            return a->execute_cost() < b->execute_cost();
247
632k
        });
248
838k
    };
249
250
900k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.42k
        RETURN_IF_ERROR(
252
8.42k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.42k
    }
254
891k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
891k
    if (has_output_row_desc()) {
257
331k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
331k
    }
259
260
891k
    for (auto& conjunct : _conjuncts) {
261
477k
        RETURN_IF_ERROR(conjunct->open(state));
262
477k
    }
263
891k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
891k
    for (auto& projections : _intermediate_projections) {
265
8.42k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.42k
    }
267
891k
    if (_child && !is_source()) {
268
135k
        RETURN_IF_ERROR(_child->prepare(state));
269
135k
    }
270
271
891k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
891k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
891k
    return Status::OK();
277
891k
}
278
279
7.99k
Status OperatorXBase::terminate(RuntimeState* state) {
280
7.99k
    if (_child && !is_source()) {
281
1.40k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.40k
    }
283
7.99k
    auto result = state->get_local_state_result(operator_id());
284
7.99k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
7.99k
    return result.value()->terminate(state);
288
7.99k
}
289
290
6.33M
Status OperatorXBase::close(RuntimeState* state) {
291
6.33M
    if (_child && !is_source()) {
292
1.10M
        RETURN_IF_ERROR(_child->close(state));
293
1.10M
    }
294
6.33M
    auto result = state->get_local_state_result(operator_id());
295
6.33M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.33M
    return result.value()->close(state);
299
6.33M
}
300
301
297k
void PipelineXLocalStateBase::clear_origin_block() {
302
297k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
297k
}
304
305
652k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
652k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
652k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
652k
    return Status::OK();
310
652k
}
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
297k
                                     Block* output_block) const {
319
297k
    auto* local_state = state->get_local_state(operator_id());
320
297k
    SCOPED_TIMER(local_state->exec_time_counter());
321
297k
    SCOPED_TIMER(local_state->_projection_timer);
322
297k
    const size_t rows = origin_block->rows();
323
297k
    if (rows == 0) {
324
150k
        return Status::OK();
325
150k
    }
326
147k
    Block input_block = *origin_block;
327
328
147k
    size_t bytes_usage = 0;
329
147k
    ColumnsWithTypeAndName new_columns;
330
147k
    for (const auto& projections : local_state->_intermediate_projections) {
331
1.82k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.82k
        new_columns.resize(projections.size());
336
14.2k
        for (int i = 0; i < projections.size(); i++) {
337
12.4k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
12.4k
            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
12.4k
        }
346
1.82k
        Block tmp_block {new_columns};
347
1.82k
        bytes_usage += tmp_block.allocated_bytes();
348
1.82k
        input_block.swap(tmp_block);
349
1.82k
    }
350
351
147k
    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
685k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
685k
        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
685k
        } else {
368
685k
            if (_keep_origin || !from->is_exclusive()) {
369
685k
                to->insert_range_from(*from, 0, rows);
370
685k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
685k
        }
375
685k
    };
376
377
147k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
147k
            output_block, *_output_row_descriptor);
379
147k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
147k
    auto& mutable_columns = mutable_block.mutable_columns();
381
147k
    if (rows != 0) {
382
147k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
832k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
685k
            ColumnPtr column_ptr;
385
685k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
685k
            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
685k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
685k
            bytes_usage += column_ptr->allocated_bytes();
394
685k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
685k
        }
396
147k
        DCHECK(mutable_block.rows() == rows);
397
147k
    }
398
147k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
147k
    return Status::OK();
401
147k
}
402
403
4.86M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.86M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.86M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.86M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.86M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.86M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.86M
            if (_debug_point_count++ % 2 == 0) {
410
4.86M
                return Status::OK();
411
4.86M
            }
412
4.86M
        }
413
4.86M
    });
414
415
4.86M
    Status status;
416
4.86M
    auto* local_state = state->get_local_state(operator_id());
417
4.86M
    Defer defer([&]() {
418
4.86M
        if (status.ok()) {
419
4.86M
            local_state->update_output_block_counters(*block);
420
4.86M
        }
421
4.86M
    });
422
4.86M
    if (_output_row_descriptor) {
423
297k
        local_state->clear_origin_block();
424
297k
        status = get_block(state, &local_state->_origin_block, eos);
425
297k
        if (UNLIKELY(!status.ok())) {
426
22
            return status;
427
22
        }
428
297k
        status = do_projections(state, &local_state->_origin_block, block);
429
297k
        return status;
430
297k
    }
431
4.56M
    status = get_block(state, block, eos);
432
4.56M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.56M
    return status;
434
4.56M
}
435
436
3.32M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.32M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
7.52k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
7.52k
        *eos = true;
440
7.52k
    }
441
442
3.32M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.32M
        auto op_name = to_lower(_parent->_op_name);
444
3.32M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.32M
        arg_op_name = to_lower(arg_op_name);
446
447
3.32M
        if (op_name == arg_op_name) {
448
3.32M
            *eos = true;
449
3.32M
        }
450
3.32M
    });
451
452
3.32M
    if (auto rows = block->rows()) {
453
940k
        _num_rows_returned += rows;
454
940k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
940k
    }
456
3.32M
}
457
458
30.5k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
30.5k
    auto result = state->get_sink_local_state_result();
460
30.5k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
30.5k
    return result.value()->terminate(state);
464
30.5k
}
465
466
20.2k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
20.2k
    fmt::memory_buffer debug_string_buffer;
468
469
20.2k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
20.2k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
20.2k
    return fmt::to_string(debug_string_buffer);
472
20.2k
}
473
474
20.2k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
20.2k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
20.2k
}
477
478
474k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
474k
    std::string op_name = "UNKNOWN_SINK";
480
474k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
474k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
474k
        op_name = it->second;
484
474k
    }
485
474k
    _name = op_name + "_OPERATOR";
486
474k
    return Status::OK();
487
474k
}
488
489
327k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
327k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
327k
    _nereids_id = tnode.nereids_id;
492
327k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
327k
    _name = substr + "_SINK_OPERATOR";
494
327k
    return Status::OK();
495
327k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.16M
                                                            LocalSinkStateInfo& info) {
500
2.16M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.16M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.16M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.16M
    return Status::OK();
504
2.16M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
121k
                                                            LocalSinkStateInfo& info) {
500
121k
    auto local_state = LocalStateType::create_unique(this, state);
501
121k
    RETURN_IF_ERROR(local_state->init(state, info));
502
121k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
121k
    return Status::OK();
504
121k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
450k
                                                            LocalSinkStateInfo& info) {
500
450k
    auto local_state = LocalStateType::create_unique(this, state);
501
450k
    RETURN_IF_ERROR(local_state->init(state, info));
502
450k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
450k
    return Status::OK();
504
450k
}
_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
517
                                                            LocalSinkStateInfo& info) {
500
517
    auto local_state = LocalStateType::create_unique(this, state);
501
517
    RETURN_IF_ERROR(local_state->init(state, info));
502
517
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
517
    return Status::OK();
504
517
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
46.7k
                                                            LocalSinkStateInfo& info) {
500
46.7k
    auto local_state = LocalStateType::create_unique(this, state);
501
46.7k
    RETURN_IF_ERROR(local_state->init(state, info));
502
46.7k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
46.7k
    return Status::OK();
504
46.7k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.66k
                                                            LocalSinkStateInfo& info) {
500
9.66k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.66k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.66k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.66k
    return Status::OK();
504
9.66k
}
_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
3.74k
                                                            LocalSinkStateInfo& info) {
500
3.74k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.74k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.74k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.74k
    return Status::OK();
504
3.74k
}
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
32
                                                            LocalSinkStateInfo& info) {
500
32
    auto local_state = LocalStateType::create_unique(this, state);
501
32
    RETURN_IF_ERROR(local_state->init(state, info));
502
32
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
32
    return Status::OK();
504
32
}
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
656
                                                            LocalSinkStateInfo& info) {
500
656
    auto local_state = LocalStateType::create_unique(this, state);
501
656
    RETURN_IF_ERROR(local_state->init(state, info));
502
656
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
656
    return Status::OK();
504
656
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
1.50k
                                                            LocalSinkStateInfo& info) {
500
1.50k
    auto local_state = LocalStateType::create_unique(this, state);
501
1.50k
    RETURN_IF_ERROR(local_state->init(state, info));
502
1.50k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
1.50k
    return Status::OK();
504
1.50k
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.83k
                                                            LocalSinkStateInfo& info) {
500
7.83k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.83k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.83k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.83k
    return Status::OK();
504
7.83k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
95
                                                            LocalSinkStateInfo& info) {
500
95
    auto local_state = LocalStateType::create_unique(this, state);
501
95
    RETURN_IF_ERROR(local_state->init(state, info));
502
95
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
95
    return Status::OK();
504
95
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
263k
                                                            LocalSinkStateInfo& info) {
500
263k
    auto local_state = LocalStateType::create_unique(this, state);
501
263k
    RETURN_IF_ERROR(local_state->init(state, info));
502
263k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
263k
    return Status::OK();
504
263k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
28
                                                            LocalSinkStateInfo& info) {
500
28
    auto local_state = LocalStateType::create_unique(this, state);
501
28
    RETURN_IF_ERROR(local_state->init(state, info));
502
28
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
28
    return Status::OK();
504
28
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
343k
                                                            LocalSinkStateInfo& info) {
500
343k
    auto local_state = LocalStateType::create_unique(this, state);
501
343k
    RETURN_IF_ERROR(local_state->init(state, info));
502
343k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
343k
    return Status::OK();
504
343k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
160k
                                                            LocalSinkStateInfo& info) {
500
160k
    auto local_state = LocalStateType::create_unique(this, state);
501
160k
    RETURN_IF_ERROR(local_state->init(state, info));
502
160k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
160k
    return Status::OK();
504
160k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
680
                                                            LocalSinkStateInfo& info) {
500
680
    auto local_state = LocalStateType::create_unique(this, state);
501
680
    RETURN_IF_ERROR(local_state->init(state, info));
502
680
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
680
    return Status::OK();
504
680
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
160
                                                            LocalSinkStateInfo& info) {
500
160
    auto local_state = LocalStateType::create_unique(this, state);
501
160
    RETURN_IF_ERROR(local_state->init(state, info));
502
160
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
160
    return Status::OK();
504
160
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
710k
                                                            LocalSinkStateInfo& info) {
500
710k
    auto local_state = LocalStateType::create_unique(this, state);
501
710k
    RETURN_IF_ERROR(local_state->init(state, info));
502
710k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
710k
    return Status::OK();
504
710k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
10.2k
                                                            LocalSinkStateInfo& info) {
500
10.2k
    auto local_state = LocalStateType::create_unique(this, state);
501
10.2k
    RETURN_IF_ERROR(local_state->init(state, info));
502
10.2k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
10.2k
    return Status::OK();
504
10.2k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.82k
                                                            LocalSinkStateInfo& info) {
500
5.82k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.82k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.82k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.82k
    return Status::OK();
504
5.82k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.05k
                                                            LocalSinkStateInfo& info) {
500
4.05k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.05k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.05k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.05k
    return Status::OK();
504
4.05k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
290
                                                            LocalSinkStateInfo& info) {
500
290
    auto local_state = LocalStateType::create_unique(this, state);
501
290
    RETURN_IF_ERROR(local_state->init(state, info));
502
290
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
290
    return Status::OK();
504
290
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.80k
                                                            LocalSinkStateInfo& info) {
500
4.80k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.80k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.80k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.80k
    return Status::OK();
504
4.80k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.60k
                                                            LocalSinkStateInfo& info) {
500
2.60k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.60k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.60k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.60k
    return Status::OK();
504
2.60k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.58k
                                                            LocalSinkStateInfo& info) {
500
2.58k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.58k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.58k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.58k
    return Status::OK();
504
2.58k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.50k
                                                            LocalSinkStateInfo& info) {
500
2.50k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.50k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.50k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.50k
    return Status::OK();
504
2.50k
}
_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.78M
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.78M
    } else {
515
1.78M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.78M
        ss->id = operator_id();
517
1.78M
        for (auto& dest : dests_id()) {
518
1.77M
            ss->related_op_ids.insert(dest);
519
1.77M
        }
520
1.78M
        return ss;
521
1.78M
    }
522
1.78M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
100k
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
100k
    } else {
515
100k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
100k
        ss->id = operator_id();
517
100k
        for (auto& dest : dests_id()) {
518
99.6k
            ss->related_op_ids.insert(dest);
519
99.6k
        }
520
100k
        return ss;
521
100k
    }
522
100k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
451k
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
451k
    } else {
515
451k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
451k
        ss->id = operator_id();
517
451k
        for (auto& dest : dests_id()) {
518
449k
            ss->related_op_ids.insert(dest);
519
449k
        }
520
451k
        return ss;
521
451k
    }
522
451k
}
_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
516
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
516
    } else {
515
516
        auto ss = LocalStateType::SharedStateType::create_shared();
516
516
        ss->id = operator_id();
517
516
        for (auto& dest : dests_id()) {
518
515
            ss->related_op_ids.insert(dest);
519
515
        }
520
516
        return ss;
521
516
    }
522
516
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
46.8k
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
46.8k
    } else {
515
46.8k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
46.8k
        ss->id = operator_id();
517
46.8k
        for (auto& dest : dests_id()) {
518
46.6k
            ss->related_op_ids.insert(dest);
519
46.6k
        }
520
46.8k
        return ss;
521
46.8k
    }
522
46.8k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.66k
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.66k
    } else {
515
9.66k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.66k
        ss->id = operator_id();
517
9.66k
        for (auto& dest : dests_id()) {
518
9.66k
            ss->related_op_ids.insert(dest);
519
9.66k
        }
520
9.66k
        return ss;
521
9.66k
    }
522
9.66k
}
_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
3.74k
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.74k
    } else {
515
3.74k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.74k
        ss->id = operator_id();
517
3.74k
        for (auto& dest : dests_id()) {
518
3.74k
            ss->related_op_ids.insert(dest);
519
3.74k
        }
520
3.74k
        return ss;
521
3.74k
    }
522
3.74k
}
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
32
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
32
    } else {
515
32
        auto ss = LocalStateType::SharedStateType::create_shared();
516
32
        ss->id = operator_id();
517
32
        for (auto& dest : dests_id()) {
518
32
            ss->related_op_ids.insert(dest);
519
32
        }
520
32
        return ss;
521
32
    }
522
32
}
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
656
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
656
    } else {
515
656
        auto ss = LocalStateType::SharedStateType::create_shared();
516
656
        ss->id = operator_id();
517
656
        for (auto& dest : dests_id()) {
518
656
            ss->related_op_ids.insert(dest);
519
656
        }
520
656
        return ss;
521
656
    }
522
656
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
1.50k
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.50k
    } else {
515
1.50k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.50k
        ss->id = operator_id();
517
1.50k
        for (auto& dest : dests_id()) {
518
1.50k
            ss->related_op_ids.insert(dest);
519
1.50k
        }
520
1.50k
        return ss;
521
1.50k
    }
522
1.50k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
7.86k
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.86k
    } else {
515
7.86k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
7.86k
        ss->id = operator_id();
517
7.86k
        for (auto& dest : dests_id()) {
518
7.85k
            ss->related_op_ids.insert(dest);
519
7.85k
        }
520
7.86k
        return ss;
521
7.86k
    }
522
7.86k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
95
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
95
    } else {
515
95
        auto ss = LocalStateType::SharedStateType::create_shared();
516
95
        ss->id = operator_id();
517
95
        for (auto& dest : dests_id()) {
518
95
            ss->related_op_ids.insert(dest);
519
95
        }
520
95
        return ss;
521
95
    }
522
95
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
264k
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
264k
    } else {
515
264k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
264k
        ss->id = operator_id();
517
264k
        for (auto& dest : dests_id()) {
518
263k
            ss->related_op_ids.insert(dest);
519
263k
        }
520
264k
        return ss;
521
264k
    }
522
264k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
30
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
30
    } else {
515
30
        auto ss = LocalStateType::SharedStateType::create_shared();
516
30
        ss->id = operator_id();
517
30
        for (auto& dest : dests_id()) {
518
30
            ss->related_op_ids.insert(dest);
519
30
        }
520
30
        return ss;
521
30
    }
522
30
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
160k
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
160k
    } else {
515
160k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
160k
        ss->id = operator_id();
517
160k
        for (auto& dest : dests_id()) {
518
160k
            ss->related_op_ids.insert(dest);
519
160k
        }
520
160k
        return ss;
521
160k
    }
522
160k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
159
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
159
    } else {
515
159
        auto ss = LocalStateType::SharedStateType::create_shared();
516
159
        ss->id = operator_id();
517
159
        for (auto& dest : dests_id()) {
518
159
            ss->related_op_ids.insert(dest);
519
159
        }
520
159
        return ss;
521
159
    }
522
159
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
711k
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
711k
    } else {
515
711k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
711k
        ss->id = operator_id();
517
711k
        for (auto& dest : dests_id()) {
518
707k
            ss->related_op_ids.insert(dest);
519
707k
        }
520
711k
        return ss;
521
711k
    }
522
711k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
10.2k
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.2k
    } else {
515
10.2k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
10.2k
        ss->id = operator_id();
517
10.2k
        for (auto& dest : dests_id()) {
518
10.2k
            ss->related_op_ids.insert(dest);
519
10.2k
        }
520
10.2k
        return ss;
521
10.2k
    }
522
10.2k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
393
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
393
    } else {
515
393
        auto ss = LocalStateType::SharedStateType::create_shared();
516
393
        ss->id = operator_id();
517
393
        for (auto& dest : dests_id()) {
518
392
            ss->related_op_ids.insert(dest);
519
392
        }
520
393
        return ss;
521
393
    }
522
393
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.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
2.60k
    } else {
515
2.60k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.60k
        ss->id = operator_id();
517
2.60k
        for (auto& dest : dests_id()) {
518
2.59k
            ss->related_op_ids.insert(dest);
519
2.59k
        }
520
2.60k
        return ss;
521
2.60k
    }
522
2.60k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.52k
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.52k
    } else {
515
2.52k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.52k
        ss->id = operator_id();
517
2.52k
        for (auto& dest : dests_id()) {
518
2.51k
            ss->related_op_ids.insert(dest);
519
2.51k
        }
520
2.52k
        return ss;
521
2.52k
    }
522
2.52k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
567
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
567
    } else {
515
567
        auto ss = LocalStateType::SharedStateType::create_shared();
516
567
        ss->id = operator_id();
517
567
        for (auto& dest : dests_id()) {
518
567
            ss->related_op_ids.insert(dest);
519
567
        }
520
567
        return ss;
521
567
    }
522
567
}
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.63M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.63M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.63M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.63M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.63M
    return Status::OK();
530
2.63M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
73.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
73.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
73.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
73.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
73.2k
    return Status::OK();
530
73.2k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
315k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
315k
    auto local_state = LocalStateType::create_unique(state, this);
527
315k
    RETURN_IF_ERROR(local_state->init(state, info));
528
315k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
315k
    return Status::OK();
530
315k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
141
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
141
    auto local_state = LocalStateType::create_unique(state, this);
527
141
    RETURN_IF_ERROR(local_state->init(state, info));
528
141
    state->emplace_local_state(operator_id(), std::move(local_state));
529
141
    return Status::OK();
530
141
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
37.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
37.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
37.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
37.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
37.3k
    return Status::OK();
530
37.3k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.77k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.77k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.77k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.77k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.77k
    return Status::OK();
530
7.77k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.01k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.01k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.01k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.01k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.01k
    return Status::OK();
530
8.01k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
21
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
21
    auto local_state = LocalStateType::create_unique(state, this);
527
21
    RETURN_IF_ERROR(local_state->init(state, info));
528
21
    state->emplace_local_state(operator_id(), std::move(local_state));
529
21
    return Status::OK();
530
21
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
254k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
254k
    auto local_state = LocalStateType::create_unique(state, this);
527
254k
    RETURN_IF_ERROR(local_state->init(state, info));
528
254k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
254k
    return Status::OK();
530
254k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
160k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
160k
    auto local_state = LocalStateType::create_unique(state, this);
527
160k
    RETURN_IF_ERROR(local_state->init(state, info));
528
160k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
160k
    return Status::OK();
530
160k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
674
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
674
    auto local_state = LocalStateType::create_unique(state, this);
527
674
    RETURN_IF_ERROR(local_state->init(state, info));
528
674
    state->emplace_local_state(operator_id(), std::move(local_state));
529
674
    return Status::OK();
530
674
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
150
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
150
    auto local_state = LocalStateType::create_unique(state, this);
527
150
    RETURN_IF_ERROR(local_state->init(state, info));
528
150
    state->emplace_local_state(operator_id(), std::move(local_state));
529
150
    return Status::OK();
530
150
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
3.80k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
3.80k
    auto local_state = LocalStateType::create_unique(state, this);
527
3.80k
    RETURN_IF_ERROR(local_state->init(state, info));
528
3.80k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
3.80k
    return Status::OK();
530
3.80k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
388k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
388k
    auto local_state = LocalStateType::create_unique(state, this);
527
388k
    RETURN_IF_ERROR(local_state->init(state, info));
528
388k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
388k
    return Status::OK();
530
388k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.31k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.31k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.31k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.31k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.31k
    return Status::OK();
530
1.31k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.2k
    return Status::OK();
530
10.2k
}
_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.97k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.97k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.97k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.97k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.97k
    return Status::OK();
530
1.97k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
56.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.2k
    return Status::OK();
530
56.2k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.9k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.9k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.9k
    return Status::OK();
530
10.9k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
291
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
291
    auto local_state = LocalStateType::create_unique(state, this);
527
291
    RETURN_IF_ERROR(local_state->init(state, info));
528
291
    state->emplace_local_state(operator_id(), std::move(local_state));
529
291
    return Status::OK();
530
291
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.47k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.47k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.47k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.47k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.47k
    return Status::OK();
530
2.47k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.43k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.43k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.43k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.43k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.43k
    return Status::OK();
530
2.43k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
508
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
508
    auto local_state = LocalStateType::create_unique(state, this);
527
508
    RETURN_IF_ERROR(local_state->init(state, info));
528
508
    state->emplace_local_state(operator_id(), std::move(local_state));
529
508
    return Status::OK();
530
508
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.19k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.19k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.19k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.19k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.19k
    return Status::OK();
530
2.19k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.43k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.43k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.43k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.43k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.43k
    return Status::OK();
530
7.43k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
829k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
829k
    auto local_state = LocalStateType::create_unique(state, this);
527
829k
    RETURN_IF_ERROR(local_state->init(state, info));
528
829k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
829k
    return Status::OK();
530
829k
}
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.73k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.73k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.73k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.73k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.73k
    return Status::OK();
530
1.73k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.86k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.86k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.86k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.86k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.86k
    return Status::OK();
530
2.86k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.7k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.7k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.7k
    return Status::OK();
530
11.7k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
445k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
445k
    auto local_state = LocalStateType::create_unique(state, this);
527
445k
    RETURN_IF_ERROR(local_state->init(state, info));
528
445k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
445k
    return Status::OK();
530
445k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.16M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.63M
        : _num_rows_returned(0),
538
2.63M
          _rows_returned_counter(nullptr),
539
2.63M
          _parent(parent),
540
2.63M
          _state(state),
541
2.63M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.64M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.64M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.64M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.64M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.64M
    _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.64M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.64M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.64M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.64M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.64M
    if constexpr (!is_fake_shared) {
556
1.42M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
845k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
845k
                                    .first.get()
559
845k
                                    ->template cast<SharedStateArg>();
560
561
845k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
845k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
845k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
845k
        } else if (info.shared_state) {
565
502k
            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
502k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
502k
            _dependency = _shared_state->create_source_dependency(
572
502k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
502k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
502k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
502k
        } else {
576
74.0k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
9.84k
                DCHECK(false);
578
9.84k
            }
579
74.0k
        }
580
1.42M
    }
581
582
2.64M
    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.64M
    _rows_returned_counter =
587
2.64M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.64M
    _blocks_returned_counter =
589
2.64M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.64M
    _output_block_bytes_counter =
591
2.64M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.64M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.64M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.64M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.64M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.64M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.64M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.64M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.64M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.64M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.64M
    _memory_used_counter =
602
2.64M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.64M
    _common_profile->add_info_string("IsColocate",
604
2.64M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.64M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.64M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.64M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.64M
    return Status::OK();
609
2.64M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
73.2k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
73.2k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
73.2k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
73.2k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
73.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
73.2k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
73.2k
    _operator_profile->add_child(_common_profile.get(), true);
553
73.2k
    _operator_profile->add_child(_custom_profile.get(), true);
554
73.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
73.2k
    if constexpr (!is_fake_shared) {
556
73.2k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
21.3k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
21.3k
                                    .first.get()
559
21.3k
                                    ->template cast<SharedStateArg>();
560
561
21.3k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
21.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
21.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
51.8k
        } 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.9k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
50.9k
            _dependency = _shared_state->create_source_dependency(
572
50.9k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
50.9k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
50.9k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
50.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
933
        }
580
73.2k
    }
581
582
73.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
73.2k
    _rows_returned_counter =
587
73.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
73.2k
    _blocks_returned_counter =
589
73.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
73.2k
    _output_block_bytes_counter =
591
73.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
73.2k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
73.2k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
73.2k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
73.2k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
73.2k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
73.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
73.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
73.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
73.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
73.2k
    _memory_used_counter =
602
73.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
73.2k
    _common_profile->add_info_string("IsColocate",
604
73.2k
                                     std::to_string(_parent->is_colocated_operator()));
605
73.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
73.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
73.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
73.2k
    return Status::OK();
609
73.2k
}
_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
263k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
263k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
263k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
263k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
263k
    _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
263k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
263k
    _operator_profile->add_child(_common_profile.get(), true);
553
263k
    _operator_profile->add_child(_custom_profile.get(), true);
554
263k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
263k
    if constexpr (!is_fake_shared) {
556
263k
        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
263k
        } 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
256k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
256k
            _dependency = _shared_state->create_source_dependency(
572
256k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
256k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
256k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
256k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
7.17k
        }
580
263k
    }
581
582
263k
    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
263k
    _rows_returned_counter =
587
263k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
263k
    _blocks_returned_counter =
589
263k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
263k
    _output_block_bytes_counter =
591
263k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
263k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
263k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
263k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
263k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
263k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
263k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
263k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
263k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
263k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
263k
    _memory_used_counter =
602
263k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
263k
    _common_profile->add_info_string("IsColocate",
604
263k
                                     std::to_string(_parent->is_colocated_operator()));
605
263k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
263k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
263k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
263k
    return Status::OK();
609
263k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
21
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
21
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
21
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
21
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
21
    _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
21
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
21
    _operator_profile->add_child(_common_profile.get(), true);
553
21
    _operator_profile->add_child(_custom_profile.get(), true);
554
21
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
21
    if constexpr (!is_fake_shared) {
556
21
        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
21
        } 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
21
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
21
            _dependency = _shared_state->create_source_dependency(
572
21
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
21
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
21
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
21
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
21
    }
581
582
21
    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
21
    _rows_returned_counter =
587
21
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
21
    _blocks_returned_counter =
589
21
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
21
    _output_block_bytes_counter =
591
21
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
21
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
21
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
21
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
21
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
21
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
21
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
21
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
21
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
21
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
21
    _memory_used_counter =
602
21
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
21
    _common_profile->add_info_string("IsColocate",
604
21
                                     std::to_string(_parent->is_colocated_operator()));
605
21
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
21
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
21
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
21
    return Status::OK();
609
21
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.2k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.2k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.2k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.2k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.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
10.2k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.2k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.2k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.2k
    if constexpr (!is_fake_shared) {
556
10.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
10.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
10.2k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.2k
            _dependency = _shared_state->create_source_dependency(
572
10.2k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.2k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.2k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.2k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
7
        }
580
10.2k
    }
581
582
10.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
10.2k
    _rows_returned_counter =
587
10.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.2k
    _blocks_returned_counter =
589
10.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.2k
    _output_block_bytes_counter =
591
10.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.2k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.2k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.2k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.2k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.2k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.2k
    _memory_used_counter =
602
10.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.2k
    _common_profile->add_info_string("IsColocate",
604
10.2k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.2k
    return Status::OK();
609
10.2k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
7.84k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
7.84k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
7.84k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
7.84k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
7.84k
    _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.84k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
7.84k
    _operator_profile->add_child(_common_profile.get(), true);
553
7.84k
    _operator_profile->add_child(_custom_profile.get(), true);
554
7.84k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
7.84k
    if constexpr (!is_fake_shared) {
556
7.84k
        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.84k
        } 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.66k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
7.66k
            _dependency = _shared_state->create_source_dependency(
572
7.66k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
7.66k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
7.66k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
7.66k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
183
        }
580
7.84k
    }
581
582
7.84k
    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.84k
    _rows_returned_counter =
587
7.84k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
7.84k
    _blocks_returned_counter =
589
7.84k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
7.84k
    _output_block_bytes_counter =
591
7.84k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
7.84k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
7.84k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
7.84k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
7.84k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
7.84k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
7.84k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
7.84k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
7.84k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
7.84k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
7.84k
    _memory_used_counter =
602
7.84k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
7.84k
    _common_profile->add_info_string("IsColocate",
604
7.84k
                                     std::to_string(_parent->is_colocated_operator()));
605
7.84k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
7.84k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
7.84k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
7.84k
    return Status::OK();
609
7.84k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
160k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
160k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
160k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
160k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
160k
    _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
160k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
160k
    _operator_profile->add_child(_common_profile.get(), true);
553
160k
    _operator_profile->add_child(_custom_profile.get(), true);
554
160k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
160k
    if constexpr (!is_fake_shared) {
556
160k
        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
160k
        } 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
158k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
158k
            _dependency = _shared_state->create_source_dependency(
572
158k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
158k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
158k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
158k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
2.04k
        }
580
160k
    }
581
582
160k
    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
160k
    _rows_returned_counter =
587
160k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
160k
    _blocks_returned_counter =
589
160k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
160k
    _output_block_bytes_counter =
591
160k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
160k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
160k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
160k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
160k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
160k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
160k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
160k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
160k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
160k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
160k
    _memory_used_counter =
602
160k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
160k
    _common_profile->add_info_string("IsColocate",
604
160k
                                     std::to_string(_parent->is_colocated_operator()));
605
160k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
160k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
160k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
160k
    return Status::OK();
609
160k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
677
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
677
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
677
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
677
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
677
    _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
677
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
677
    _operator_profile->add_child(_common_profile.get(), true);
553
677
    _operator_profile->add_child(_custom_profile.get(), true);
554
677
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
677
    if constexpr (!is_fake_shared) {
556
678
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
678
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
678
                                    .first.get()
559
678
                                    ->template cast<SharedStateArg>();
560
561
678
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
678
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
678
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
18.4E
        } 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
18.4E
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
18.4E
        }
580
677
    }
581
582
677
    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
677
    _rows_returned_counter =
587
677
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
677
    _blocks_returned_counter =
589
677
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
677
    _output_block_bytes_counter =
591
677
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
677
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
677
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
677
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
677
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
677
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
677
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
677
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
677
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
677
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
677
    _memory_used_counter =
602
677
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
677
    _common_profile->add_info_string("IsColocate",
604
677
                                     std::to_string(_parent->is_colocated_operator()));
605
677
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
677
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
677
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
677
    return Status::OK();
609
677
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
150
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
150
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
150
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
150
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
150
    _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
150
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
150
    _operator_profile->add_child(_common_profile.get(), true);
553
150
    _operator_profile->add_child(_custom_profile.get(), true);
554
150
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
150
    if constexpr (!is_fake_shared) {
556
150
        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
150
        } 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
150
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
150
            _dependency = _shared_state->create_source_dependency(
572
150
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
150
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
150
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
150
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
150
    }
581
582
150
    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
150
    _rows_returned_counter =
587
150
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
150
    _blocks_returned_counter =
589
150
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
150
    _output_block_bytes_counter =
591
150
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
150
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
150
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
150
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
150
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
150
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
150
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
150
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
150
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
150
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
150
    _memory_used_counter =
602
150
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
150
    _common_profile->add_info_string("IsColocate",
604
150
                                     std::to_string(_parent->is_colocated_operator()));
605
150
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
150
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
150
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
150
    return Status::OK();
609
150
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.22M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.22M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.22M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.22M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.22M
    _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.22M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.22M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.22M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.22M
    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.22M
    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.22M
    _rows_returned_counter =
587
1.22M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.22M
    _blocks_returned_counter =
589
1.22M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.22M
    _output_block_bytes_counter =
591
1.22M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.22M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.22M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.22M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.22M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.22M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.22M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.22M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.22M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.22M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.22M
    _memory_used_counter =
602
1.22M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.22M
    _common_profile->add_info_string("IsColocate",
604
1.22M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.22M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.22M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.22M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.22M
    return Status::OK();
609
1.22M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
56.2k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.2k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.2k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.2k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.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
56.2k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.2k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.2k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.2k
    if constexpr (!is_fake_shared) {
556
56.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
56.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
2.76k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
2.76k
            _dependency = _shared_state->create_source_dependency(
572
2.76k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
2.76k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
2.76k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
53.4k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
53.4k
        }
580
56.2k
    }
581
582
56.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
56.2k
    _rows_returned_counter =
587
56.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.2k
    _blocks_returned_counter =
589
56.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.2k
    _output_block_bytes_counter =
591
56.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.2k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.2k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.2k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.2k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.2k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.2k
    _memory_used_counter =
602
56.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.2k
    _common_profile->add_info_string("IsColocate",
604
56.2k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.2k
    return Status::OK();
609
56.2k
}
_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
10.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.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
10.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.9k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.9k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.9k
    if constexpr (!is_fake_shared) {
556
10.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
10.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
10.9k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.9k
            _dependency = _shared_state->create_source_dependency(
572
10.9k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.9k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.9k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
7
        }
580
10.9k
    }
581
582
10.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
10.9k
    _rows_returned_counter =
587
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.9k
    _blocks_returned_counter =
589
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.9k
    _output_block_bytes_counter =
591
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.9k
    _memory_used_counter =
602
10.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.9k
    _common_profile->add_info_string("IsColocate",
604
10.9k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.9k
    return Status::OK();
609
10.9k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
393
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
393
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
393
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
393
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
393
    _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
393
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
393
    _operator_profile->add_child(_common_profile.get(), true);
553
393
    _operator_profile->add_child(_custom_profile.get(), true);
554
393
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
393
    if constexpr (!is_fake_shared) {
556
393
        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
393
        } 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
392
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
392
            _dependency = _shared_state->create_source_dependency(
572
392
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
392
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
392
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
392
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1
        }
580
393
    }
581
582
393
    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
393
    _rows_returned_counter =
587
393
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
393
    _blocks_returned_counter =
589
393
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
393
    _output_block_bytes_counter =
591
393
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
393
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
393
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
393
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
393
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
393
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
393
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
393
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
393
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
393
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
393
    _memory_used_counter =
602
393
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
393
    _common_profile->add_info_string("IsColocate",
604
393
                                     std::to_string(_parent->is_colocated_operator()));
605
393
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
393
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
393
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
393
    return Status::OK();
609
393
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.05k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.05k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.05k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.05k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.05k
    _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.05k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.05k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.05k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.05k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.05k
    if constexpr (!is_fake_shared) {
556
5.05k
        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.05k
        } 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
4.59k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
4.59k
            _dependency = _shared_state->create_source_dependency(
572
4.59k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
4.59k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
4.59k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
4.59k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
458
        }
580
5.05k
    }
581
582
5.05k
    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.05k
    _rows_returned_counter =
587
5.05k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.05k
    _blocks_returned_counter =
589
5.05k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.05k
    _output_block_bytes_counter =
591
5.05k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.05k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.05k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.05k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.05k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.05k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.05k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.05k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.05k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.05k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.05k
    _memory_used_counter =
602
5.05k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.05k
    _common_profile->add_info_string("IsColocate",
604
5.05k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.05k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.05k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.05k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.05k
    return Status::OK();
609
5.05k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
833k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
833k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
833k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
833k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
833k
    _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
833k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
833k
    _operator_profile->add_child(_common_profile.get(), true);
553
833k
    _operator_profile->add_child(_custom_profile.get(), true);
554
833k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
833k
    if constexpr (!is_fake_shared) {
556
833k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
823k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
823k
                                    .first.get()
559
823k
                                    ->template cast<SharedStateArg>();
560
561
823k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
823k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
823k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
823k
        } 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
9.84k
        } else {
576
9.84k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
9.84k
                DCHECK(false);
578
9.84k
            }
579
9.84k
        }
580
833k
    }
581
582
833k
    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
833k
    _rows_returned_counter =
587
833k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
833k
    _blocks_returned_counter =
589
833k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
833k
    _output_block_bytes_counter =
591
833k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
833k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
833k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
833k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
833k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
833k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
833k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
833k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
833k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
833k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
833k
    _memory_used_counter =
602
833k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
833k
    _common_profile->add_info_string("IsColocate",
604
833k
                                     std::to_string(_parent->is_colocated_operator()));
605
833k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
833k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
833k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
833k
    return Status::OK();
609
833k
}
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.65M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.65M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.65M
    _projections.resize(_parent->_projections.size());
615
3.18M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
529k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
529k
    }
618
5.48M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.83M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.83M
    }
621
2.65M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.66M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
14.6k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
106k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
91.4k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
91.4k
                    state, _intermediate_projections[i][j]));
627
91.4k
        }
628
14.6k
    }
629
2.65M
    return Status::OK();
630
2.65M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
73.7k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
73.7k
    _conjuncts.resize(_parent->_conjuncts.size());
614
73.7k
    _projections.resize(_parent->_projections.size());
615
74.7k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
922
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
922
    }
618
371k
    for (size_t i = 0; i < _projections.size(); i++) {
619
297k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
297k
    }
621
73.7k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
76.5k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
2.75k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
35.1k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
32.4k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
32.4k
                    state, _intermediate_projections[i][j]));
627
32.4k
        }
628
2.75k
    }
629
73.7k
    return Status::OK();
630
73.7k
}
_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
264k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
264k
    _conjuncts.resize(_parent->_conjuncts.size());
614
264k
    _projections.resize(_parent->_projections.size());
615
264k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
264k
    for (size_t i = 0; i < _projections.size(); i++) {
619
365
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
365
    }
621
264k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
264k
    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
264k
    return Status::OK();
630
264k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
20
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
20
    _conjuncts.resize(_parent->_conjuncts.size());
614
20
    _projections.resize(_parent->_projections.size());
615
20
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
20
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
20
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
20
    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
20
    return Status::OK();
630
20
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.2k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.2k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.2k
    _projections.resize(_parent->_projections.size());
615
10.3k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
99
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
99
    }
618
66.6k
    for (size_t i = 0; i < _projections.size(); i++) {
619
56.3k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
56.3k
    }
621
10.2k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.4k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
145
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
875
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
730
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
730
                    state, _intermediate_projections[i][j]));
627
730
        }
628
145
    }
629
10.2k
    return Status::OK();
630
10.2k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
7.88k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
7.88k
    _conjuncts.resize(_parent->_conjuncts.size());
614
7.88k
    _projections.resize(_parent->_projections.size());
615
8.59k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
709
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
709
    }
618
21.9k
    for (size_t i = 0; i < _projections.size(); i++) {
619
14.0k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
14.0k
    }
621
7.88k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
7.97k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
87
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
659
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
572
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
572
                    state, _intermediate_projections[i][j]));
627
572
        }
628
87
    }
629
7.88k
    return Status::OK();
630
7.88k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
160k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
160k
    _conjuncts.resize(_parent->_conjuncts.size());
614
160k
    _projections.resize(_parent->_projections.size());
615
165k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.67k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.67k
    }
618
424k
    for (size_t i = 0; i < _projections.size(); i++) {
619
263k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
263k
    }
621
160k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
160k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
246
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.65k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.40k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.40k
                    state, _intermediate_projections[i][j]));
627
1.40k
        }
628
246
    }
629
160k
    return Status::OK();
630
160k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
681
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
681
    _conjuncts.resize(_parent->_conjuncts.size());
614
681
    _projections.resize(_parent->_projections.size());
615
688
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
7
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
7
    }
618
1.82k
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.14k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.14k
    }
621
681
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
681
    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
681
    return Status::OK();
630
681
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
154
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
154
    _conjuncts.resize(_parent->_conjuncts.size());
614
154
    _projections.resize(_parent->_projections.size());
615
154
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
430
    for (size_t i = 0; i < _projections.size(); i++) {
619
276
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
276
    }
621
154
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
154
    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
154
    return Status::OK();
630
154
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.22M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.22M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.22M
    _projections.resize(_parent->_projections.size());
615
1.74M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
519k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
519k
    }
618
3.32M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.10M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.10M
    }
621
1.22M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.23M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
11.4k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
67.7k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
56.3k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
56.3k
                    state, _intermediate_projections[i][j]));
627
56.3k
        }
628
11.4k
    }
629
1.22M
    return Status::OK();
630
1.22M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.2k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.2k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.2k
    _projections.resize(_parent->_projections.size());
615
56.2k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
152k
    for (size_t i = 0; i < _projections.size(); i++) {
619
96.1k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
96.1k
    }
621
56.2k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.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
56.2k
    return Status::OK();
630
56.2k
}
_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
10.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.9k
    _projections.resize(_parent->_projections.size());
615
14.7k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.78k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.78k
    }
618
10.9k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
10.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.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
10.9k
    return Status::OK();
630
10.9k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
393
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
393
    _conjuncts.resize(_parent->_conjuncts.size());
614
393
    _projections.resize(_parent->_projections.size());
615
393
    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
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
393
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
393
    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
393
    return Status::OK();
630
393
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.18k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.18k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.18k
    _projections.resize(_parent->_projections.size());
615
5.18k
    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.35k
    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.18k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.18k
    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.18k
    return Status::OK();
630
5.18k
}
_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.99k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
7.99k
    if (_terminated) {
635
2
        return Status::OK();
636
2
    }
637
7.99k
    _terminated = true;
638
7.99k
    return Status::OK();
639
7.99k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
295
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
295
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
295
    _terminated = true;
638
295
    return Status::OK();
639
295
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
59
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
59
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
59
    _terminated = true;
638
59
    return Status::OK();
639
59
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
71
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
71
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
71
    _terminated = true;
638
71
    return Status::OK();
639
71
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
153
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
153
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
153
    _terminated = true;
638
153
    return Status::OK();
639
153
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
6.11k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6.11k
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
6.11k
    _terminated = true;
638
6.11k
    return Status::OK();
639
6.11k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
8
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
8
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
8
    _terminated = true;
638
8
    return Status::OK();
639
8
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
11
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
11
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
11
    _terminated = true;
638
11
    return Status::OK();
639
11
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
433
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
433
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
433
    _terminated = true;
638
433
    return Status::OK();
639
433
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
833
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
833
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
832
    _terminated = true;
638
832
    return Status::OK();
639
833
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
14
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
14
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
14
    _terminated = true;
638
14
    return Status::OK();
639
14
}
640
641
template <typename SharedStateArg>
642
2.94M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.94M
    if (_closed) {
644
295k
        return Status::OK();
645
295k
    }
646
2.65M
    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.65M
    _closed = true;
650
2.65M
    return Status::OK();
651
2.94M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
73.6k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
73.6k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
73.6k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
73.6k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
73.6k
    }
649
73.6k
    _closed = true;
650
73.6k
    return Status::OK();
651
73.6k
}
_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
523k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
523k
    if (_closed) {
644
262k
        return Status::OK();
645
262k
    }
646
261k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
261k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
261k
    }
649
261k
    _closed = true;
650
261k
    return Status::OK();
651
523k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
21
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
21
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
21
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
21
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
21
    }
649
21
    _closed = true;
650
21
    return Status::OK();
651
21
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.2k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.2k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.2k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.2k
    }
649
10.2k
    _closed = true;
650
10.2k
    return Status::OK();
651
10.2k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
15.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
15.9k
    if (_closed) {
644
8.08k
        return Status::OK();
645
8.08k
    }
646
7.86k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
7.86k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
7.86k
    }
649
7.86k
    _closed = true;
650
7.86k
    return Status::OK();
651
15.9k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
160k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
160k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
160k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
160k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
160k
    }
649
160k
    _closed = true;
650
160k
    return Status::OK();
651
160k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
676
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
676
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
676
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
676
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
676
    }
649
676
    _closed = true;
650
676
    return Status::OK();
651
676
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
149
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
149
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
149
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
149
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
149
    }
649
149
    _closed = true;
650
149
    return Status::OK();
651
149
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.24M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.24M
    if (_closed) {
644
19.0k
        return Status::OK();
645
19.0k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.22M
    _closed = true;
650
1.22M
    return Status::OK();
651
1.24M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.2k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.2k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.2k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.2k
    }
649
56.2k
    _closed = true;
650
56.2k
    return Status::OK();
651
56.2k
}
_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
10.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.8k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.8k
    }
649
10.8k
    _closed = true;
650
10.8k
    return Status::OK();
651
10.8k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
582
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
582
    if (_closed) {
644
291
        return Status::OK();
645
291
    }
646
291
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
291
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
291
    }
649
291
    _closed = true;
650
291
    return Status::OK();
651
582
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.6k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.6k
    if (_closed) {
644
5.50k
        return Status::OK();
645
5.50k
    }
646
5.17k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.17k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.17k
    }
649
5.17k
    _closed = true;
650
5.17k
    return Status::OK();
651
10.6k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
837k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
837k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
837k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
837k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
837k
    }
649
837k
    _closed = true;
650
837k
    return Status::OK();
651
837k
}
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.16M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.16M
    _operator_profile =
657
2.16M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.16M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.16M
    _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.16M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.16M
    _operator_profile->add_child(_common_profile, true);
666
2.16M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.16M
    _operator_profile->set_metadata(_parent->node_id());
669
2.16M
    _wait_for_finish_dependency_timer =
670
2.16M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.16M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.16M
    if constexpr (!is_fake_shared) {
673
1.44M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.44M
            info.shared_state_map.end()) {
675
365k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
343k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
343k
            }
678
365k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
365k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
365k
                                                  ? 0
681
365k
                                                  : info.task_idx]
682
365k
                                  .get();
683
365k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.08M
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
1.08M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.08M
            _dependency = _shared_state->create_sink_dependency(
690
1.08M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.08M
        }
692
1.44M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.44M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.44M
    }
695
696
2.16M
    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.16M
    _rows_input_counter =
701
2.16M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.16M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.16M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.16M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.16M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.16M
    _memory_used_counter =
707
2.16M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.16M
    _common_profile->add_info_string("IsColocate",
709
2.16M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.16M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.16M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.16M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.16M
    return Status::OK();
714
2.16M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
121k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
121k
    _operator_profile =
657
121k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
121k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
121k
    _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
121k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
121k
    _operator_profile->add_child(_common_profile, true);
666
121k
    _operator_profile->add_child(_custom_profile, true);
667
668
121k
    _operator_profile->set_metadata(_parent->node_id());
669
121k
    _wait_for_finish_dependency_timer =
670
121k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
121k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
121k
    if constexpr (!is_fake_shared) {
673
121k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
121k
            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
21.6k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
21.6k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
21.6k
                                                  ? 0
681
21.6k
                                                  : info.task_idx]
682
21.6k
                                  .get();
683
21.6k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
99.9k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
99.9k
            _shared_state = info.shared_state->template cast<SharedState>();
689
99.9k
            _dependency = _shared_state->create_sink_dependency(
690
99.9k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
99.9k
        }
692
121k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
121k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
121k
    }
695
696
121k
    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
121k
    _rows_input_counter =
701
121k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
121k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
121k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
121k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
121k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
121k
    _memory_used_counter =
707
121k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
121k
    _common_profile->add_info_string("IsColocate",
709
121k
                                     std::to_string(_parent->is_colocated_operator()));
710
121k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
121k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
121k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
121k
    return Status::OK();
714
121k
}
_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
263k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
263k
    _operator_profile =
657
263k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
263k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
263k
    _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
263k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
263k
    _operator_profile->add_child(_common_profile, true);
666
263k
    _operator_profile->add_child(_custom_profile, true);
667
668
263k
    _operator_profile->set_metadata(_parent->node_id());
669
263k
    _wait_for_finish_dependency_timer =
670
263k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
263k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
263k
    if constexpr (!is_fake_shared) {
673
263k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
263k
            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
263k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
263k
            _shared_state = info.shared_state->template cast<SharedState>();
689
263k
            _dependency = _shared_state->create_sink_dependency(
690
263k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
263k
        }
692
263k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
263k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
263k
    }
695
696
263k
    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
263k
    _rows_input_counter =
701
263k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
263k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
263k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
263k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
263k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
263k
    _memory_used_counter =
707
263k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
263k
    _common_profile->add_info_string("IsColocate",
709
263k
                                     std::to_string(_parent->is_colocated_operator()));
710
263k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
263k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
263k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
263k
    return Status::OK();
714
263k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
28
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
28
    _operator_profile =
657
28
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
28
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
28
    _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
28
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
28
    _operator_profile->add_child(_common_profile, true);
666
28
    _operator_profile->add_child(_custom_profile, true);
667
668
28
    _operator_profile->set_metadata(_parent->node_id());
669
28
    _wait_for_finish_dependency_timer =
670
28
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
28
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
28
    if constexpr (!is_fake_shared) {
673
28
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
28
            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
28
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
28
            _shared_state = info.shared_state->template cast<SharedState>();
689
28
            _dependency = _shared_state->create_sink_dependency(
690
28
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
28
        }
692
28
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
28
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
28
    }
695
696
28
    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
28
    _rows_input_counter =
701
28
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
28
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
28
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
28
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
28
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
28
    _memory_used_counter =
707
28
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
28
    _common_profile->add_info_string("IsColocate",
709
28
                                     std::to_string(_parent->is_colocated_operator()));
710
28
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
28
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
28
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
28
    return Status::OK();
714
28
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
10.2k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
10.2k
    _operator_profile =
657
10.2k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
10.2k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
10.2k
    _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.2k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
10.2k
    _operator_profile->add_child(_common_profile, true);
666
10.2k
    _operator_profile->add_child(_custom_profile, true);
667
668
10.2k
    _operator_profile->set_metadata(_parent->node_id());
669
10.2k
    _wait_for_finish_dependency_timer =
670
10.2k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
10.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
10.2k
    if constexpr (!is_fake_shared) {
673
10.2k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
10.2k
            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.2k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
10.2k
            _shared_state = info.shared_state->template cast<SharedState>();
689
10.2k
            _dependency = _shared_state->create_sink_dependency(
690
10.2k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
10.2k
        }
692
10.2k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
10.2k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
10.2k
    }
695
696
10.2k
    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.2k
    _rows_input_counter =
701
10.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
10.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
10.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
10.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
10.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
10.2k
    _memory_used_counter =
707
10.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
10.2k
    _common_profile->add_info_string("IsColocate",
709
10.2k
                                     std::to_string(_parent->is_colocated_operator()));
710
10.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
10.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
10.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
10.2k
    return Status::OK();
714
10.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.84k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.84k
    _operator_profile =
657
7.84k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.84k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.84k
    _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.84k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.84k
    _operator_profile->add_child(_common_profile, true);
666
7.84k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.84k
    _operator_profile->set_metadata(_parent->node_id());
669
7.84k
    _wait_for_finish_dependency_timer =
670
7.84k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.84k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.84k
    if constexpr (!is_fake_shared) {
673
7.84k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.84k
            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.84k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.84k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.84k
            _dependency = _shared_state->create_sink_dependency(
690
7.84k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.84k
        }
692
7.84k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.84k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.84k
    }
695
696
7.84k
    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.84k
    _rows_input_counter =
701
7.84k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.84k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.84k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.84k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.84k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.84k
    _memory_used_counter =
707
7.84k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.84k
    _common_profile->add_info_string("IsColocate",
709
7.84k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.84k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.84k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.84k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.84k
    return Status::OK();
714
7.84k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
160k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
160k
    _operator_profile =
657
160k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
160k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
160k
    _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
160k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
160k
    _operator_profile->add_child(_common_profile, true);
666
160k
    _operator_profile->add_child(_custom_profile, true);
667
668
160k
    _operator_profile->set_metadata(_parent->node_id());
669
160k
    _wait_for_finish_dependency_timer =
670
160k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
160k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
160k
    if constexpr (!is_fake_shared) {
673
160k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
160k
            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
160k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
160k
            _shared_state = info.shared_state->template cast<SharedState>();
689
160k
            _dependency = _shared_state->create_sink_dependency(
690
160k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
160k
        }
692
160k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
160k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
160k
    }
695
696
160k
    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
160k
    _rows_input_counter =
701
160k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
160k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
160k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
160k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
160k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
160k
    _memory_used_counter =
707
160k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
160k
    _common_profile->add_info_string("IsColocate",
709
160k
                                     std::to_string(_parent->is_colocated_operator()));
710
160k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
160k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
160k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
160k
    return Status::OK();
714
160k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
679
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
679
    _operator_profile =
657
679
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
679
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
679
    _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
679
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
679
    _operator_profile->add_child(_common_profile, true);
666
679
    _operator_profile->add_child(_custom_profile, true);
667
668
679
    _operator_profile->set_metadata(_parent->node_id());
669
679
    _wait_for_finish_dependency_timer =
670
679
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
679
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
679
    if constexpr (!is_fake_shared) {
673
679
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
680
            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
680
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
680
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
680
                                                  ? 0
681
680
                                                  : info.task_idx]
682
680
                                  .get();
683
680
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
18.4E
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
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
679
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
679
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
679
    }
695
696
680
    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
679
    _rows_input_counter =
701
679
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
679
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
679
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
679
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
679
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
679
    _memory_used_counter =
707
679
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
679
    _common_profile->add_info_string("IsColocate",
709
679
                                     std::to_string(_parent->is_colocated_operator()));
710
679
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
679
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
679
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
679
    return Status::OK();
714
679
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
160
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
160
    _operator_profile =
657
160
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
160
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
160
    _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
160
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
160
    _operator_profile->add_child(_common_profile, true);
666
160
    _operator_profile->add_child(_custom_profile, true);
667
668
160
    _operator_profile->set_metadata(_parent->node_id());
669
160
    _wait_for_finish_dependency_timer =
670
160
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
160
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
160
    if constexpr (!is_fake_shared) {
673
160
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
160
            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
160
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
160
            _shared_state = info.shared_state->template cast<SharedState>();
689
160
            _dependency = _shared_state->create_sink_dependency(
690
160
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
160
        }
692
160
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
160
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
160
    }
695
696
160
    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
160
    _rows_input_counter =
701
160
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
160
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
160
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
160
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
160
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
160
    _memory_used_counter =
707
160
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
160
    _common_profile->add_info_string("IsColocate",
709
160
                                     std::to_string(_parent->is_colocated_operator()));
710
160
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
160
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
160
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
160
    return Status::OK();
714
160
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
712k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
712k
    _operator_profile =
657
712k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
712k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
712k
    _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
712k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
712k
    _operator_profile->add_child(_common_profile, true);
666
712k
    _operator_profile->add_child(_custom_profile, true);
667
668
712k
    _operator_profile->set_metadata(_parent->node_id());
669
712k
    _wait_for_finish_dependency_timer =
670
712k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
712k
    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
712k
    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
712k
    _rows_input_counter =
701
712k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
712k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
712k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
712k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
712k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
712k
    _memory_used_counter =
707
712k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
712k
    _common_profile->add_info_string("IsColocate",
709
712k
                                     std::to_string(_parent->is_colocated_operator()));
710
712k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
712k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
712k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
712k
    return Status::OK();
714
712k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
5.83k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
5.83k
    _operator_profile =
657
5.83k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
5.83k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
5.83k
    _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
5.83k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
5.83k
    _operator_profile->add_child(_common_profile, true);
666
5.83k
    _operator_profile->add_child(_custom_profile, true);
667
668
5.83k
    _operator_profile->set_metadata(_parent->node_id());
669
5.83k
    _wait_for_finish_dependency_timer =
670
5.83k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
5.83k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
5.83k
    if constexpr (!is_fake_shared) {
673
5.83k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
5.83k
            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
5.83k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
5.83k
            _shared_state = info.shared_state->template cast<SharedState>();
689
5.83k
            _dependency = _shared_state->create_sink_dependency(
690
5.83k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
5.83k
        }
692
5.83k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
5.83k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
5.83k
    }
695
696
5.83k
    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
5.83k
    _rows_input_counter =
701
5.83k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
5.83k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
5.83k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
5.83k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
5.83k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
5.83k
    _memory_used_counter =
707
5.83k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
5.83k
    _common_profile->add_info_string("IsColocate",
709
5.83k
                                     std::to_string(_parent->is_colocated_operator()));
710
5.83k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
5.83k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
5.83k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
5.83k
    return Status::OK();
714
5.83k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
393
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
393
    _operator_profile =
657
393
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
393
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
393
    _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
393
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
393
    _operator_profile->add_child(_common_profile, true);
666
393
    _operator_profile->add_child(_custom_profile, true);
667
668
393
    _operator_profile->set_metadata(_parent->node_id());
669
393
    _wait_for_finish_dependency_timer =
670
393
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
393
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
393
    if constexpr (!is_fake_shared) {
673
393
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
393
            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
393
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
393
            _shared_state = info.shared_state->template cast<SharedState>();
689
393
            _dependency = _shared_state->create_sink_dependency(
690
393
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
393
        }
692
393
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
393
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
393
    }
695
696
393
    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
393
    _rows_input_counter =
701
393
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
393
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
393
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
393
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
393
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
393
    _memory_used_counter =
707
393
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
393
    _common_profile->add_info_string("IsColocate",
709
393
                                     std::to_string(_parent->is_colocated_operator()));
710
393
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
393
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
393
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
393
    return Status::OK();
714
393
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
4.05k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
4.05k
    _operator_profile =
657
4.05k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
4.05k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
4.05k
    _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.05k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
4.05k
    _operator_profile->add_child(_common_profile, true);
666
4.05k
    _operator_profile->add_child(_custom_profile, true);
667
668
4.05k
    _operator_profile->set_metadata(_parent->node_id());
669
4.05k
    _wait_for_finish_dependency_timer =
670
4.05k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
4.05k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
4.05k
    if constexpr (!is_fake_shared) {
673
4.05k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
4.05k
            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.05k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
4.05k
            _shared_state = info.shared_state->template cast<SharedState>();
689
4.05k
            _dependency = _shared_state->create_sink_dependency(
690
4.05k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
4.05k
        }
692
4.05k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
4.05k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
4.05k
    }
695
696
4.05k
    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.05k
    _rows_input_counter =
701
4.05k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
4.05k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
4.05k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
4.05k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
4.05k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
4.05k
    _memory_used_counter =
707
4.05k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
4.05k
    _common_profile->add_info_string("IsColocate",
709
4.05k
                                     std::to_string(_parent->is_colocated_operator()));
710
4.05k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
4.05k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
4.05k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
4.05k
    return Status::OK();
714
4.05k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.5k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.5k
    _operator_profile =
657
12.5k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.5k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.5k
    _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
12.5k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.5k
    _operator_profile->add_child(_common_profile, true);
666
12.5k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.5k
    _operator_profile->set_metadata(_parent->node_id());
669
12.5k
    _wait_for_finish_dependency_timer =
670
12.5k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.5k
    if constexpr (!is_fake_shared) {
673
12.5k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.5k
            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
12.5k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.5k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.5k
            _dependency = _shared_state->create_sink_dependency(
690
12.5k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.5k
        }
692
12.5k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.5k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.5k
    }
695
696
12.5k
    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
12.5k
    _rows_input_counter =
701
12.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.5k
    _memory_used_counter =
707
12.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.5k
    _common_profile->add_info_string("IsColocate",
709
12.5k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.5k
    return Status::OK();
714
12.5k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
343k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
343k
    _operator_profile =
657
343k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
343k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
343k
    _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
343k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
343k
    _operator_profile->add_child(_common_profile, true);
666
343k
    _operator_profile->add_child(_custom_profile, true);
667
668
343k
    _operator_profile->set_metadata(_parent->node_id());
669
343k
    _wait_for_finish_dependency_timer =
670
343k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
343k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
343k
    if constexpr (!is_fake_shared) {
673
343k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
343k
            info.shared_state_map.end()) {
675
343k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
343k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
343k
            }
678
343k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
343k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
343k
                                                  ? 0
681
343k
                                                  : info.task_idx]
682
343k
                                  .get();
683
343k
            _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
343k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
343k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
343k
    }
695
696
343k
    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
343k
    _rows_input_counter =
701
343k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
343k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
343k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
343k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
343k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
343k
    _memory_used_counter =
707
343k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
343k
    _common_profile->add_info_string("IsColocate",
709
343k
                                     std::to_string(_parent->is_colocated_operator()));
710
343k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
343k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
343k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
343k
    return Status::OK();
714
343k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
519k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
519k
    _operator_profile =
657
519k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
519k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
519k
    _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
519k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
519k
    _operator_profile->add_child(_common_profile, true);
666
519k
    _operator_profile->add_child(_custom_profile, true);
667
668
519k
    _operator_profile->set_metadata(_parent->node_id());
669
519k
    _wait_for_finish_dependency_timer =
670
519k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
519k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
519k
    if constexpr (!is_fake_shared) {
673
519k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
519k
            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
519k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
519k
            _shared_state = info.shared_state->template cast<SharedState>();
689
519k
            _dependency = _shared_state->create_sink_dependency(
690
519k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
519k
        }
692
519k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
519k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
519k
    }
695
696
519k
    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
519k
    _rows_input_counter =
701
519k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
519k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
519k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
519k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
519k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
519k
    _memory_used_counter =
707
519k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
519k
    _common_profile->add_info_string("IsColocate",
709
519k
                                     std::to_string(_parent->is_colocated_operator()));
710
519k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
519k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
519k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
519k
    return Status::OK();
714
519k
}
_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.16M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.16M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.16M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.45M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.45M
    }
724
2.16M
    _closed = true;
725
2.16M
    return Status::OK();
726
2.16M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
121k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
121k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
121k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
121k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
121k
    }
724
121k
    _closed = true;
725
121k
    return Status::OK();
726
121k
}
_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
262k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
262k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
262k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
262k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
262k
    }
724
262k
    _closed = true;
725
262k
    return Status::OK();
726
262k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
19
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
19
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
17
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
17
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
17
    }
724
17
    _closed = true;
725
17
    return Status::OK();
726
19
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
10.2k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
10.2k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
10.2k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
10.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
10.2k
    }
724
10.2k
    _closed = true;
725
10.2k
    return Status::OK();
726
10.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.86k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.86k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.86k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.86k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.86k
    }
724
7.86k
    _closed = true;
725
7.86k
    return Status::OK();
726
7.86k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
159k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
159k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
159k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
159k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
159k
    }
724
159k
    _closed = true;
725
159k
    return Status::OK();
726
159k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
676
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
676
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
676
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
676
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
676
    }
724
676
    _closed = true;
725
676
    return Status::OK();
726
676
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
149
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
149
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
149
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
149
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
149
    }
724
149
    _closed = true;
725
149
    return Status::OK();
726
149
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
713k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
713k
    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
713k
    _closed = true;
725
713k
    return Status::OK();
726
713k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
5.83k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
5.83k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
5.83k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
5.83k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
5.83k
    }
724
5.83k
    _closed = true;
725
5.83k
    return Status::OK();
726
5.83k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
288
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
288
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
288
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
288
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
288
    }
724
288
    _closed = true;
725
288
    return Status::OK();
726
288
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
4.05k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
4.05k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
4.05k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
4.05k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
4.05k
    }
724
4.05k
    _closed = true;
725
4.05k
    return Status::OK();
726
4.05k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.6k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.6k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.6k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.6k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.6k
    }
724
12.6k
    _closed = true;
725
12.6k
    return Status::OK();
726
12.6k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
344k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
344k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
344k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
344k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
344k
    }
724
344k
    _closed = true;
725
344k
    return Status::OK();
726
344k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
522k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
522k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
522k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
522k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
522k
    }
724
522k
    _closed = true;
725
522k
    return Status::OK();
726
522k
}
_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.5k
                                                          bool* eos) {
731
14.5k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.5k
    return pull(state, block, eos);
733
14.5k
}
_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.1k
                                                          bool* eos) {
731
14.1k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.1k
    return pull(state, block, eos);
733
14.1k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
732k
                                                         bool* eos) {
738
732k
    auto& local_state = get_local_state(state);
739
732k
    if (need_more_input_data(state)) {
740
704k
        local_state._child_block->clear_column_data(
741
704k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
704k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
704k
                state, local_state._child_block.get(), &local_state._child_eos));
744
704k
        *eos = local_state._child_eos;
745
704k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
71.6k
            return Status::OK();
747
71.6k
        }
748
633k
        {
749
633k
            SCOPED_TIMER(local_state.exec_time_counter());
750
633k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
633k
        }
752
633k
    }
753
754
661k
    if (!need_more_input_data(state)) {
755
606k
        SCOPED_TIMER(local_state.exec_time_counter());
756
606k
        bool new_eos = false;
757
606k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
606k
        if (new_eos) {
759
524k
            *eos = true;
760
524k
        } else if (!need_more_input_data(state)) {
761
21.6k
            *eos = false;
762
21.6k
        }
763
606k
    }
764
661k
    return Status::OK();
765
661k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
140k
                                                         bool* eos) {
738
140k
    auto& local_state = get_local_state(state);
739
140k
    if (need_more_input_data(state)) {
740
124k
        local_state._child_block->clear_column_data(
741
124k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
124k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
124k
                state, local_state._child_block.get(), &local_state._child_eos));
744
124k
        *eos = local_state._child_eos;
745
124k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
31.8k
            return Status::OK();
747
31.8k
        }
748
92.6k
        {
749
92.6k
            SCOPED_TIMER(local_state.exec_time_counter());
750
92.6k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
92.6k
        }
752
92.6k
    }
753
754
108k
    if (!need_more_input_data(state)) {
755
108k
        SCOPED_TIMER(local_state.exec_time_counter());
756
108k
        bool new_eos = false;
757
108k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
108k
        if (new_eos) {
759
49.4k
            *eos = true;
760
58.8k
        } else if (!need_more_input_data(state)) {
761
8.43k
            *eos = false;
762
8.43k
        }
763
108k
    }
764
108k
    return Status::OK();
765
108k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.22k
                                                         bool* eos) {
738
4.22k
    auto& local_state = get_local_state(state);
739
4.22k
    if (need_more_input_data(state)) {
740
2.43k
        local_state._child_block->clear_column_data(
741
2.43k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.43k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.43k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.43k
        *eos = local_state._child_eos;
745
2.43k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
536
            return Status::OK();
747
536
        }
748
1.89k
        {
749
1.89k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.89k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.89k
        }
752
1.89k
    }
753
754
3.69k
    if (!need_more_input_data(state)) {
755
3.69k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.69k
        bool new_eos = false;
757
3.69k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.69k
        if (new_eos) {
759
1.32k
            *eos = true;
760
2.37k
        } else if (!need_more_input_data(state)) {
761
1.79k
            *eos = false;
762
1.79k
        }
763
3.69k
    }
764
3.69k
    return Status::OK();
765
3.69k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.92k
                                                         bool* eos) {
738
4.92k
    auto& local_state = get_local_state(state);
739
4.92k
    if (need_more_input_data(state)) {
740
4.92k
        local_state._child_block->clear_column_data(
741
4.92k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.92k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.92k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.92k
        *eos = local_state._child_eos;
745
4.92k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.71k
            return Status::OK();
747
1.71k
        }
748
3.21k
        {
749
3.21k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.21k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.21k
        }
752
3.21k
    }
753
754
3.21k
    if (!need_more_input_data(state)) {
755
3.21k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.21k
        bool new_eos = false;
757
3.21k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.21k
        if (new_eos) {
759
1.73k
            *eos = true;
760
1.73k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.21k
    }
764
3.21k
    return Status::OK();
765
3.21k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
38.2k
                                                         bool* eos) {
738
38.2k
    auto& local_state = get_local_state(state);
739
38.2k
    if (need_more_input_data(state)) {
740
38.2k
        local_state._child_block->clear_column_data(
741
38.2k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
38.2k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
38.2k
                state, local_state._child_block.get(), &local_state._child_eos));
744
38.2k
        *eos = local_state._child_eos;
745
38.2k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
4.21k
            return Status::OK();
747
4.21k
        }
748
34.0k
        {
749
34.0k
            SCOPED_TIMER(local_state.exec_time_counter());
750
34.0k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
34.0k
        }
752
34.0k
    }
753
754
33.9k
    if (!need_more_input_data(state)) {
755
11.7k
        SCOPED_TIMER(local_state.exec_time_counter());
756
11.7k
        bool new_eos = false;
757
11.7k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
11.7k
        if (new_eos) {
759
11.5k
            *eos = true;
760
11.5k
        } else if (!need_more_input_data(state)) {
761
19
            *eos = false;
762
19
        }
763
11.7k
    }
764
33.9k
    return Status::OK();
765
33.9k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
509k
                                                         bool* eos) {
738
509k
    auto& local_state = get_local_state(state);
739
510k
    if (need_more_input_data(state)) {
740
510k
        local_state._child_block->clear_column_data(
741
510k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
510k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
510k
                state, local_state._child_block.get(), &local_state._child_eos));
744
510k
        *eos = local_state._child_eos;
745
510k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
30.3k
            return Status::OK();
747
30.3k
        }
748
480k
        {
749
480k
            SCOPED_TIMER(local_state.exec_time_counter());
750
480k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
480k
        }
752
480k
    }
753
754
479k
    if (!need_more_input_data(state)) {
755
447k
        SCOPED_TIMER(local_state.exec_time_counter());
756
447k
        bool new_eos = false;
757
447k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
447k
        if (new_eos) {
759
446k
            *eos = true;
760
446k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
447k
    }
764
479k
    return Status::OK();
765
479k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
29.3k
                                                         bool* eos) {
738
29.3k
    auto& local_state = get_local_state(state);
739
29.3k
    if (need_more_input_data(state)) {
740
18.3k
        local_state._child_block->clear_column_data(
741
18.3k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
18.3k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
18.3k
                state, local_state._child_block.get(), &local_state._child_eos));
744
18.3k
        *eos = local_state._child_eos;
745
18.3k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.58k
            return Status::OK();
747
2.58k
        }
748
15.7k
        {
749
15.7k
            SCOPED_TIMER(local_state.exec_time_counter());
750
15.7k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
15.7k
        }
752
15.7k
    }
753
754
26.7k
    if (!need_more_input_data(state)) {
755
26.2k
        SCOPED_TIMER(local_state.exec_time_counter());
756
26.2k
        bool new_eos = false;
757
26.2k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
26.2k
        if (new_eos) {
759
10.2k
            *eos = true;
760
15.9k
        } else if (!need_more_input_data(state)) {
761
11.0k
            *eos = false;
762
11.0k
        }
763
26.2k
    }
764
26.7k
    return Status::OK();
765
26.7k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
6.25k
                                                         bool* eos) {
738
6.25k
    auto& local_state = get_local_state(state);
739
6.25k
    if (need_more_input_data(state)) {
740
5.88k
        local_state._child_block->clear_column_data(
741
5.88k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
5.88k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
5.88k
                state, local_state._child_block.get(), &local_state._child_eos));
744
5.88k
        *eos = local_state._child_eos;
745
5.88k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
413
            return Status::OK();
747
413
        }
748
5.47k
        {
749
5.47k
            SCOPED_TIMER(local_state.exec_time_counter());
750
5.47k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
5.47k
        }
752
5.47k
    }
753
754
5.83k
    if (!need_more_input_data(state)) {
755
5.83k
        SCOPED_TIMER(local_state.exec_time_counter());
756
5.83k
        bool new_eos = false;
757
5.83k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
5.83k
        if (new_eos) {
759
3.79k
            *eos = true;
760
3.79k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
5.83k
    }
764
5.83k
    return Status::OK();
765
5.83k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
68.1k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
68.1k
    RETURN_IF_ERROR(Base::init(state, info));
771
68.1k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
68.1k
                                                         "AsyncWriterDependency", true);
773
68.1k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
68.1k
                             _finish_dependency));
775
776
68.1k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
68.1k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
68.1k
    return Status::OK();
779
68.1k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
517
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
517
    RETURN_IF_ERROR(Base::init(state, info));
771
517
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
517
                                                         "AsyncWriterDependency", true);
773
517
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
517
                             _finish_dependency));
775
776
517
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
517
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
517
    return Status::OK();
779
517
}
_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
46.6k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
46.6k
    RETURN_IF_ERROR(Base::init(state, info));
771
46.6k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
46.6k
                                                         "AsyncWriterDependency", true);
773
46.6k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
46.6k
                             _finish_dependency));
775
776
46.6k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
46.6k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
46.6k
    return Status::OK();
779
46.6k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.66k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.66k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.66k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.66k
                                                         "AsyncWriterDependency", true);
773
9.66k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.66k
                             _finish_dependency));
775
776
9.66k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.66k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.66k
    return Status::OK();
779
9.66k
}
_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
3.73k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.73k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.73k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.73k
                                                         "AsyncWriterDependency", true);
773
3.73k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.73k
                             _finish_dependency));
775
776
3.73k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.73k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.73k
    return Status::OK();
779
3.73k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
32
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
32
    RETURN_IF_ERROR(Base::init(state, info));
771
32
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
32
                                                         "AsyncWriterDependency", true);
773
32
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
32
                             _finish_dependency));
775
776
32
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
32
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
32
    return Status::OK();
779
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
656
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
656
    RETURN_IF_ERROR(Base::init(state, info));
771
656
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
656
                                                         "AsyncWriterDependency", true);
773
656
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
656
                             _finish_dependency));
775
776
656
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
656
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
656
    return Status::OK();
779
656
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
1.50k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
1.50k
    RETURN_IF_ERROR(Base::init(state, info));
771
1.50k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
1.50k
                                                         "AsyncWriterDependency", true);
773
1.50k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
1.50k
                             _finish_dependency));
775
776
1.50k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
1.50k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
1.50k
    return Status::OK();
779
1.50k
}
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
68.2k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
68.2k
    RETURN_IF_ERROR(Base::open(state));
785
68.2k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
588k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
520k
        RETURN_IF_ERROR(
788
520k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
520k
    }
790
68.2k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
68.2k
    return Status::OK();
792
68.2k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
516
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
516
    RETURN_IF_ERROR(Base::open(state));
785
516
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.77k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
2.26k
        RETURN_IF_ERROR(
788
2.26k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
2.26k
    }
790
516
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
516
    return Status::OK();
792
516
}
_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
46.9k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
46.9k
    RETURN_IF_ERROR(Base::open(state));
785
46.9k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
334k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
287k
        RETURN_IF_ERROR(
788
287k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
287k
    }
790
46.9k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
46.9k
    return Status::OK();
792
46.9k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.38k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.38k
    RETURN_IF_ERROR(Base::open(state));
785
9.38k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
57.8k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
48.4k
        RETURN_IF_ERROR(
788
48.4k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
48.4k
    }
790
9.38k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.38k
    return Status::OK();
792
9.38k
}
_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.72k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.72k
    RETURN_IF_ERROR(Base::open(state));
785
3.72k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
43.3k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
39.6k
        RETURN_IF_ERROR(
788
39.6k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
39.6k
    }
790
3.72k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.72k
    return Status::OK();
792
3.72k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
32
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
32
    RETURN_IF_ERROR(Base::open(state));
785
32
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
126
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
94
        RETURN_IF_ERROR(
788
94
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
94
    }
790
32
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
32
    return Status::OK();
792
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
656
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
656
    RETURN_IF_ERROR(Base::open(state));
785
656
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
1.95k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
1.30k
        RETURN_IF_ERROR(
788
1.30k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
1.30k
    }
790
656
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
656
    return Status::OK();
792
656
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
1.50k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
1.50k
    RETURN_IF_ERROR(Base::open(state));
785
1.50k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
11.7k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
10.2k
        RETURN_IF_ERROR(
788
10.2k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
10.2k
    }
790
1.50k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
1.50k
    return Status::OK();
792
1.50k
}
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
93.6k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
93.6k
    return _writer->sink(block, eos);
798
93.6k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.42k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.42k
    return _writer->sink(block, eos);
798
2.42k
}
_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
63.5k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
63.5k
    return _writer->sink(block, eos);
798
63.5k
}
_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
5.98k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.98k
    return _writer->sink(block, eos);
798
5.98k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
40
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
40
    return _writer->sink(block, eos);
798
40
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
738
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
738
    return _writer->sink(block, eos);
798
738
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
1.89k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
1.89k
    return _writer->sink(block, eos);
798
1.89k
}
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
68.4k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
68.4k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
68.4k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
68.4k
    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
68.5k
    if (_writer) {
810
68.5k
        Status st = _writer->get_writer_status();
811
68.5k
        if (exec_status.ok()) {
812
68.3k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
68.3k
                                                       : Status::Cancelled("force close"));
814
68.3k
        } else {
815
183
            _writer->force_close(exec_status);
816
183
        }
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
68.5k
        RETURN_IF_ERROR(st);
821
68.5k
    }
822
68.3k
    return Base::close(state, exec_status);
823
68.4k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
505
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
505
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
505
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
505
    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
505
    if (_writer) {
810
505
        Status st = _writer->get_writer_status();
811
505
        if (exec_status.ok()) {
812
505
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
505
                                                       : Status::Cancelled("force close"));
814
505
        } 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
505
        RETURN_IF_ERROR(st);
821
505
    }
822
505
    return Base::close(state, exec_status);
823
505
}
_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
47.0k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
47.0k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
47.0k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
47.0k
    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
47.0k
    if (_writer) {
810
47.0k
        Status st = _writer->get_writer_status();
811
47.0k
        if (exec_status.ok()) {
812
47.0k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
47.0k
                                                       : Status::Cancelled("force close"));
814
47.0k
        } else {
815
43
            _writer->force_close(exec_status);
816
43
        }
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
47.0k
        RETURN_IF_ERROR(st);
821
47.0k
    }
822
46.9k
    return Base::close(state, exec_status);
823
47.0k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.60k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.60k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.60k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.60k
    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.65k
    if (_writer) {
810
9.65k
        Status st = _writer->get_writer_status();
811
9.65k
        if (exec_status.ok()) {
812
9.52k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.52k
                                                       : Status::Cancelled("force close"));
814
9.52k
        } else {
815
132
            _writer->force_close(exec_status);
816
132
        }
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.65k
        RETURN_IF_ERROR(st);
821
9.65k
    }
822
9.60k
    return Base::close(state, exec_status);
823
9.60k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.16k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.16k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.16k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.16k
    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.16k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
5.16k
                                                       : Status::Cancelled("force close"));
814
5.16k
        } else {
815
8
            _writer->force_close(exec_status);
816
8
        }
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.16k
    return Base::close(state, exec_status);
823
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.73k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.73k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.73k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.73k
    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
3.74k
    if (_writer) {
810
3.74k
        Status st = _writer->get_writer_status();
811
3.74k
        if (exec_status.ok()) {
812
3.74k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.74k
                                                       : Status::Cancelled("force close"));
814
3.74k
        } 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
3.74k
        RETURN_IF_ERROR(st);
821
3.74k
    }
822
3.73k
    return Base::close(state, exec_status);
823
3.73k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
32
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
32
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
32
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
32
    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
32
    if (_writer) {
810
32
        Status st = _writer->get_writer_status();
811
32
        if (exec_status.ok()) {
812
32
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
32
                                                       : Status::Cancelled("force close"));
814
32
        } 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
32
        RETURN_IF_ERROR(st);
821
32
    }
822
32
    return Base::close(state, exec_status);
823
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
656
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
656
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
656
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
656
    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
656
    if (_writer) {
810
656
        Status st = _writer->get_writer_status();
811
656
        if (exec_status.ok()) {
812
656
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
656
                                                       : Status::Cancelled("force close"));
814
656
        } 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
656
        RETURN_IF_ERROR(st);
821
656
    }
822
656
    return Base::close(state, exec_status);
823
656
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
1.50k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
1.50k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
1.50k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
1.50k
    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.50k
    if (_writer) {
810
1.50k
        Status st = _writer->get_writer_status();
811
1.50k
        if (exec_status.ok()) {
812
1.50k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
1.50k
                                                       : Status::Cancelled("force close"));
814
1.50k
        } 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.50k
        RETURN_IF_ERROR(st);
821
1.50k
    }
822
1.50k
    return Base::close(state, exec_status);
823
1.50k
}
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