Coverage Report

Created: 2026-07-12 20:33

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.16M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.16M
    if (_parent->nereids_id() == -1) {
122
1.14M
        return fmt::format("(id={})", _parent->node_id());
123
1.14M
    } else {
124
1.02M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.02M
    }
126
2.16M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
70.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
70.9k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
70.9k
    } else {
124
70.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
70.9k
    }
126
70.9k
}
_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
272k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
272k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
272k
    } else {
124
272k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
272k
    }
126
272k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
30
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
30
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
30
    } else {
124
30
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
30
    }
126
30
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
9.95k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
9.95k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
9.95k
    } else {
124
9.95k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
9.95k
    }
126
9.95k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
8.71k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
8.71k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
8.70k
    } else {
124
8.70k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
8.70k
    }
126
8.71k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
152k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
152k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
152k
    } else {
124
152k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
152k
    }
126
152k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
601
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
601
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
601
    } else {
124
601
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
601
    }
126
601
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
292
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
292
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
292
    } else {
124
292
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
292
    }
126
292
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
834k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
834k
    if (_parent->nereids_id() == -1) {
122
384k
        return fmt::format("(id={})", _parent->node_id());
123
449k
    } else {
124
449k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
449k
    }
126
834k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
55.8k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
55.8k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
55.8k
    } else {
124
55.8k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
55.8k
    }
126
55.8k
}
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
17
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
17
    if (_parent->nereids_id() == -1) {
122
17
        return fmt::format("(id={})", _parent->node_id());
123
17
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
17
}
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.0k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.0k
    if (_parent->nereids_id() == -1) {
122
11.0k
        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
11.0k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
711
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
711
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
609
    } else {
124
609
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
609
    }
126
711
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
4.99k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
4.99k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
4.98k
    } else {
124
4.98k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
4.98k
    }
126
4.99k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
745k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
745k
    if (_parent->nereids_id() == -1) {
122
744k
        return fmt::format("(id={})", _parent->node_id());
123
744k
    } else {
124
1.14k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.14k
    }
126
745k
}
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.36M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.36M
    if (_parent->nereids_id() == -1) {
131
790k
        return fmt::format("(id={})", _parent->node_id());
132
790k
    } else {
133
576k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
576k
    }
135
1.36M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
119k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
119k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
119k
    } else {
133
119k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
119k
    }
135
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
2
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
2
    if (_parent->nereids_id() == -1) {
131
1
        return fmt::format("(id={})", _parent->node_id());
132
1
    } else {
133
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
1
    }
135
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
276k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
276k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
276k
    } else {
133
276k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
276k
    }
135
276k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
39
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
39
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
39
    } else {
133
39
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
39
    }
135
39
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
9.98k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
9.98k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
9.98k
    } else {
133
9.98k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
9.98k
    }
135
9.98k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
8.80k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
8.80k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
8.79k
    } else {
133
8.79k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
8.79k
    }
135
8.80k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
153k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
153k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
153k
    } else {
133
153k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
153k
    }
135
153k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
595
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
595
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
595
    } else {
133
595
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
595
    }
135
595
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
299
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
299
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
299
    } else {
133
299
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
299
    }
135
299
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
86
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
86
    if (_parent->nereids_id() == -1) {
131
86
        return fmt::format("(id={})", _parent->node_id());
132
86
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
86
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
5.96k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
5.96k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
5.95k
    } else {
133
5.95k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
5.95k
    }
135
5.96k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
709
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
709
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
607
    } else {
133
607
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
607
    }
135
709
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.1k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.2k
    if (_parent->nereids_id() == -1) {
131
12.2k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
12.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
281k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
281k
    if (_parent->nereids_id() == -1) {
131
281k
        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
281k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
497k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
497k
    if (_parent->nereids_id() == -1) {
131
496k
        return fmt::format("(id={})", _parent->node_id());
132
496k
    } else {
133
878
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
878
    }
135
497k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
17
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
17
    if (_parent->nereids_id() == -1) {
131
17
        return fmt::format("(id={})", _parent->node_id());
132
17
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
17
}
_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
28.3k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
28.3k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
28.3k
    _terminated = true;
143
28.3k
    return Status::OK();
144
28.3k
}
_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
509
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
509
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
509
    _terminated = true;
143
509
    return Status::OK();
144
509
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
6
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
6
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
6
    _terminated = true;
143
6
    return Status::OK();
144
6
}
_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.07k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.07k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.07k
    _terminated = true;
143
2.07k
    return Status::OK();
144
2.07k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
893
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
893
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
892
    _terminated = true;
143
892
    return Status::OK();
144
893
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
11
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
11
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
11
    _terminated = true;
143
11
    return Status::OK();
144
11
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2
    _terminated = true;
143
2
    return Status::OK();
144
2
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
504
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
504
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
504
    _terminated = true;
143
504
    return Status::OK();
144
504
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
183
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
183
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
183
    _terminated = true;
143
183
    return Status::OK();
144
183
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
142
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
142
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
142
    _terminated = true;
143
142
    return Status::OK();
144
142
}
145
146
427k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
427k
    return _child && _child->is_serial_operator() && !is_source()
148
427k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
427k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
427k
}
151
152
29.8k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
29.8k
    if (!_child) {
154
24.2k
        return false;
155
24.2k
    }
156
5.60k
    if (_child->is_serial_operator()) {
157
220
        return true;
158
220
    }
159
5.38k
    const auto child_distribution = _child->required_data_distribution(state);
160
5.38k
    return child_distribution.need_local_exchange() &&
161
5.38k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.60k
}
163
164
82.4k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.4k
    return _child->row_desc();
166
82.4k
}
167
168
template <typename SharedStateArg>
169
20.6k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.6k
    fmt::memory_buffer debug_string_buffer;
171
20.6k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.6k
    return fmt::to_string(debug_string_buffer);
173
20.6k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
64
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
64
    fmt::memory_buffer debug_string_buffer;
171
64
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
64
    return fmt::to_string(debug_string_buffer);
173
64
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
3
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
3
    fmt::memory_buffer debug_string_buffer;
171
3
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
3
    return fmt::to_string(debug_string_buffer);
173
3
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
20.5k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.5k
    fmt::memory_buffer debug_string_buffer;
171
20.5k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.5k
    return fmt::to_string(debug_string_buffer);
173
20.5k
}
_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
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_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
20.5k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.5k
    fmt::memory_buffer debug_string_buffer;
178
20.5k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.5k
    return fmt::to_string(debug_string_buffer);
180
20.5k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16
    fmt::memory_buffer debug_string_buffer;
178
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16
    return fmt::to_string(debug_string_buffer);
180
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
68
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
68
    fmt::memory_buffer debug_string_buffer;
178
68
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
68
    return fmt::to_string(debug_string_buffer);
180
68
}
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
32
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
32
    fmt::memory_buffer debug_string_buffer;
178
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
32
    return fmt::to_string(debug_string_buffer);
180
32
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
20.4k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.4k
    fmt::memory_buffer debug_string_buffer;
178
20.4k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.4k
    return fmt::to_string(debug_string_buffer);
180
20.4k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
20.6k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
20.6k
    fmt::memory_buffer debug_string_buffer;
184
20.6k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
20.6k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
20.6k
                   _is_serial_operator);
187
20.6k
    return fmt::to_string(debug_string_buffer);
188
20.6k
}
189
190
20.6k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
20.6k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
20.6k
}
193
194
837k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
837k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
837k
    _nereids_id = tnode.nereids_id;
197
837k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.08k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.08k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.08k
            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.08k
    }
210
837k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
837k
    _op_name = substr + "_OPERATOR";
212
213
837k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
837k
    } else if (tnode.__isset.conjuncts) {
216
456k
        for (const auto& conjunct : tnode.conjuncts) {
217
456k
            VExprContextSPtr context;
218
456k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
456k
            _conjuncts.emplace_back(context);
220
456k
        }
221
148k
    }
222
223
    // create the projections expr
224
837k
    if (tnode.__isset.projections) {
225
324k
        DCHECK(tnode.__isset.output_tuple_id);
226
324k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
324k
    }
228
837k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.08k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.08k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.39k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.39k
            VExprContextSPtrs projections;
233
8.39k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.39k
            _intermediate_projections.push_back(projections);
235
8.39k
        }
236
4.08k
    }
237
837k
    return Status::OK();
238
837k
}
239
240
870k
Status OperatorXBase::prepare(RuntimeState* state) {
241
870k
    for (auto& conjunct : _conjuncts) {
242
456k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
456k
    }
244
870k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
817k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
604k
            return a->execute_cost() < b->execute_cost();
247
604k
        });
248
817k
    };
249
250
879k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.39k
        RETURN_IF_ERROR(
252
8.39k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.39k
    }
254
870k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
870k
    if (has_output_row_desc()) {
257
324k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
324k
    }
259
260
870k
    for (auto& conjunct : _conjuncts) {
261
456k
        RETURN_IF_ERROR(conjunct->open(state));
262
456k
    }
263
870k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
870k
    for (auto& projections : _intermediate_projections) {
265
8.39k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.39k
    }
267
870k
    if (_child && !is_source()) {
268
133k
        RETURN_IF_ERROR(_child->prepare(state));
269
133k
    }
270
271
870k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
870k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
870k
    return Status::OK();
277
870k
}
278
279
5.35k
Status OperatorXBase::terminate(RuntimeState* state) {
280
5.35k
    if (_child && !is_source()) {
281
967
        RETURN_IF_ERROR(_child->terminate(state));
282
967
    }
283
5.35k
    auto result = state->get_local_state_result(operator_id());
284
5.35k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
5.35k
    return result.value()->terminate(state);
288
5.35k
}
289
290
6.05M
Status OperatorXBase::close(RuntimeState* state) {
291
6.05M
    if (_child && !is_source()) {
292
1.05M
        RETURN_IF_ERROR(_child->close(state));
293
1.05M
    }
294
6.05M
    auto result = state->get_local_state_result(operator_id());
295
6.05M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.05M
    return result.value()->close(state);
299
6.05M
}
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
591k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
591k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
591k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
591k
    return Status::OK();
310
591k
}
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
155k
        return Status::OK();
325
155k
    }
326
142k
    Block input_block = *origin_block;
327
328
142k
    size_t bytes_usage = 0;
329
142k
    ColumnsWithTypeAndName new_columns;
330
142k
    for (const auto& projections : local_state->_intermediate_projections) {
331
1.68k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.68k
        new_columns.resize(projections.size());
336
11.4k
        for (int i = 0; i < projections.size(); i++) {
337
9.80k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
9.80k
            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
9.80k
        }
346
1.68k
        Block tmp_block {new_columns};
347
1.68k
        bytes_usage += tmp_block.allocated_bytes();
348
1.68k
        input_block.swap(tmp_block);
349
1.68k
    }
350
351
142k
    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
676k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
676k
        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
676k
        } else {
368
676k
            if (_keep_origin || !from->is_exclusive()) {
369
676k
                to->insert_range_from(*from, 0, rows);
370
676k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
676k
        }
375
676k
    };
376
377
142k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
142k
            output_block, *_output_row_descriptor);
379
142k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
142k
    auto& mutable_columns = mutable_block.mutable_columns();
381
142k
    if (rows != 0) {
382
142k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
818k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
676k
            ColumnPtr column_ptr;
385
676k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
676k
            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
676k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
676k
            bytes_usage += column_ptr->allocated_bytes();
394
676k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
676k
        }
396
142k
        DCHECK(mutable_block.rows() == rows);
397
142k
    }
398
142k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
142k
    return Status::OK();
401
142k
}
402
403
4.76M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.76M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.76M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.76M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.76M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.76M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.76M
            if (_debug_point_count++ % 2 == 0) {
410
4.76M
                return Status::OK();
411
4.76M
            }
412
4.76M
        }
413
4.76M
    });
414
415
4.76M
    Status status;
416
4.76M
    auto* local_state = state->get_local_state(operator_id());
417
4.77M
    Defer defer([&]() {
418
4.77M
        if (status.ok()) {
419
4.77M
            local_state->update_output_block_counters(*block);
420
4.77M
        }
421
4.77M
    });
422
4.76M
    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
19
            return status;
427
19
        }
428
297k
        status = do_projections(state, &local_state->_origin_block, block);
429
297k
        return status;
430
297k
    }
431
4.47M
    status = get_block(state, block, eos);
432
4.47M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.47M
    return status;
434
4.47M
}
435
436
3.23M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.23M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
6.77k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
6.77k
        *eos = true;
440
6.77k
    }
441
442
3.23M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.23M
        auto op_name = to_lower(_parent->_op_name);
444
3.23M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.23M
        arg_op_name = to_lower(arg_op_name);
446
447
3.23M
        if (op_name == arg_op_name) {
448
3.23M
            *eos = true;
449
3.23M
        }
450
3.23M
    });
451
452
3.23M
    if (auto rows = block->rows()) {
453
926k
        _num_rows_returned += rows;
454
926k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
926k
    }
456
3.23M
}
457
458
28.3k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
28.3k
    auto result = state->get_sink_local_state_result();
460
28.3k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
28.3k
    return result.value()->terminate(state);
464
28.3k
}
465
466
20.5k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
20.5k
    fmt::memory_buffer debug_string_buffer;
468
469
20.5k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
20.5k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
20.5k
    return fmt::to_string(debug_string_buffer);
472
20.5k
}
473
474
20.5k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
20.5k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
20.5k
}
477
478
464k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
464k
    std::string op_name = "UNKNOWN_SINK";
480
464k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
464k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
464k
        op_name = it->second;
484
464k
    }
485
464k
    _name = op_name + "_OPERATOR";
486
464k
    return Status::OK();
487
464k
}
488
489
318k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
318k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
318k
    _nereids_id = tnode.nereids_id;
492
318k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
318k
    _name = substr + "_SINK_OPERATOR";
494
318k
    return Status::OK();
495
318k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.07M
                                                            LocalSinkStateInfo& info) {
500
2.07M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.07M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.07M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.07M
    return Status::OK();
504
2.07M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
119k
                                                            LocalSinkStateInfo& info) {
500
119k
    auto local_state = LocalStateType::create_unique(this, state);
501
119k
    RETURN_IF_ERROR(local_state->init(state, info));
502
119k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
119k
    return Status::OK();
504
119k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
432k
                                                            LocalSinkStateInfo& info) {
500
432k
    auto local_state = LocalStateType::create_unique(this, state);
501
432k
    RETURN_IF_ERROR(local_state->init(state, info));
502
432k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
432k
    return Status::OK();
504
432k
}
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
88
                                                            LocalSinkStateInfo& info) {
500
88
    auto local_state = LocalStateType::create_unique(this, state);
501
88
    RETURN_IF_ERROR(local_state->init(state, info));
502
88
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
88
    return Status::OK();
504
88
}
_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
518
                                                            LocalSinkStateInfo& info) {
500
518
    auto local_state = LocalStateType::create_unique(this, state);
501
518
    RETURN_IF_ERROR(local_state->init(state, info));
502
518
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
518
    return Status::OK();
504
518
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
46.9k
                                                            LocalSinkStateInfo& info) {
500
46.9k
    auto local_state = LocalStateType::create_unique(this, state);
501
46.9k
    RETURN_IF_ERROR(local_state->init(state, info));
502
46.9k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
46.9k
    return Status::OK();
504
46.9k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.50k
                                                            LocalSinkStateInfo& info) {
500
9.50k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.50k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.50k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.50k
    return Status::OK();
504
9.50k
}
_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.40k
                                                            LocalSinkStateInfo& info) {
500
3.40k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.40k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.40k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.40k
    return Status::OK();
504
3.40k
}
_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
176
                                                            LocalSinkStateInfo& info) {
500
176
    auto local_state = LocalStateType::create_unique(this, state);
501
176
    RETURN_IF_ERROR(local_state->init(state, info));
502
176
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
176
    return Status::OK();
504
176
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
640
                                                            LocalSinkStateInfo& info) {
500
640
    auto local_state = LocalStateType::create_unique(this, state);
501
640
    RETURN_IF_ERROR(local_state->init(state, info));
502
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
640
    return Status::OK();
504
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
8.79k
                                                            LocalSinkStateInfo& info) {
500
8.79k
    auto local_state = LocalStateType::create_unique(this, state);
501
8.79k
    RETURN_IF_ERROR(local_state->init(state, info));
502
8.79k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
8.79k
    return Status::OK();
504
8.79k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
83
                                                            LocalSinkStateInfo& info) {
500
83
    auto local_state = LocalStateType::create_unique(this, state);
501
83
    RETURN_IF_ERROR(local_state->init(state, info));
502
83
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
83
    return Status::OK();
504
83
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
277k
                                                            LocalSinkStateInfo& info) {
500
277k
    auto local_state = LocalStateType::create_unique(this, state);
501
277k
    RETURN_IF_ERROR(local_state->init(state, info));
502
277k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
277k
    return Status::OK();
504
277k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
40
                                                            LocalSinkStateInfo& info) {
500
40
    auto local_state = LocalStateType::create_unique(this, state);
501
40
    RETURN_IF_ERROR(local_state->init(state, info));
502
40
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
40
    return Status::OK();
504
40
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
281k
                                                            LocalSinkStateInfo& info) {
500
281k
    auto local_state = LocalStateType::create_unique(this, state);
501
281k
    RETURN_IF_ERROR(local_state->init(state, info));
502
281k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
281k
    return Status::OK();
504
281k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
153k
                                                            LocalSinkStateInfo& info) {
500
153k
    auto local_state = LocalStateType::create_unique(this, state);
501
153k
    RETURN_IF_ERROR(local_state->init(state, info));
502
153k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
153k
    return Status::OK();
504
153k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
598
                                                            LocalSinkStateInfo& info) {
500
598
    auto local_state = LocalStateType::create_unique(this, state);
501
598
    RETURN_IF_ERROR(local_state->init(state, info));
502
598
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
598
    return Status::OK();
504
598
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
302
                                                            LocalSinkStateInfo& info) {
500
302
    auto local_state = LocalStateType::create_unique(this, state);
501
302
    RETURN_IF_ERROR(local_state->init(state, info));
502
302
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
302
    return Status::OK();
504
302
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
702k
                                                            LocalSinkStateInfo& info) {
500
702k
    auto local_state = LocalStateType::create_unique(this, state);
501
702k
    RETURN_IF_ERROR(local_state->init(state, info));
502
702k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
702k
    return Status::OK();
504
702k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.98k
                                                            LocalSinkStateInfo& info) {
500
9.98k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.98k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.98k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.98k
    return Status::OK();
504
9.98k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.96k
                                                            LocalSinkStateInfo& info) {
500
5.96k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.96k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.96k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.96k
    return Status::OK();
504
5.96k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.89k
                                                            LocalSinkStateInfo& info) {
500
3.89k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.89k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.89k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.89k
    return Status::OK();
504
3.89k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
608
                                                            LocalSinkStateInfo& info) {
500
608
    auto local_state = LocalStateType::create_unique(this, state);
501
608
    RETURN_IF_ERROR(local_state->init(state, info));
502
608
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
608
    return Status::OK();
504
608
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.68k
                                                            LocalSinkStateInfo& info) {
500
4.68k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.68k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.68k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.68k
    return Status::OK();
504
4.68k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.52k
                                                            LocalSinkStateInfo& info) {
500
2.52k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.52k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.52k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.52k
    return Status::OK();
504
2.52k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_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_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.44k
                                                            LocalSinkStateInfo& info) {
500
2.44k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.44k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.44k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.44k
    return Status::OK();
504
2.44k
}
_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
565
                                                            LocalSinkStateInfo& info) {
500
565
    auto local_state = LocalStateType::create_unique(this, state);
501
565
    RETURN_IF_ERROR(local_state->init(state, info));
502
565
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
565
    return Status::OK();
504
565
}
_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
104
                                                            LocalSinkStateInfo& info) {
500
104
    auto local_state = LocalStateType::create_unique(this, state);
501
104
    RETURN_IF_ERROR(local_state->init(state, info));
502
104
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
104
    return Status::OK();
504
104
}
_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.76M
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.76M
    } else {
515
1.76M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.76M
        ss->id = operator_id();
517
1.76M
        for (auto& dest : dests_id()) {
518
1.75M
            ss->related_op_ids.insert(dest);
519
1.75M
        }
520
1.76M
        return ss;
521
1.76M
    }
522
1.76M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
103k
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
103k
    } else {
515
103k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
103k
        ss->id = operator_id();
517
103k
        for (auto& dest : dests_id()) {
518
102k
            ss->related_op_ids.insert(dest);
519
102k
        }
520
103k
        return ss;
521
103k
    }
522
103k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
431k
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
431k
    } else {
515
431k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
431k
        ss->id = operator_id();
517
431k
        for (auto& dest : dests_id()) {
518
431k
            ss->related_op_ids.insert(dest);
519
431k
        }
520
431k
        return ss;
521
431k
    }
522
431k
}
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
88
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
88
    } else {
515
88
        auto ss = LocalStateType::SharedStateType::create_shared();
516
88
        ss->id = operator_id();
517
88
        for (auto& dest : dests_id()) {
518
88
            ss->related_op_ids.insert(dest);
519
88
        }
520
88
        return ss;
521
88
    }
522
88
}
_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
519
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
519
    } else {
515
519
        auto ss = LocalStateType::SharedStateType::create_shared();
516
519
        ss->id = operator_id();
517
519
        for (auto& dest : dests_id()) {
518
518
            ss->related_op_ids.insert(dest);
519
518
        }
520
519
        return ss;
521
519
    }
522
519
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
46.9k
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.9k
    } else {
515
46.9k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
46.9k
        ss->id = operator_id();
517
46.9k
        for (auto& dest : dests_id()) {
518
46.7k
            ss->related_op_ids.insert(dest);
519
46.7k
        }
520
46.9k
        return ss;
521
46.9k
    }
522
46.9k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.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
9.50k
    } else {
515
9.50k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.50k
        ss->id = operator_id();
517
9.50k
        for (auto& dest : dests_id()) {
518
9.50k
            ss->related_op_ids.insert(dest);
519
9.50k
        }
520
9.50k
        return ss;
521
9.50k
    }
522
9.50k
}
_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.40k
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.40k
    } else {
515
3.40k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.40k
        ss->id = operator_id();
517
3.40k
        for (auto& dest : dests_id()) {
518
3.40k
            ss->related_op_ids.insert(dest);
519
3.40k
        }
520
3.40k
        return ss;
521
3.40k
    }
522
3.40k
}
_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
176
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
176
    } else {
515
176
        auto ss = LocalStateType::SharedStateType::create_shared();
516
176
        ss->id = operator_id();
517
176
        for (auto& dest : dests_id()) {
518
176
            ss->related_op_ids.insert(dest);
519
176
        }
520
176
        return ss;
521
176
    }
522
176
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
640
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
640
    } else {
515
640
        auto ss = LocalStateType::SharedStateType::create_shared();
516
640
        ss->id = operator_id();
517
640
        for (auto& dest : dests_id()) {
518
640
            ss->related_op_ids.insert(dest);
519
640
        }
520
640
        return ss;
521
640
    }
522
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
8.81k
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
8.81k
    } else {
515
8.81k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
8.81k
        ss->id = operator_id();
517
8.82k
        for (auto& dest : dests_id()) {
518
8.82k
            ss->related_op_ids.insert(dest);
519
8.82k
        }
520
8.81k
        return ss;
521
8.81k
    }
522
8.81k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
83
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
83
    } else {
515
83
        auto ss = LocalStateType::SharedStateType::create_shared();
516
83
        ss->id = operator_id();
517
83
        for (auto& dest : dests_id()) {
518
83
            ss->related_op_ids.insert(dest);
519
83
        }
520
83
        return ss;
521
83
    }
522
83
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
278k
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
278k
    } else {
515
278k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
278k
        ss->id = operator_id();
517
278k
        for (auto& dest : dests_id()) {
518
277k
            ss->related_op_ids.insert(dest);
519
277k
        }
520
278k
        return ss;
521
278k
    }
522
278k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
42
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
42
    } else {
515
42
        auto ss = LocalStateType::SharedStateType::create_shared();
516
42
        ss->id = operator_id();
517
42
        for (auto& dest : dests_id()) {
518
42
            ss->related_op_ids.insert(dest);
519
42
        }
520
42
        return ss;
521
42
    }
522
42
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
153k
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
153k
    } else {
515
153k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
153k
        ss->id = operator_id();
517
153k
        for (auto& dest : dests_id()) {
518
153k
            ss->related_op_ids.insert(dest);
519
153k
        }
520
153k
        return ss;
521
153k
    }
522
153k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
301
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
301
    } else {
515
301
        auto ss = LocalStateType::SharedStateType::create_shared();
516
301
        ss->id = operator_id();
517
301
        for (auto& dest : dests_id()) {
518
300
            ss->related_op_ids.insert(dest);
519
300
        }
520
301
        return ss;
521
301
    }
522
301
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
703k
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
703k
    } else {
515
703k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
703k
        ss->id = operator_id();
517
703k
        for (auto& dest : dests_id()) {
518
698k
            ss->related_op_ids.insert(dest);
519
698k
        }
520
703k
        return ss;
521
703k
    }
522
703k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.99k
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.99k
    } else {
515
9.99k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.99k
        ss->id = operator_id();
517
9.99k
        for (auto& dest : dests_id()) {
518
9.98k
            ss->related_op_ids.insert(dest);
519
9.98k
        }
520
9.99k
        return ss;
521
9.99k
    }
522
9.99k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
713
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
713
    } else {
515
713
        auto ss = LocalStateType::SharedStateType::create_shared();
516
713
        ss->id = operator_id();
517
713
        for (auto& dest : dests_id()) {
518
713
            ss->related_op_ids.insert(dest);
519
713
        }
520
713
        return ss;
521
713
    }
522
713
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.49k
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.49k
    } else {
515
2.49k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.49k
        ss->id = operator_id();
517
2.49k
        for (auto& dest : dests_id()) {
518
2.48k
            ss->related_op_ids.insert(dest);
519
2.48k
        }
520
2.49k
        return ss;
521
2.49k
    }
522
2.49k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.42k
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.42k
    } else {
515
2.42k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.42k
        ss->id = operator_id();
517
2.43k
        for (auto& dest : dests_id()) {
518
2.43k
            ss->related_op_ids.insert(dest);
519
2.43k
        }
520
2.42k
        return ss;
521
2.42k
    }
522
2.42k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
564
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
564
    } else {
515
564
        auto ss = LocalStateType::SharedStateType::create_shared();
516
564
        ss->id = operator_id();
517
564
        for (auto& dest : dests_id()) {
518
559
            ss->related_op_ids.insert(dest);
519
559
        }
520
564
        return ss;
521
564
    }
522
564
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
104
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
104
    } else {
515
104
        auto ss = LocalStateType::SharedStateType::create_shared();
516
104
        ss->id = operator_id();
517
104
        for (auto& dest : dests_id()) {
518
104
            ss->related_op_ids.insert(dest);
519
104
        }
520
104
        return ss;
521
104
    }
522
104
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.52M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.52M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.52M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.52M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.52M
    return Status::OK();
530
2.52M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
71.1k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
71.1k
    auto local_state = LocalStateType::create_unique(state, this);
527
71.1k
    RETURN_IF_ERROR(local_state->init(state, info));
528
71.1k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
71.1k
    return Status::OK();
530
71.1k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
309k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
309k
    auto local_state = LocalStateType::create_unique(state, this);
527
309k
    RETURN_IF_ERROR(local_state->init(state, info));
528
309k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
309k
    return Status::OK();
530
309k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
140
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
140
    auto local_state = LocalStateType::create_unique(state, this);
527
140
    RETURN_IF_ERROR(local_state->init(state, info));
528
140
    state->emplace_local_state(operator_id(), std::move(local_state));
529
140
    return Status::OK();
530
140
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
35.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
35.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
35.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
35.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
35.2k
    return Status::OK();
530
35.2k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.74k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.74k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.74k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.74k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.74k
    return Status::OK();
530
8.74k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
9.04k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
9.04k
    auto local_state = LocalStateType::create_unique(state, this);
527
9.04k
    RETURN_IF_ERROR(local_state->init(state, info));
528
9.04k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
9.04k
    return Status::OK();
530
9.04k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
33
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
33
    auto local_state = LocalStateType::create_unique(state, this);
527
33
    RETURN_IF_ERROR(local_state->init(state, info));
528
33
    state->emplace_local_state(operator_id(), std::move(local_state));
529
33
    return Status::OK();
530
33
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
267k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
267k
    auto local_state = LocalStateType::create_unique(state, this);
527
267k
    RETURN_IF_ERROR(local_state->init(state, info));
528
267k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
267k
    return Status::OK();
530
267k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
153k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
153k
    auto local_state = LocalStateType::create_unique(state, this);
527
153k
    RETURN_IF_ERROR(local_state->init(state, info));
528
153k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
153k
    return Status::OK();
530
153k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
598
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
598
    auto local_state = LocalStateType::create_unique(state, this);
527
598
    RETURN_IF_ERROR(local_state->init(state, info));
528
598
    state->emplace_local_state(operator_id(), std::move(local_state));
529
598
    return Status::OK();
530
598
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
290
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
290
    auto local_state = LocalStateType::create_unique(state, this);
527
290
    RETURN_IF_ERROR(local_state->init(state, info));
528
290
    state->emplace_local_state(operator_id(), std::move(local_state));
529
290
    return Status::OK();
530
290
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
3.73k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
3.73k
    auto local_state = LocalStateType::create_unique(state, this);
527
3.73k
    RETURN_IF_ERROR(local_state->init(state, info));
528
3.73k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
3.73k
    return Status::OK();
530
3.73k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
384k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
384k
    auto local_state = LocalStateType::create_unique(state, this);
527
384k
    RETURN_IF_ERROR(local_state->init(state, info));
528
384k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
384k
    return Status::OK();
530
384k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.37k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.37k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.37k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.37k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.37k
    return Status::OK();
530
1.37k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
9.97k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
9.97k
    auto local_state = LocalStateType::create_unique(state, this);
527
9.97k
    RETURN_IF_ERROR(local_state->init(state, info));
528
9.97k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
9.97k
    return Status::OK();
530
9.97k
}
_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.68k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.68k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.68k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.68k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.68k
    return Status::OK();
530
1.68k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
55.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
55.9k
    auto local_state = LocalStateType::create_unique(state, this);
527
55.9k
    RETURN_IF_ERROR(local_state->init(state, info));
528
55.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
55.9k
    return Status::OK();
530
55.9k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.0k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.0k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.0k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.0k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.0k
    return Status::OK();
530
11.0k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
611
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
611
    auto local_state = LocalStateType::create_unique(state, this);
527
611
    RETURN_IF_ERROR(local_state->init(state, info));
528
611
    state->emplace_local_state(operator_id(), std::move(local_state));
529
611
    return Status::OK();
530
611
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.52k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.52k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.52k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.52k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.52k
    return Status::OK();
530
2.52k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.46k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.46k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.46k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.46k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.46k
    return Status::OK();
530
2.46k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
499
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
499
    auto local_state = LocalStateType::create_unique(state, this);
527
499
    RETURN_IF_ERROR(local_state->init(state, info));
528
499
    state->emplace_local_state(operator_id(), std::move(local_state));
529
499
    return Status::OK();
530
499
}
_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
6.51k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
6.51k
    auto local_state = LocalStateType::create_unique(state, this);
527
6.51k
    RETURN_IF_ERROR(local_state->init(state, info));
528
6.51k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
6.51k
    return Status::OK();
530
6.51k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
751k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
751k
    auto local_state = LocalStateType::create_unique(state, this);
527
751k
    RETURN_IF_ERROR(local_state->init(state, info));
528
751k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
751k
    return Status::OK();
530
751k
}
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
163
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
163
    auto local_state = LocalStateType::create_unique(state, this);
527
163
    RETURN_IF_ERROR(local_state->init(state, info));
528
163
    state->emplace_local_state(operator_id(), std::move(local_state));
529
163
    return Status::OK();
530
163
}
_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.74k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.74k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.74k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.74k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.74k
    return Status::OK();
530
1.74k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
3.04k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
3.04k
    auto local_state = LocalStateType::create_unique(state, this);
527
3.04k
    RETURN_IF_ERROR(local_state->init(state, info));
528
3.04k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
3.04k
    return Status::OK();
530
3.04k
}
_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
420k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
420k
    auto local_state = LocalStateType::create_unique(state, this);
527
420k
    RETURN_IF_ERROR(local_state->init(state, info));
528
420k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
420k
    return Status::OK();
530
420k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.07M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.52M
        : _num_rows_returned(0),
538
2.52M
          _rows_returned_counter(nullptr),
539
2.52M
          _parent(parent),
540
2.52M
          _state(state),
541
2.52M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.53M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.53M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.53M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.53M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.53M
    _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.53M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.53M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.53M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.53M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.53M
    if constexpr (!is_fake_shared) {
556
1.34M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
760k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
760k
                                    .first.get()
559
760k
                                    ->template cast<SharedStateArg>();
560
561
760k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
760k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
760k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
760k
        } else if (info.shared_state) {
565
509k
            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
509k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
509k
            _dependency = _shared_state->create_source_dependency(
572
509k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
509k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
509k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
509k
        } else {
576
79.1k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
10.7k
                DCHECK(false);
578
10.7k
            }
579
79.1k
        }
580
1.34M
    }
581
582
2.53M
    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.53M
    _rows_returned_counter =
587
2.53M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.53M
    _blocks_returned_counter =
589
2.53M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.53M
    _output_block_bytes_counter =
591
2.53M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.53M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.53M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.53M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.53M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.53M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.53M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.53M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.53M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.53M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.53M
    _memory_used_counter =
602
2.53M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.53M
    _common_profile->add_info_string("IsColocate",
604
2.53M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.53M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.53M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.53M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.53M
    return Status::OK();
609
2.53M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
71.3k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
71.3k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
71.3k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
71.3k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
71.3k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
71.3k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
71.3k
    _operator_profile->add_child(_common_profile.get(), true);
553
71.3k
    _operator_profile->add_child(_custom_profile.get(), true);
554
71.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
71.3k
    if constexpr (!is_fake_shared) {
556
71.3k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
15.8k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
15.8k
                                    .first.get()
559
15.8k
                                    ->template cast<SharedStateArg>();
560
561
15.8k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
15.8k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
15.8k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
55.4k
        } 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
54.5k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
54.5k
            _dependency = _shared_state->create_source_dependency(
572
54.5k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
54.5k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
54.5k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
54.5k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
911
        }
580
71.3k
    }
581
582
71.3k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
71.3k
    _rows_returned_counter =
587
71.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
71.3k
    _blocks_returned_counter =
589
71.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
71.3k
    _output_block_bytes_counter =
591
71.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
71.3k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
71.3k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
71.3k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
71.3k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
71.3k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
71.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
71.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
71.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
71.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
71.3k
    _memory_used_counter =
602
71.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
71.3k
    _common_profile->add_info_string("IsColocate",
604
71.3k
                                     std::to_string(_parent->is_colocated_operator()));
605
71.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
71.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
71.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
71.3k
    return Status::OK();
609
71.3k
}
_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
277k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
277k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
277k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
277k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
277k
    _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
277k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
277k
    _operator_profile->add_child(_common_profile.get(), true);
553
277k
    _operator_profile->add_child(_custom_profile.get(), true);
554
277k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
277k
    if constexpr (!is_fake_shared) {
556
277k
        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
277k
        } 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
265k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
265k
            _dependency = _shared_state->create_source_dependency(
572
265k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
265k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
265k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
265k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
11.7k
        }
580
277k
    }
581
582
277k
    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
277k
    _rows_returned_counter =
587
277k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
277k
    _blocks_returned_counter =
589
277k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
277k
    _output_block_bytes_counter =
591
277k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
277k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
277k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
277k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
277k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
277k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
277k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
277k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
277k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
277k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
277k
    _memory_used_counter =
602
277k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
277k
    _common_profile->add_info_string("IsColocate",
604
277k
                                     std::to_string(_parent->is_colocated_operator()));
605
277k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
277k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
277k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
277k
    return Status::OK();
609
277k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
33
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
33
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
33
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
33
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
33
    _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
33
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
33
    _operator_profile->add_child(_common_profile.get(), true);
553
33
    _operator_profile->add_child(_custom_profile.get(), true);
554
33
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
33
    if constexpr (!is_fake_shared) {
556
33
        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
33
        } 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
32
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
32
            _dependency = _shared_state->create_source_dependency(
572
32
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
32
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
32
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
32
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1
        }
580
33
    }
581
582
33
    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
33
    _rows_returned_counter =
587
33
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
33
    _blocks_returned_counter =
589
33
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
33
    _output_block_bytes_counter =
591
33
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
33
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
33
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
33
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
33
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
33
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
33
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
33
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
33
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
33
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
33
    _memory_used_counter =
602
33
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
33
    _common_profile->add_info_string("IsColocate",
604
33
                                     std::to_string(_parent->is_colocated_operator()));
605
33
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
33
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
33
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
33
    return Status::OK();
609
33
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.0k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
10.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.0k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.0k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.0k
    if constexpr (!is_fake_shared) {
556
10.0k
        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.0k
        } 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
9.92k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
9.92k
            _dependency = _shared_state->create_source_dependency(
572
9.92k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
9.92k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
9.92k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
9.92k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
77
        }
580
10.0k
    }
581
582
10.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
10.0k
    _rows_returned_counter =
587
10.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.0k
    _blocks_returned_counter =
589
10.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.0k
    _output_block_bytes_counter =
591
10.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.0k
    _memory_used_counter =
602
10.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.0k
    _common_profile->add_info_string("IsColocate",
604
10.0k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.0k
    return Status::OK();
609
10.0k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
8.81k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
8.81k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
8.81k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
8.81k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
8.81k
    _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
8.81k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
8.81k
    _operator_profile->add_child(_common_profile.get(), true);
553
8.81k
    _operator_profile->add_child(_custom_profile.get(), true);
554
8.81k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
8.81k
    if constexpr (!is_fake_shared) {
556
8.81k
        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
8.81k
        } 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
8.70k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
8.70k
            _dependency = _shared_state->create_source_dependency(
572
8.70k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
8.70k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
8.70k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
8.70k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
114
        }
580
8.81k
    }
581
582
8.81k
    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
8.81k
    _rows_returned_counter =
587
8.81k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
8.81k
    _blocks_returned_counter =
589
8.81k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
8.81k
    _output_block_bytes_counter =
591
8.81k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
8.81k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
8.81k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
8.81k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
8.81k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
8.81k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
8.81k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
8.81k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
8.81k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
8.81k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
8.81k
    _memory_used_counter =
602
8.81k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
8.81k
    _common_profile->add_info_string("IsColocate",
604
8.81k
                                     std::to_string(_parent->is_colocated_operator()));
605
8.81k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
8.81k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
8.81k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
8.81k
    return Status::OK();
609
8.81k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
153k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
153k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
153k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
153k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
153k
    _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
153k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
153k
    _operator_profile->add_child(_common_profile.get(), true);
553
153k
    _operator_profile->add_child(_custom_profile.get(), true);
554
153k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
153k
    if constexpr (!is_fake_shared) {
556
153k
        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
153k
        } 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
150k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
150k
            _dependency = _shared_state->create_source_dependency(
572
150k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
150k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
150k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
150k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
2.44k
        }
580
153k
    }
581
582
153k
    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
153k
    _rows_returned_counter =
587
153k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
153k
    _blocks_returned_counter =
589
153k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
153k
    _output_block_bytes_counter =
591
153k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
153k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
153k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
153k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
153k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
153k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
153k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
153k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
153k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
153k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
153k
    _memory_used_counter =
602
153k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
153k
    _common_profile->add_info_string("IsColocate",
604
153k
                                     std::to_string(_parent->is_colocated_operator()));
605
153k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
153k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
153k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
153k
    return Status::OK();
609
153k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
607
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
607
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
607
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
607
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
607
    _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
607
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
607
    _operator_profile->add_child(_common_profile.get(), true);
553
607
    _operator_profile->add_child(_custom_profile.get(), true);
554
607
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
607
    if constexpr (!is_fake_shared) {
556
607
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
591
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
591
                                    .first.get()
559
591
                                    ->template cast<SharedStateArg>();
560
561
591
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
591
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
591
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
591
        } 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
16
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
16
        }
580
607
    }
581
582
607
    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
607
    _rows_returned_counter =
587
607
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
607
    _blocks_returned_counter =
589
607
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
607
    _output_block_bytes_counter =
591
607
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
607
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
607
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
607
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
607
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
607
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
607
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
607
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
607
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
607
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
607
    _memory_used_counter =
602
607
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
607
    _common_profile->add_info_string("IsColocate",
604
607
                                     std::to_string(_parent->is_colocated_operator()));
605
607
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
607
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
607
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
607
    return Status::OK();
609
607
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
291
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
291
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
291
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
291
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
291
    _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
291
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
291
    _operator_profile->add_child(_common_profile.get(), true);
553
291
    _operator_profile->add_child(_custom_profile.get(), true);
554
291
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
291
    if constexpr (!is_fake_shared) {
556
291
        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
291
        } 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
290
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
290
            _dependency = _shared_state->create_source_dependency(
572
290
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
290
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
290
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
290
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1
        }
580
291
    }
581
582
291
    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
291
    _rows_returned_counter =
587
291
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
291
    _blocks_returned_counter =
589
291
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
291
    _output_block_bytes_counter =
591
291
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
291
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
291
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
291
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
291
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
291
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
291
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
291
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
291
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
291
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
291
    _memory_used_counter =
602
291
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
291
    _common_profile->add_info_string("IsColocate",
604
291
                                     std::to_string(_parent->is_colocated_operator()));
605
291
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
291
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
291
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
291
    return Status::OK();
609
291
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.18M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.18M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.18M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.18M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.18M
    _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.18M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.18M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.18M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.18M
    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.18M
    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.18M
    _rows_returned_counter =
587
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.18M
    _blocks_returned_counter =
589
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.18M
    _output_block_bytes_counter =
591
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.18M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.18M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.18M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.18M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.18M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.18M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.18M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.18M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.18M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.18M
    _memory_used_counter =
602
1.18M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.18M
    _common_profile->add_info_string("IsColocate",
604
1.18M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.18M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.18M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.18M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.18M
    return Status::OK();
609
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
55.8k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
55.8k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
55.8k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
55.8k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
55.8k
    _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
55.8k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
55.8k
    _operator_profile->add_child(_common_profile.get(), true);
553
55.8k
    _operator_profile->add_child(_custom_profile.get(), true);
554
55.8k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
55.8k
    if constexpr (!is_fake_shared) {
556
55.8k
        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
55.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
2.77k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
2.77k
            _dependency = _shared_state->create_source_dependency(
572
2.77k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
2.77k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
2.77k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
53.0k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
53.0k
        }
580
55.8k
    }
581
582
55.8k
    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
55.8k
    _rows_returned_counter =
587
55.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
55.8k
    _blocks_returned_counter =
589
55.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
55.8k
    _output_block_bytes_counter =
591
55.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
55.8k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
55.8k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
55.8k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
55.8k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
55.8k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
55.8k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
55.8k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
55.8k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
55.8k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
55.8k
    _memory_used_counter =
602
55.8k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
55.8k
    _common_profile->add_info_string("IsColocate",
604
55.8k
                                     std::to_string(_parent->is_colocated_operator()));
605
55.8k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
55.8k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
55.8k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
55.8k
    return Status::OK();
609
55.8k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
17
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
17
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
17
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
17
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
17
    _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
17
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
17
    _operator_profile->add_child(_common_profile.get(), true);
553
17
    _operator_profile->add_child(_custom_profile.get(), true);
554
17
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
17
    if constexpr (!is_fake_shared) {
556
17
        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
17
        } 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
17
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
17
            _dependency = _shared_state->create_source_dependency(
572
17
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
17
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
17
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
17
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
17
    }
581
582
17
    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
17
    _rows_returned_counter =
587
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
17
    _blocks_returned_counter =
589
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
17
    _output_block_bytes_counter =
591
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
17
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
17
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
17
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
17
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
17
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
17
    _memory_used_counter =
602
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
17
    _common_profile->add_info_string("IsColocate",
604
17
                                     std::to_string(_parent->is_colocated_operator()));
605
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
17
    return Status::OK();
609
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.0k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.0k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.0k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.0k
    if constexpr (!is_fake_shared) {
556
11.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.0k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.0k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.0k
            _dependency = _shared_state->create_source_dependency(
572
11.0k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.0k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.0k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.0k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
58
        }
580
11.0k
    }
581
582
11.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.0k
    _rows_returned_counter =
587
11.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.0k
    _blocks_returned_counter =
589
11.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.0k
    _output_block_bytes_counter =
591
11.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.0k
    _memory_used_counter =
602
11.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.0k
    _common_profile->add_info_string("IsColocate",
604
11.0k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.0k
    return Status::OK();
609
11.0k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
711
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
711
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
711
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
711
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
711
    _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
711
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
711
    _operator_profile->add_child(_common_profile.get(), true);
553
711
    _operator_profile->add_child(_custom_profile.get(), true);
554
711
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
711
    if constexpr (!is_fake_shared) {
556
711
        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
711
        } 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
703
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
703
            _dependency = _shared_state->create_source_dependency(
572
703
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
703
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
703
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
703
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
8
        }
580
711
    }
581
582
711
    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
711
    _rows_returned_counter =
587
711
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
711
    _blocks_returned_counter =
589
711
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
711
    _output_block_bytes_counter =
591
711
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
711
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
711
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
711
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
711
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
711
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
711
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
711
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
711
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
711
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
711
    _memory_used_counter =
602
711
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
711
    _common_profile->add_info_string("IsColocate",
604
711
                                     std::to_string(_parent->is_colocated_operator()));
605
711
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
711
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
711
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
711
    return Status::OK();
609
711
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.01k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.01k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.01k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.01k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.01k
    _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.01k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.01k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.01k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.01k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.01k
    if constexpr (!is_fake_shared) {
556
5.01k
        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.01k
        } 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.98k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
4.98k
            _dependency = _shared_state->create_source_dependency(
572
4.98k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
4.98k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
4.98k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
4.98k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
21
        }
580
5.01k
    }
581
582
5.01k
    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.01k
    _rows_returned_counter =
587
5.01k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.01k
    _blocks_returned_counter =
589
5.01k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.01k
    _output_block_bytes_counter =
591
5.01k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.01k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.01k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.01k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.01k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.01k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.01k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.01k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.01k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.01k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.01k
    _memory_used_counter =
602
5.01k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.01k
    _common_profile->add_info_string("IsColocate",
604
5.01k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.01k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.01k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.01k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.01k
    return Status::OK();
609
5.01k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
754k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
754k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
754k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
754k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
754k
    _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
754k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
754k
    _operator_profile->add_child(_common_profile.get(), true);
553
754k
    _operator_profile->add_child(_custom_profile.get(), true);
554
754k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
754k
    if constexpr (!is_fake_shared) {
556
754k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
744k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
744k
                                    .first.get()
559
744k
                                    ->template cast<SharedStateArg>();
560
561
744k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
744k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
744k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
744k
        } 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
10.7k
        } else {
576
10.7k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
10.7k
                DCHECK(false);
578
10.7k
            }
579
10.7k
        }
580
754k
    }
581
582
754k
    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
754k
    _rows_returned_counter =
587
754k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
754k
    _blocks_returned_counter =
589
754k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
754k
    _output_block_bytes_counter =
591
754k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
754k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
754k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
754k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
754k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
754k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
754k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
754k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
754k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
754k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
754k
    _memory_used_counter =
602
754k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
754k
    _common_profile->add_info_string("IsColocate",
604
754k
                                     std::to_string(_parent->is_colocated_operator()));
605
754k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
754k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
754k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
754k
    return Status::OK();
609
754k
}
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.54M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.54M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.54M
    _projections.resize(_parent->_projections.size());
615
3.05M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
509k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
509k
    }
618
5.26M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.72M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.72M
    }
621
2.54M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.55M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
13.5k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
88.3k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
74.7k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
74.7k
                    state, _intermediate_projections[i][j]));
627
74.7k
        }
628
13.5k
    }
629
2.54M
    return Status::OK();
630
2.54M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
71.4k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
71.4k
    _conjuncts.resize(_parent->_conjuncts.size());
614
71.4k
    _projections.resize(_parent->_projections.size());
615
72.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
781
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
781
    }
618
356k
    for (size_t i = 0; i < _projections.size(); i++) {
619
285k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
285k
    }
621
71.4k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
73.0k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.59k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
16.5k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
14.9k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
14.9k
                    state, _intermediate_projections[i][j]));
627
14.9k
        }
628
1.59k
    }
629
71.4k
    return Status::OK();
630
71.4k
}
_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
278k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
278k
    _conjuncts.resize(_parent->_conjuncts.size());
614
278k
    _projections.resize(_parent->_projections.size());
615
278k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
278k
    for (size_t i = 0; i < _projections.size(); i++) {
619
359
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
359
    }
621
278k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
278k
    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
278k
    return Status::OK();
630
278k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
33
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
33
    _conjuncts.resize(_parent->_conjuncts.size());
614
33
    _projections.resize(_parent->_projections.size());
615
33
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
33
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
33
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
33
    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
33
    return Status::OK();
630
33
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.0k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.0k
    _projections.resize(_parent->_projections.size());
615
10.0k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
61
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
61
    }
618
68.0k
    for (size_t i = 0; i < _projections.size(); i++) {
619
58.0k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
58.0k
    }
621
10.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
144
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
896
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
752
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
752
                    state, _intermediate_projections[i][j]));
627
752
        }
628
144
    }
629
10.0k
    return Status::OK();
630
10.0k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
8.82k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
8.82k
    _conjuncts.resize(_parent->_conjuncts.size());
614
8.82k
    _projections.resize(_parent->_projections.size());
615
9.78k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
954
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
954
    }
618
24.6k
    for (size_t i = 0; i < _projections.size(); i++) {
619
15.7k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
15.7k
    }
621
8.82k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
8.91k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
82
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
622
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
540
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
540
                    state, _intermediate_projections[i][j]));
627
540
        }
628
82
    }
629
8.82k
    return Status::OK();
630
8.82k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
153k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
153k
    _conjuncts.resize(_parent->_conjuncts.size());
614
153k
    _projections.resize(_parent->_projections.size());
615
157k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.09k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.09k
    }
618
421k
    for (size_t i = 0; i < _projections.size(); i++) {
619
267k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
267k
    }
621
153k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
153k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
251
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.79k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.54k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.54k
                    state, _intermediate_projections[i][j]));
627
1.54k
        }
628
251
    }
629
153k
    return Status::OK();
630
153k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
608
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
608
    _conjuncts.resize(_parent->_conjuncts.size());
614
608
    _projections.resize(_parent->_projections.size());
615
615
    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.94k
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.34k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.34k
    }
621
608
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
608
    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
608
    return Status::OK();
630
608
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
296
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
296
    _conjuncts.resize(_parent->_conjuncts.size());
614
296
    _projections.resize(_parent->_projections.size());
615
296
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
796
    for (size_t i = 0; i < _projections.size(); i++) {
619
500
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
500
    }
621
296
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
296
    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
296
    return Status::OK();
630
296
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.18M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.18M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.18M
    _projections.resize(_parent->_projections.size());
615
1.68M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
499k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
499k
    }
618
3.18M
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.99M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.99M
    }
621
1.18M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.19M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
11.4k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
68.4k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
56.9k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
56.9k
                    state, _intermediate_projections[i][j]));
627
56.9k
        }
628
11.4k
    }
629
1.18M
    return Status::OK();
630
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.0k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.0k
    _projections.resize(_parent->_projections.size());
615
56.0k
    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.8k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
96.8k
    }
621
56.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.0k
    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.0k
    return Status::OK();
630
56.0k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
17
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
17
    _conjuncts.resize(_parent->_conjuncts.size());
614
17
    _projections.resize(_parent->_projections.size());
615
17
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
17
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
17
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
17
    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
17
    return Status::OK();
630
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.0k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.0k
    _projections.resize(_parent->_projections.size());
615
15.3k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.26k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.26k
    }
618
11.0k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
11.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.0k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
11.0k
    return Status::OK();
630
11.0k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
711
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
711
    _conjuncts.resize(_parent->_conjuncts.size());
614
711
    _projections.resize(_parent->_projections.size());
615
711
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
711
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
711
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
711
    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
711
    return Status::OK();
630
711
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.00k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.00k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.00k
    _projections.resize(_parent->_projections.size());
615
5.00k
    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.17k
    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.00k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.00k
    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.00k
    return Status::OK();
630
5.00k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
757k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
757k
    _conjuncts.resize(_parent->_conjuncts.size());
614
757k
    _projections.resize(_parent->_projections.size());
615
757k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
757k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
757k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
757k
    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
757k
    return Status::OK();
630
757k
}
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
5.35k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.35k
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
5.35k
    _terminated = true;
638
5.35k
    return Status::OK();
639
5.35k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
297
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
297
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
297
    _terminated = true;
638
297
    return Status::OK();
639
297
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
93
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
93
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
93
    _terminated = true;
638
93
    return Status::OK();
639
93
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
50
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
50
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
50
    _terminated = true;
638
50
    return Status::OK();
639
50
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
276
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
276
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
276
    _terminated = true;
638
276
    return Status::OK();
639
276
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
3.86k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
3.86k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
3.86k
    _terminated = true;
638
3.86k
    return Status::OK();
639
3.86k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
2
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
2
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
2
    _terminated = true;
638
2
    return Status::OK();
639
2
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
9
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
9
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
9
    _terminated = true;
638
9
    return Status::OK();
639
9
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_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_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
755
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
755
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
754
    _terminated = true;
638
754
    return Status::OK();
639
755
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
13
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
13
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
13
    _terminated = true;
638
13
    return Status::OK();
639
13
}
640
641
template <typename SharedStateArg>
642
2.85M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.85M
    if (_closed) {
644
311k
        return Status::OK();
645
311k
    }
646
2.54M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.35M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.35M
    }
649
2.54M
    _closed = true;
650
2.54M
    return Status::OK();
651
2.85M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
71.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
71.3k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
71.3k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
71.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
71.3k
    }
649
71.3k
    _closed = true;
650
71.3k
    return Status::OK();
651
71.3k
}
_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
553k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
553k
    if (_closed) {
644
276k
        return Status::OK();
645
276k
    }
646
276k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
276k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
276k
    }
649
276k
    _closed = true;
650
276k
    return Status::OK();
651
553k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
33
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
33
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
33
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
33
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
33
    }
649
33
    _closed = true;
650
33
    return Status::OK();
651
33
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.0k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.0k
    }
649
10.0k
    _closed = true;
650
10.0k
    return Status::OK();
651
10.0k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
17.7k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
17.7k
    if (_closed) {
644
8.95k
        return Status::OK();
645
8.95k
    }
646
8.81k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
8.81k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
8.81k
    }
649
8.81k
    _closed = true;
650
8.81k
    return Status::OK();
651
17.7k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
153k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
153k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
153k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
153k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
153k
    }
649
153k
    _closed = true;
650
153k
    return Status::OK();
651
153k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
609
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
609
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
609
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
609
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
609
    }
649
609
    _closed = true;
650
609
    return Status::OK();
651
609
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
291
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
291
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
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
291
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.20M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.20M
    if (_closed) {
644
19.2k
        return Status::OK();
645
19.2k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.18M
    _closed = true;
650
1.18M
    return Status::OK();
651
1.20M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.0k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.0k
    }
649
56.0k
    _closed = true;
650
56.0k
    return Status::OK();
651
56.0k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
28
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
28
    if (_closed) {
644
14
        return Status::OK();
645
14
    }
646
14
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
14
    }
649
14
    _closed = true;
650
14
    return Status::OK();
651
28
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
11.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.0k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.0k
    }
649
11.0k
    _closed = true;
650
11.0k
    return Status::OK();
651
11.0k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.22k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.22k
    if (_closed) {
644
610
        return Status::OK();
645
610
    }
646
611
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
611
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
611
    }
649
611
    _closed = true;
650
611
    return Status::OK();
651
1.22k
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.1k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.1k
    if (_closed) {
644
5.12k
        return Status::OK();
645
5.12k
    }
646
4.99k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
4.99k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
4.99k
    }
649
4.99k
    _closed = true;
650
4.99k
    return Status::OK();
651
10.1k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
758k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
758k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
758k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
758k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
758k
    }
649
758k
    _closed = true;
650
758k
    return Status::OK();
651
758k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
332
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
332
    if (_closed) {
644
177
        return Status::OK();
645
177
    }
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
332
}
652
653
template <typename SharedState>
654
2.08M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.08M
    _operator_profile =
657
2.08M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.08M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.08M
    _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.08M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.08M
    _operator_profile->add_child(_common_profile, true);
666
2.08M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.08M
    _operator_profile->set_metadata(_parent->node_id());
669
2.08M
    _wait_for_finish_dependency_timer =
670
2.08M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.08M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.08M
    if constexpr (!is_fake_shared) {
673
1.37M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.37M
            info.shared_state_map.end()) {
675
297k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
281k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
281k
            }
678
297k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
297k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
297k
                                                  ? 0
681
297k
                                                  : info.task_idx]
682
297k
                                  .get();
683
297k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.07M
        } else {
685
1.07M
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
490
                DCHECK(false);
687
490
            }
688
1.07M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.07M
            _dependency = _shared_state->create_sink_dependency(
690
1.07M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.07M
        }
692
1.37M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.37M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.37M
    }
695
696
2.08M
    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.08M
    _rows_input_counter =
701
2.08M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.08M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.08M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.08M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.08M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.08M
    _memory_used_counter =
707
2.08M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.08M
    _common_profile->add_info_string("IsColocate",
709
2.08M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.08M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.08M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.08M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.08M
    return Status::OK();
714
2.08M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
119k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
119k
    _operator_profile =
657
119k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
119k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
119k
    _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
119k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
119k
    _operator_profile->add_child(_common_profile, true);
666
119k
    _operator_profile->add_child(_custom_profile, true);
667
668
119k
    _operator_profile->set_metadata(_parent->node_id());
669
119k
    _wait_for_finish_dependency_timer =
670
119k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
119k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
119k
    if constexpr (!is_fake_shared) {
673
119k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
119k
            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
16.2k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
16.2k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
16.2k
                                                  ? 0
681
16.2k
                                                  : info.task_idx]
682
16.2k
                                  .get();
683
16.2k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
103k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
103k
            _shared_state = info.shared_state->template cast<SharedState>();
689
103k
            _dependency = _shared_state->create_sink_dependency(
690
103k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
103k
        }
692
119k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
119k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
119k
    }
695
696
119k
    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
119k
    _rows_input_counter =
701
119k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
119k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
119k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
119k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
119k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
119k
    _memory_used_counter =
707
119k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
119k
    _common_profile->add_info_string("IsColocate",
709
119k
                                     std::to_string(_parent->is_colocated_operator()));
710
119k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
119k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
119k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
119k
    return Status::OK();
714
119k
}
_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
277k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
277k
    _operator_profile =
657
277k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
277k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
277k
    _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
277k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
277k
    _operator_profile->add_child(_common_profile, true);
666
277k
    _operator_profile->add_child(_custom_profile, true);
667
668
277k
    _operator_profile->set_metadata(_parent->node_id());
669
277k
    _wait_for_finish_dependency_timer =
670
277k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
277k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
277k
    if constexpr (!is_fake_shared) {
673
277k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
277k
            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
277k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
277k
            _shared_state = info.shared_state->template cast<SharedState>();
689
277k
            _dependency = _shared_state->create_sink_dependency(
690
277k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
277k
        }
692
277k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
277k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
277k
    }
695
696
277k
    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
277k
    _rows_input_counter =
701
277k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
277k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
277k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
277k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
277k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
277k
    _memory_used_counter =
707
277k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
277k
    _common_profile->add_info_string("IsColocate",
709
277k
                                     std::to_string(_parent->is_colocated_operator()));
710
277k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
277k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
277k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
277k
    return Status::OK();
714
277k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
39
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
39
    _operator_profile =
657
39
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
39
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
39
    _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
39
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
39
    _operator_profile->add_child(_common_profile, true);
666
39
    _operator_profile->add_child(_custom_profile, true);
667
668
39
    _operator_profile->set_metadata(_parent->node_id());
669
39
    _wait_for_finish_dependency_timer =
670
39
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
39
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
39
    if constexpr (!is_fake_shared) {
673
39
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
39
            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
39
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
39
            _shared_state = info.shared_state->template cast<SharedState>();
689
39
            _dependency = _shared_state->create_sink_dependency(
690
39
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
39
        }
692
39
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
39
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
39
    }
695
696
39
    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
39
    _rows_input_counter =
701
39
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
39
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
39
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
39
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
39
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
39
    _memory_used_counter =
707
39
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
39
    _common_profile->add_info_string("IsColocate",
709
39
                                     std::to_string(_parent->is_colocated_operator()));
710
39
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
39
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
39
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
39
    return Status::OK();
714
39
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
9.99k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
9.99k
    _operator_profile =
657
9.99k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
9.99k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
9.99k
    _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
9.99k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
9.99k
    _operator_profile->add_child(_common_profile, true);
666
9.99k
    _operator_profile->add_child(_custom_profile, true);
667
668
9.99k
    _operator_profile->set_metadata(_parent->node_id());
669
9.99k
    _wait_for_finish_dependency_timer =
670
9.99k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
9.99k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
9.99k
    if constexpr (!is_fake_shared) {
673
9.99k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
9.99k
            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
9.99k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
9.99k
            _shared_state = info.shared_state->template cast<SharedState>();
689
9.99k
            _dependency = _shared_state->create_sink_dependency(
690
9.99k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
9.99k
        }
692
9.99k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
9.99k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
9.99k
    }
695
696
9.99k
    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
9.99k
    _rows_input_counter =
701
9.99k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
9.99k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
9.99k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
9.99k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
9.99k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
9.99k
    _memory_used_counter =
707
9.99k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
9.99k
    _common_profile->add_info_string("IsColocate",
709
9.99k
                                     std::to_string(_parent->is_colocated_operator()));
710
9.99k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
9.99k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
9.99k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
9.99k
    return Status::OK();
714
9.99k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
8.80k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
8.80k
    _operator_profile =
657
8.80k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
8.80k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
8.80k
    _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
8.80k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
8.80k
    _operator_profile->add_child(_common_profile, true);
666
8.80k
    _operator_profile->add_child(_custom_profile, true);
667
668
8.80k
    _operator_profile->set_metadata(_parent->node_id());
669
8.80k
    _wait_for_finish_dependency_timer =
670
8.80k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
8.80k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
8.80k
    if constexpr (!is_fake_shared) {
673
8.80k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
8.80k
            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
8.80k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
8.80k
            _shared_state = info.shared_state->template cast<SharedState>();
689
8.80k
            _dependency = _shared_state->create_sink_dependency(
690
8.80k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
8.80k
        }
692
8.80k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
8.80k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
8.80k
    }
695
696
8.80k
    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
8.80k
    _rows_input_counter =
701
8.80k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
8.80k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
8.80k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
8.80k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
8.80k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
8.80k
    _memory_used_counter =
707
8.80k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
8.80k
    _common_profile->add_info_string("IsColocate",
709
8.80k
                                     std::to_string(_parent->is_colocated_operator()));
710
8.80k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
8.80k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
8.80k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
8.80k
    return Status::OK();
714
8.80k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
153k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
153k
    _operator_profile =
657
153k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
153k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
153k
    _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
153k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
153k
    _operator_profile->add_child(_common_profile, true);
666
153k
    _operator_profile->add_child(_custom_profile, true);
667
668
153k
    _operator_profile->set_metadata(_parent->node_id());
669
153k
    _wait_for_finish_dependency_timer =
670
153k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
153k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
153k
    if constexpr (!is_fake_shared) {
673
153k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
153k
            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
153k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
153k
            _shared_state = info.shared_state->template cast<SharedState>();
689
153k
            _dependency = _shared_state->create_sink_dependency(
690
153k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
153k
        }
692
153k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
153k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
153k
    }
695
696
153k
    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
153k
    _rows_input_counter =
701
153k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
153k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
153k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
153k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
153k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
153k
    _memory_used_counter =
707
153k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
153k
    _common_profile->add_info_string("IsColocate",
709
153k
                                     std::to_string(_parent->is_colocated_operator()));
710
153k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
153k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
153k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
153k
    return Status::OK();
714
153k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
603
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
603
    _operator_profile =
657
603
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
603
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
603
    _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
603
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
603
    _operator_profile->add_child(_common_profile, true);
666
603
    _operator_profile->add_child(_custom_profile, true);
667
668
603
    _operator_profile->set_metadata(_parent->node_id());
669
603
    _wait_for_finish_dependency_timer =
670
603
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
603
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
603
    if constexpr (!is_fake_shared) {
673
603
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
603
            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
588
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
588
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
588
                                                  ? 0
681
588
                                                  : info.task_idx]
682
588
                                  .get();
683
588
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
588
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
15
            _shared_state = info.shared_state->template cast<SharedState>();
689
15
            _dependency = _shared_state->create_sink_dependency(
690
15
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
15
        }
692
603
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
603
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
603
    }
695
696
603
    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
603
    _rows_input_counter =
701
603
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
603
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
603
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
603
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
603
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
603
    _memory_used_counter =
707
603
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
603
    _common_profile->add_info_string("IsColocate",
709
603
                                     std::to_string(_parent->is_colocated_operator()));
710
603
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
603
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
603
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
603
    return Status::OK();
714
603
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
302
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
302
    _operator_profile =
657
302
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
302
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
302
    _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
302
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
302
    _operator_profile->add_child(_common_profile, true);
666
302
    _operator_profile->add_child(_custom_profile, true);
667
668
302
    _operator_profile->set_metadata(_parent->node_id());
669
302
    _wait_for_finish_dependency_timer =
670
302
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
302
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
302
    if constexpr (!is_fake_shared) {
673
302
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
302
            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
302
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
302
            _shared_state = info.shared_state->template cast<SharedState>();
689
302
            _dependency = _shared_state->create_sink_dependency(
690
302
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
302
        }
692
302
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
302
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
302
    }
695
696
302
    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
302
    _rows_input_counter =
701
302
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
302
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
302
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
302
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
302
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
302
    _memory_used_counter =
707
302
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
302
    _common_profile->add_info_string("IsColocate",
709
302
                                     std::to_string(_parent->is_colocated_operator()));
710
302
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
302
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
302
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
302
    return Status::OK();
714
302
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
707k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
707k
    _operator_profile =
657
707k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
707k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
707k
    _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
707k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
707k
    _operator_profile->add_child(_common_profile, true);
666
707k
    _operator_profile->add_child(_custom_profile, true);
667
668
707k
    _operator_profile->set_metadata(_parent->node_id());
669
707k
    _wait_for_finish_dependency_timer =
670
707k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
707k
    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
707k
    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
707k
    _rows_input_counter =
701
707k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
707k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
707k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
707k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
707k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
707k
    _memory_used_counter =
707
707k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
707k
    _common_profile->add_info_string("IsColocate",
709
707k
                                     std::to_string(_parent->is_colocated_operator()));
710
707k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
707k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
707k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
707k
    return Status::OK();
714
707k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
5.96k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
5.96k
    _operator_profile =
657
5.96k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
5.96k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
5.96k
    _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.96k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
5.96k
    _operator_profile->add_child(_common_profile, true);
666
5.96k
    _operator_profile->add_child(_custom_profile, true);
667
668
5.96k
    _operator_profile->set_metadata(_parent->node_id());
669
5.96k
    _wait_for_finish_dependency_timer =
670
5.96k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
5.96k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
5.96k
    if constexpr (!is_fake_shared) {
673
5.96k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
5.96k
            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.96k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
5.96k
            _shared_state = info.shared_state->template cast<SharedState>();
689
5.96k
            _dependency = _shared_state->create_sink_dependency(
690
5.96k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
5.96k
        }
692
5.96k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
5.96k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
5.96k
    }
695
696
5.96k
    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.96k
    _rows_input_counter =
701
5.96k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
5.96k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
5.96k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
5.96k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
5.96k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
5.96k
    _memory_used_counter =
707
5.96k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
5.96k
    _common_profile->add_info_string("IsColocate",
709
5.96k
                                     std::to_string(_parent->is_colocated_operator()));
710
5.96k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
5.96k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
5.96k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
5.96k
    return Status::OK();
714
5.96k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
714
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
714
    _operator_profile =
657
714
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
714
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
714
    _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
714
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
714
    _operator_profile->add_child(_common_profile, true);
666
714
    _operator_profile->add_child(_custom_profile, true);
667
668
714
    _operator_profile->set_metadata(_parent->node_id());
669
714
    _wait_for_finish_dependency_timer =
670
714
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
714
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
714
    if constexpr (!is_fake_shared) {
673
714
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
714
            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
714
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
714
            _shared_state = info.shared_state->template cast<SharedState>();
689
714
            _dependency = _shared_state->create_sink_dependency(
690
714
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
714
        }
692
714
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
714
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
714
    }
695
696
714
    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
714
    _rows_input_counter =
701
714
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
714
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
714
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
714
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
714
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
714
    _memory_used_counter =
707
714
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
714
    _common_profile->add_info_string("IsColocate",
709
714
                                     std::to_string(_parent->is_colocated_operator()));
710
714
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
714
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
714
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
714
    return Status::OK();
714
714
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
3.88k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
3.88k
    _operator_profile =
657
3.88k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
3.88k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
3.88k
    _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
3.88k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
3.88k
    _operator_profile->add_child(_common_profile, true);
666
3.88k
    _operator_profile->add_child(_custom_profile, true);
667
668
3.88k
    _operator_profile->set_metadata(_parent->node_id());
669
3.88k
    _wait_for_finish_dependency_timer =
670
3.88k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
3.88k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
3.88k
    if constexpr (!is_fake_shared) {
673
3.88k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
3.88k
            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
3.88k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3.88k
            _shared_state = info.shared_state->template cast<SharedState>();
689
3.88k
            _dependency = _shared_state->create_sink_dependency(
690
3.88k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3.88k
        }
692
3.88k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
3.88k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
3.88k
    }
695
696
3.88k
    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
3.88k
    _rows_input_counter =
701
3.88k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
3.88k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
3.88k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
3.88k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
3.88k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
3.88k
    _memory_used_counter =
707
3.88k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
3.88k
    _common_profile->add_info_string("IsColocate",
709
3.88k
                                     std::to_string(_parent->is_colocated_operator()));
710
3.88k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
3.88k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
3.88k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
3.88k
    return Status::OK();
714
3.88k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.2k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.2k
    _operator_profile =
657
12.2k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.2k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.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
12.2k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.2k
    _operator_profile->add_child(_common_profile, true);
666
12.2k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.2k
    _operator_profile->set_metadata(_parent->node_id());
669
12.2k
    _wait_for_finish_dependency_timer =
670
12.2k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.2k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.2k
    if constexpr (!is_fake_shared) {
673
12.2k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.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
12.2k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.2k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.2k
            _dependency = _shared_state->create_sink_dependency(
690
12.2k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.2k
        }
692
12.2k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.2k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.2k
    }
695
696
12.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
12.2k
    _rows_input_counter =
701
12.2k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.2k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.2k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.2k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.2k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.2k
    _memory_used_counter =
707
12.2k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.2k
    _common_profile->add_info_string("IsColocate",
709
12.2k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.2k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.2k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.2k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.2k
    return Status::OK();
714
12.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
281k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
281k
    _operator_profile =
657
281k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
281k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
281k
    _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
281k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
281k
    _operator_profile->add_child(_common_profile, true);
666
281k
    _operator_profile->add_child(_custom_profile, true);
667
668
281k
    _operator_profile->set_metadata(_parent->node_id());
669
281k
    _wait_for_finish_dependency_timer =
670
281k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
281k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
281k
    if constexpr (!is_fake_shared) {
673
281k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
281k
            info.shared_state_map.end()) {
675
281k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
281k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
281k
            }
678
281k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
281k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
281k
                                                  ? 0
681
281k
                                                  : info.task_idx]
682
281k
                                  .get();
683
281k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
281k
        } else {
685
490
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
490
                DCHECK(false);
687
490
            }
688
490
            _shared_state = info.shared_state->template cast<SharedState>();
689
490
            _dependency = _shared_state->create_sink_dependency(
690
490
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
490
        }
692
281k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
281k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
281k
    }
695
696
281k
    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
281k
    _rows_input_counter =
701
281k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
281k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
281k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
281k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
281k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
281k
    _memory_used_counter =
707
281k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
281k
    _common_profile->add_info_string("IsColocate",
709
281k
                                     std::to_string(_parent->is_colocated_operator()));
710
281k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
281k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
281k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
281k
    return Status::OK();
714
281k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
499k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
499k
    _operator_profile =
657
499k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
499k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
499k
    _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
499k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
499k
    _operator_profile->add_child(_common_profile, true);
666
499k
    _operator_profile->add_child(_custom_profile, true);
667
668
499k
    _operator_profile->set_metadata(_parent->node_id());
669
499k
    _wait_for_finish_dependency_timer =
670
499k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
499k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
499k
    if constexpr (!is_fake_shared) {
673
499k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
499k
            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
499k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
499k
            _shared_state = info.shared_state->template cast<SharedState>();
689
499k
            _dependency = _shared_state->create_sink_dependency(
690
499k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
499k
        }
692
499k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
499k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
499k
    }
695
696
499k
    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
499k
    _rows_input_counter =
701
499k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
499k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
499k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
499k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
499k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
499k
    _memory_used_counter =
707
499k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
499k
    _common_profile->add_info_string("IsColocate",
709
499k
                                     std::to_string(_parent->is_colocated_operator()));
710
499k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
499k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
499k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
499k
    return Status::OK();
714
499k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
17
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
17
    _operator_profile =
657
17
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
17
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
17
    _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
17
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
17
    _operator_profile->add_child(_common_profile, true);
666
17
    _operator_profile->add_child(_custom_profile, true);
667
668
17
    _operator_profile->set_metadata(_parent->node_id());
669
17
    _wait_for_finish_dependency_timer =
670
17
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
17
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
17
    if constexpr (!is_fake_shared) {
673
17
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
17
            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
17
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
17
            _shared_state = info.shared_state->template cast<SharedState>();
689
17
            _dependency = _shared_state->create_sink_dependency(
690
17
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
17
        }
692
17
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
17
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
17
    }
695
696
17
    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
17
    _rows_input_counter =
701
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
17
    _memory_used_counter =
707
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
17
    _common_profile->add_info_string("IsColocate",
709
17
                                     std::to_string(_parent->is_colocated_operator()));
710
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
17
    return Status::OK();
714
17
}
_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.08M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.08M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.08M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.37M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.37M
    }
724
2.08M
    _closed = true;
725
2.08M
    return Status::OK();
726
2.08M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
119k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
119k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
119k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
119k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
119k
    }
724
119k
    _closed = true;
725
119k
    return Status::OK();
726
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
1
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
1
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
1
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1
    }
724
1
    _closed = true;
725
1
    return Status::OK();
726
1
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
277k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
277k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
277k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
277k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
277k
    }
724
277k
    _closed = true;
725
277k
    return Status::OK();
726
277k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
31
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
31
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
29
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
29
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
29
    }
724
29
    _closed = true;
725
29
    return Status::OK();
726
31
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
9.99k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
9.99k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
9.99k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
9.99k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
9.99k
    }
724
9.99k
    _closed = true;
725
9.99k
    return Status::OK();
726
9.99k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
8.79k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
8.79k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
8.79k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
8.79k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
8.79k
    }
724
8.79k
    _closed = true;
725
8.79k
    return Status::OK();
726
8.79k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
152k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
152k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
152k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
152k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
152k
    }
724
152k
    _closed = true;
725
152k
    return Status::OK();
726
152k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
604
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
604
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
604
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
604
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
604
    }
724
604
    _closed = true;
725
604
    return Status::OK();
726
604
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
291
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
291
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
291
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
291
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
291
    }
724
291
    _closed = true;
725
291
    return Status::OK();
726
291
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
708k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
708k
    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
708k
    _closed = true;
725
708k
    return Status::OK();
726
708k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
5.97k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
5.97k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
5.97k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
5.97k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
5.97k
    }
724
5.97k
    _closed = true;
725
5.97k
    return Status::OK();
726
5.97k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
609
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
609
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
609
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
609
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
609
    }
724
609
    _closed = true;
725
609
    return Status::OK();
726
609
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
3.89k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
3.89k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
3.89k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
3.89k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
3.89k
    }
724
3.89k
    _closed = true;
725
3.89k
    return Status::OK();
726
3.89k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.3k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.3k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.3k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.3k
    }
724
12.3k
    _closed = true;
725
12.3k
    return Status::OK();
726
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
282k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
282k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
282k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
282k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
282k
    }
724
282k
    _closed = true;
725
282k
    return Status::OK();
726
282k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
501k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
501k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
501k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
501k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
501k
    }
724
501k
    _closed = true;
725
501k
    return Status::OK();
726
501k
}
_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
16.0k
                                                          bool* eos) {
731
16.0k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
16.0k
    return pull(state, block, eos);
733
16.0k
}
_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
15.6k
                                                          bool* eos) {
731
15.6k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
15.6k
    return pull(state, block, eos);
733
15.6k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
715k
                                                         bool* eos) {
738
715k
    auto& local_state = get_local_state(state);
739
715k
    if (need_more_input_data(state)) {
740
687k
        local_state._child_block->clear_column_data(
741
687k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
687k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
687k
                state, local_state._child_block.get(), &local_state._child_eos));
744
687k
        *eos = local_state._child_eos;
745
687k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
82.1k
            return Status::OK();
747
82.1k
        }
748
604k
        {
749
604k
            SCOPED_TIMER(local_state.exec_time_counter());
750
604k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
604k
        }
752
604k
    }
753
754
633k
    if (!need_more_input_data(state)) {
755
577k
        SCOPED_TIMER(local_state.exec_time_counter());
756
577k
        bool new_eos = false;
757
577k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
577k
        if (new_eos) {
759
496k
            *eos = true;
760
496k
        } else if (!need_more_input_data(state)) {
761
23.9k
            *eos = false;
762
23.9k
        }
763
577k
    }
764
633k
    return Status::OK();
765
633k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
144k
                                                         bool* eos) {
738
144k
    auto& local_state = get_local_state(state);
739
144k
    if (need_more_input_data(state)) {
740
128k
        local_state._child_block->clear_column_data(
741
128k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
128k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
128k
                state, local_state._child_block.get(), &local_state._child_eos));
744
128k
        *eos = local_state._child_eos;
745
128k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
41.7k
            return Status::OK();
747
41.7k
        }
748
87.1k
        {
749
87.1k
            SCOPED_TIMER(local_state.exec_time_counter());
750
87.1k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
87.1k
        }
752
87.1k
    }
753
754
102k
    if (!need_more_input_data(state)) {
755
102k
        SCOPED_TIMER(local_state.exec_time_counter());
756
102k
        bool new_eos = false;
757
102k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
102k
        if (new_eos) {
759
47.0k
            *eos = true;
760
55.9k
        } else if (!need_more_input_data(state)) {
761
9.75k
            *eos = false;
762
9.75k
        }
763
102k
    }
764
102k
    return Status::OK();
765
102k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.17k
                                                         bool* eos) {
738
4.17k
    auto& local_state = get_local_state(state);
739
4.17k
    if (need_more_input_data(state)) {
740
2.40k
        local_state._child_block->clear_column_data(
741
2.40k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.40k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.40k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.40k
        *eos = local_state._child_eos;
745
2.40k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
559
            return Status::OK();
747
559
        }
748
1.84k
        {
749
1.84k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.84k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.84k
        }
752
1.84k
    }
753
754
3.63k
    if (!need_more_input_data(state)) {
755
3.63k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.63k
        bool new_eos = false;
757
3.63k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.63k
        if (new_eos) {
759
1.36k
            *eos = true;
760
2.27k
        } else if (!need_more_input_data(state)) {
761
1.76k
            *eos = false;
762
1.76k
        }
763
3.63k
    }
764
3.61k
    return Status::OK();
765
3.61k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
5.01k
                                                         bool* eos) {
738
5.01k
    auto& local_state = get_local_state(state);
739
5.01k
    if (need_more_input_data(state)) {
740
5.01k
        local_state._child_block->clear_column_data(
741
5.01k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
5.01k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
5.01k
                state, local_state._child_block.get(), &local_state._child_eos));
744
5.01k
        *eos = local_state._child_eos;
745
5.01k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.73k
            return Status::OK();
747
1.73k
        }
748
3.28k
        {
749
3.28k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.28k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.28k
        }
752
3.28k
    }
753
754
3.28k
    if (!need_more_input_data(state)) {
755
3.28k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.28k
        bool new_eos = false;
757
3.28k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.28k
        if (new_eos) {
759
1.74k
            *eos = true;
760
1.74k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.28k
    }
764
3.28k
    return Status::OK();
765
3.28k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
42.0k
                                                         bool* eos) {
738
42.0k
    auto& local_state = get_local_state(state);
739
42.0k
    if (need_more_input_data(state)) {
740
42.0k
        local_state._child_block->clear_column_data(
741
42.0k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
42.0k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
42.0k
                state, local_state._child_block.get(), &local_state._child_eos));
744
42.0k
        *eos = local_state._child_eos;
745
42.0k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
5.21k
            return Status::OK();
747
5.21k
        }
748
36.8k
        {
749
36.8k
            SCOPED_TIMER(local_state.exec_time_counter());
750
36.8k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
36.8k
        }
752
36.8k
    }
753
754
36.8k
    if (!need_more_input_data(state)) {
755
11.6k
        SCOPED_TIMER(local_state.exec_time_counter());
756
11.6k
        bool new_eos = false;
757
11.6k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
11.6k
        if (new_eos) {
759
11.5k
            *eos = true;
760
11.5k
        } else if (!need_more_input_data(state)) {
761
3
            *eos = false;
762
3
        }
763
11.6k
    }
764
36.8k
    return Status::OK();
765
36.8k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
482k
                                                         bool* eos) {
738
482k
    auto& local_state = get_local_state(state);
739
483k
    if (need_more_input_data(state)) {
740
483k
        local_state._child_block->clear_column_data(
741
483k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
483k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
483k
                state, local_state._child_block.get(), &local_state._child_eos));
744
483k
        *eos = local_state._child_eos;
745
483k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
29.7k
            return Status::OK();
747
29.7k
        }
748
454k
        {
749
454k
            SCOPED_TIMER(local_state.exec_time_counter());
750
454k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
454k
        }
752
454k
    }
753
754
452k
    if (!need_more_input_data(state)) {
755
422k
        SCOPED_TIMER(local_state.exec_time_counter());
756
422k
        bool new_eos = false;
757
422k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
422k
        if (new_eos) {
759
421k
            *eos = true;
760
421k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
422k
    }
764
452k
    return Status::OK();
765
452k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
31.3k
                                                         bool* eos) {
738
31.3k
    auto& local_state = get_local_state(state);
739
31.3k
    if (need_more_input_data(state)) {
740
19.2k
        local_state._child_block->clear_column_data(
741
19.2k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
19.2k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
19.2k
                state, local_state._child_block.get(), &local_state._child_eos));
744
19.2k
        *eos = local_state._child_eos;
745
19.2k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.84k
            return Status::OK();
747
2.84k
        }
748
16.3k
        {
749
16.3k
            SCOPED_TIMER(local_state.exec_time_counter());
750
16.3k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
16.3k
        }
752
16.3k
    }
753
754
28.4k
    if (!need_more_input_data(state)) {
755
27.9k
        SCOPED_TIMER(local_state.exec_time_counter());
756
27.9k
        bool new_eos = false;
757
27.9k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
27.9k
        if (new_eos) {
759
9.97k
            *eos = true;
760
18.0k
        } else if (!need_more_input_data(state)) {
761
12.0k
            *eos = false;
762
12.0k
        }
763
27.9k
    }
764
28.4k
    return Status::OK();
765
28.4k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
6.07k
                                                         bool* eos) {
738
6.07k
    auto& local_state = get_local_state(state);
739
6.07k
    if (need_more_input_data(state)) {
740
5.71k
        local_state._child_block->clear_column_data(
741
5.71k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
5.71k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
5.71k
                state, local_state._child_block.get(), &local_state._child_eos));
744
5.71k
        *eos = local_state._child_eos;
745
5.71k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
324
            return Status::OK();
747
324
        }
748
5.38k
        {
749
5.38k
            SCOPED_TIMER(local_state.exec_time_counter());
750
5.38k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
5.38k
        }
752
5.38k
    }
753
754
5.74k
    if (!need_more_input_data(state)) {
755
5.74k
        SCOPED_TIMER(local_state.exec_time_counter());
756
5.74k
        bool new_eos = false;
757
5.74k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
5.74k
        if (new_eos) {
759
3.70k
            *eos = true;
760
3.70k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
5.74k
    }
764
5.74k
    return Status::OK();
765
5.74k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
66.3k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
66.3k
    RETURN_IF_ERROR(Base::init(state, info));
771
66.3k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
66.3k
                                                         "AsyncWriterDependency", true);
773
66.3k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
66.3k
                             _finish_dependency));
775
776
66.3k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
66.3k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
66.3k
    return Status::OK();
779
66.3k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
519
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
519
    RETURN_IF_ERROR(Base::init(state, info));
771
519
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
519
                                                         "AsyncWriterDependency", true);
773
519
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
519
                             _finish_dependency));
775
776
519
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
519
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
519
    return Status::OK();
779
519
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
88
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
88
    RETURN_IF_ERROR(Base::init(state, info));
771
88
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
88
                                                         "AsyncWriterDependency", true);
773
88
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
88
                             _finish_dependency));
775
776
88
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
88
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
88
    return Status::OK();
779
88
}
_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.50k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.50k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.50k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.50k
                                                         "AsyncWriterDependency", true);
773
9.50k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.50k
                             _finish_dependency));
775
776
9.50k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.50k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.50k
    return Status::OK();
779
9.50k
}
_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.40k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.40k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.40k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.40k
                                                         "AsyncWriterDependency", true);
773
3.40k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.40k
                             _finish_dependency));
775
776
3.40k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.40k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.40k
    return Status::OK();
779
3.40k
}
_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
176
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
176
    RETURN_IF_ERROR(Base::init(state, info));
771
176
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
176
                                                         "AsyncWriterDependency", true);
773
176
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
176
                             _finish_dependency));
775
776
176
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
176
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
176
    return Status::OK();
779
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
640
    RETURN_IF_ERROR(Base::init(state, info));
771
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
640
                                                         "AsyncWriterDependency", true);
773
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
640
                             _finish_dependency));
775
776
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
640
    return Status::OK();
779
640
}
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
66.7k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
66.7k
    RETURN_IF_ERROR(Base::open(state));
785
66.7k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
590k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
523k
        RETURN_IF_ERROR(
788
523k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
523k
    }
790
66.7k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
66.7k
    return Status::OK();
792
66.7k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
519
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
519
    RETURN_IF_ERROR(Base::open(state));
785
519
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.78k
    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
519
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
519
    return Status::OK();
792
519
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
88
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
88
    RETURN_IF_ERROR(Base::open(state));
785
88
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
412
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
324
        RETURN_IF_ERROR(
788
324
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
324
    }
790
88
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
88
    return Status::OK();
792
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
47.1k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
47.1k
    RETURN_IF_ERROR(Base::open(state));
785
47.1k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
344k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
296k
        RETURN_IF_ERROR(
788
296k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
296k
    }
790
47.1k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
47.1k
    return Status::OK();
792
47.1k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.42k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.42k
    RETURN_IF_ERROR(Base::open(state));
785
9.42k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
59.1k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
49.6k
        RETURN_IF_ERROR(
788
49.6k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
49.6k
    }
790
9.42k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.42k
    return Status::OK();
792
9.42k
}
_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.40k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.40k
    RETURN_IF_ERROR(Base::open(state));
785
3.40k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
42.1k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
38.7k
        RETURN_IF_ERROR(
788
38.7k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
38.7k
    }
790
3.40k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.40k
    return Status::OK();
792
3.40k
}
_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
128
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
96
        RETURN_IF_ERROR(
788
96
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
96
    }
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
176
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
176
    RETURN_IF_ERROR(Base::open(state));
785
176
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
526
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
350
        RETURN_IF_ERROR(
788
350
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
350
    }
790
176
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
176
    return Status::OK();
792
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
640
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
640
    RETURN_IF_ERROR(Base::open(state));
785
640
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
4.39k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
3.75k
        RETURN_IF_ERROR(
788
3.75k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
3.75k
    }
790
640
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
640
    return Status::OK();
792
640
}
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
92.1k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
92.1k
    return _writer->sink(block, eos);
798
92.1k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.51k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.51k
    return _writer->sink(block, eos);
798
2.51k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
112
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
112
    return _writer->sink(block, eos);
798
112
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
64.2k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
64.2k
    return _writer->sink(block, eos);
798
64.2k
}
_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.53k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.53k
    return _writer->sink(block, eos);
798
7.53k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
5.42k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.42k
    return _writer->sink(block, eos);
798
5.42k
}
_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
198
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
198
    return _writer->sink(block, eos);
798
198
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
790
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
790
    return _writer->sink(block, eos);
798
790
}
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
66.9k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
66.9k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
66.9k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
66.9k
    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
66.9k
    if (_writer) {
810
66.9k
        Status st = _writer->get_writer_status();
811
66.9k
        if (exec_status.ok()) {
812
66.8k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
66.8k
                                                       : Status::Cancelled("force close"));
814
66.8k
        } else {
815
91
            _writer->force_close(exec_status);
816
91
        }
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
66.9k
        RETURN_IF_ERROR(st);
821
66.9k
    }
822
66.8k
    return Base::close(state, exec_status);
823
66.9k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
507
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
507
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
507
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
507
    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
507
    if (_writer) {
810
507
        Status st = _writer->get_writer_status();
811
507
        if (exec_status.ok()) {
812
507
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
507
                                                       : Status::Cancelled("force close"));
814
507
        } 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
507
        RETURN_IF_ERROR(st);
821
507
    }
822
507
    return Base::close(state, exec_status);
823
507
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
88
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
88
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
88
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
88
    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
88
    if (_writer) {
810
88
        Status st = _writer->get_writer_status();
811
88
        if (exec_status.ok()) {
812
88
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
88
                                                       : Status::Cancelled("force close"));
814
88
        } 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
88
        RETURN_IF_ERROR(st);
821
88
    }
822
80
    return Base::close(state, exec_status);
823
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
47.2k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
47.2k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
47.2k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
47.2k
    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.3k
    if (_writer) {
810
47.3k
        Status st = _writer->get_writer_status();
811
47.3k
        if (exec_status.ok()) {
812
47.2k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
47.2k
                                                       : Status::Cancelled("force close"));
814
47.2k
        } else {
815
49
            _writer->force_close(exec_status);
816
49
        }
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.3k
        RETURN_IF_ERROR(st);
821
47.3k
    }
822
47.2k
    return Base::close(state, exec_status);
823
47.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.48k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.48k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.48k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.48k
    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.50k
    if (_writer) {
810
9.50k
        Status st = _writer->get_writer_status();
811
9.50k
        if (exec_status.ok()) {
812
9.46k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.46k
                                                       : Status::Cancelled("force close"));
814
9.46k
        } else {
815
40
            _writer->force_close(exec_status);
816
40
        }
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.50k
        RETURN_IF_ERROR(st);
821
9.50k
    }
822
9.48k
    return Base::close(state, exec_status);
823
9.48k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.17k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.17k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.17k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.17k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
5.17k
    if (_writer) {
810
5.17k
        Status st = _writer->get_writer_status();
811
5.17k
        if (exec_status.ok()) {
812
5.17k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
5.17k
                                                       : Status::Cancelled("force close"));
814
5.17k
        } else {
815
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
5.17k
        RETURN_IF_ERROR(st);
821
5.17k
    }
822
5.17k
    return Base::close(state, exec_status);
823
5.17k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.39k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.39k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.39k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.39k
    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.40k
    if (_writer) {
810
3.40k
        Status st = _writer->get_writer_status();
811
3.40k
        if (exec_status.ok()) {
812
3.40k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.40k
                                                       : Status::Cancelled("force close"));
814
3.40k
        } else {
815
2
            _writer->force_close(exec_status);
816
2
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
3.40k
        RETURN_IF_ERROR(st);
821
3.40k
    }
822
3.39k
    return Base::close(state, exec_status);
823
3.39k
}
_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
176
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
176
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
176
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
176
    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
176
    if (_writer) {
810
176
        Status st = _writer->get_writer_status();
811
176
        if (exec_status.ok()) {
812
176
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
176
                                                       : Status::Cancelled("force close"));
814
176
        } 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
176
        RETURN_IF_ERROR(st);
821
176
    }
822
176
    return Base::close(state, exec_status);
823
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
640
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
640
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
640
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
640
    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
640
    if (_writer) {
810
640
        Status st = _writer->get_writer_status();
811
640
        if (exec_status.ok()) {
812
640
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
640
                                                       : Status::Cancelled("force close"));
814
640
        } 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
640
        RETURN_IF_ERROR(st);
821
640
    }
822
640
    return Base::close(state, exec_status);
823
640
}
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