Coverage Report

Created: 2026-07-11 17:16

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.09M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.09M
    if (_parent->nereids_id() == -1) {
122
1.08M
        return fmt::format("(id={})", _parent->node_id());
123
1.08M
    } else {
124
1.00M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.00M
    }
126
2.09M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
71.7k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
71.7k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
71.7k
    } else {
124
71.7k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
71.7k
    }
126
71.7k
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
1
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
1
    if (_parent->nereids_id() == -1) {
122
1
        return fmt::format("(id={})", _parent->node_id());
123
1
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
1
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
258k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
258k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
258k
    } else {
124
258k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
258k
    }
126
258k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
27
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
27
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
27
    } else {
124
27
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
27
    }
126
27
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
10.4k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.4k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
10.4k
    } else {
124
10.4k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
10.4k
    }
126
10.4k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
8.04k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
8.04k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
8.03k
    } else {
124
8.03k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
8.03k
    }
126
8.04k
}
_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
425
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
425
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
425
    } else {
124
425
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
425
    }
126
425
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
170
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
170
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
170
    } else {
124
170
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
170
    }
126
170
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
819k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
819k
    if (_parent->nereids_id() == -1) {
122
377k
        return fmt::format("(id={})", _parent->node_id());
123
441k
    } else {
124
441k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
441k
    }
126
819k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
55.6k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
55.6k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
55.6k
    } else {
124
55.6k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
55.6k
    }
126
55.6k
}
_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
10.0k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.0k
    if (_parent->nereids_id() == -1) {
122
10.0k
        return fmt::format("(id={})", _parent->node_id());
123
10.0k
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
10.0k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
505
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
505
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
403
    } else {
124
403
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
403
    }
126
505
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
5.12k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
5.12k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
5.11k
    } else {
124
5.11k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
5.11k
    }
126
5.12k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
701k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
701k
    if (_parent->nereids_id() == -1) {
122
700k
        return fmt::format("(id={})", _parent->node_id());
123
700k
    } else {
124
342
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
342
    }
126
701k
}
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.32M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.32M
    if (_parent->nereids_id() == -1) {
131
760k
        return fmt::format("(id={})", _parent->node_id());
132
760k
    } else {
133
559k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
559k
    }
135
1.32M
}
_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
260k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
260k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
260k
    } else {
133
260k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
260k
    }
135
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
34
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
34
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
34
    } else {
133
34
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
34
    }
135
34
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
10.5k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
10.5k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
10.5k
    } else {
133
10.5k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
10.5k
    }
135
10.5k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
8.06k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
8.06k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
8.05k
    } else {
133
8.05k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
8.05k
    }
135
8.06k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
152k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
152k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
152k
    } else {
133
152k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
152k
    }
135
152k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
431
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
431
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
431
    } else {
133
431
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
431
    }
135
431
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
180
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
180
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
180
    } else {
133
180
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
180
    }
135
180
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
92
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
92
    if (_parent->nereids_id() == -1) {
131
92
        return fmt::format("(id={})", _parent->node_id());
132
92
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
92
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
5.77k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
5.77k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
5.77k
    } else {
133
5.77k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
5.77k
    }
135
5.77k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
505
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
505
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
403
    } else {
133
403
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
403
    }
135
505
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.6k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.6k
    if (_parent->nereids_id() == -1) {
131
12.6k
        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.6k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
256k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
256k
    if (_parent->nereids_id() == -1) {
131
256k
        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
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
492k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
492k
    if (_parent->nereids_id() == -1) {
131
491k
        return fmt::format("(id={})", _parent->node_id());
132
491k
    } else {
133
694
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
694
    }
135
492k
}
_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
29.2k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
29.2k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
29.2k
    _terminated = true;
143
29.2k
    return Status::OK();
144
29.2k
}
_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
599
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
599
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
599
    _terminated = true;
143
599
    return Status::OK();
144
599
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1
    _terminated = true;
143
1
    return Status::OK();
144
1
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.58k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.58k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.58k
    _terminated = true;
143
2.58k
    return Status::OK();
144
2.58k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
9
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
9
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
9
    _terminated = true;
143
9
    return Status::OK();
144
9
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
904
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
904
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
904
    _terminated = true;
143
904
    return Status::OK();
144
904
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_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
778
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
778
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
778
    _terminated = true;
143
778
    return Status::OK();
144
778
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
164
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
164
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
164
    _terminated = true;
143
164
    return Status::OK();
144
164
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
145
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
145
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
145
    _terminated = true;
143
145
    return Status::OK();
144
145
}
145
146
420k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
420k
    return _child && _child->is_serial_operator() && !is_source()
148
420k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
420k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
420k
}
151
152
33.7k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
33.7k
    if (!_child) {
154
28.7k
        return false;
155
28.7k
    }
156
5.01k
    if (_child->is_serial_operator()) {
157
205
        return true;
158
205
    }
159
4.81k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.81k
    return child_distribution.need_local_exchange() &&
161
4.81k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.01k
}
163
164
82.7k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.7k
    return _child->row_desc();
166
82.7k
}
167
168
template <typename SharedStateArg>
169
20.9k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.9k
    fmt::memory_buffer debug_string_buffer;
171
20.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.9k
    return fmt::to_string(debug_string_buffer);
173
20.9k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
128
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
128
    fmt::memory_buffer debug_string_buffer;
171
128
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
128
    return fmt::to_string(debug_string_buffer);
173
128
}
_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
46
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
46
    fmt::memory_buffer debug_string_buffer;
171
46
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
46
    return fmt::to_string(debug_string_buffer);
173
46
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
32
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
32
    fmt::memory_buffer debug_string_buffer;
171
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
32
    return fmt::to_string(debug_string_buffer);
173
32
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
77
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
77
    fmt::memory_buffer debug_string_buffer;
171
77
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
77
    return fmt::to_string(debug_string_buffer);
173
77
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
20.3k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.3k
    fmt::memory_buffer debug_string_buffer;
171
20.3k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.3k
    return fmt::to_string(debug_string_buffer);
173
20.3k
}
_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
320
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
320
    fmt::memory_buffer debug_string_buffer;
171
320
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
320
    return fmt::to_string(debug_string_buffer);
173
320
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
20.7k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.7k
    fmt::memory_buffer debug_string_buffer;
178
20.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.7k
    return fmt::to_string(debug_string_buffer);
180
20.7k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
18
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
18
    fmt::memory_buffer debug_string_buffer;
178
18
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
18
    return fmt::to_string(debug_string_buffer);
180
18
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
46
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
46
    fmt::memory_buffer debug_string_buffer;
178
46
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
46
    return fmt::to_string(debug_string_buffer);
180
46
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
18
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
18
    fmt::memory_buffer debug_string_buffer;
178
18
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
18
    return fmt::to_string(debug_string_buffer);
180
18
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
77
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
77
    fmt::memory_buffer debug_string_buffer;
178
77
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
77
    return fmt::to_string(debug_string_buffer);
180
77
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
159
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
159
    fmt::memory_buffer debug_string_buffer;
178
159
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
159
    return fmt::to_string(debug_string_buffer);
180
159
}
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
176
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
176
    fmt::memory_buffer debug_string_buffer;
178
176
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
176
    return fmt::to_string(debug_string_buffer);
180
176
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
20.2k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.2k
    fmt::memory_buffer debug_string_buffer;
178
20.2k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.2k
    return fmt::to_string(debug_string_buffer);
180
20.2k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
20.9k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
20.9k
    fmt::memory_buffer debug_string_buffer;
184
20.9k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
20.9k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
20.9k
                   _is_serial_operator);
187
20.9k
    return fmt::to_string(debug_string_buffer);
188
20.9k
}
189
190
20.9k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
20.9k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
20.9k
}
193
194
831k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
831k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
831k
    _nereids_id = tnode.nereids_id;
197
831k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.04k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.04k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.04k
            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.04k
    }
210
831k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
831k
    _op_name = substr + "_OPERATOR";
212
213
831k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
831k
    } else if (tnode.__isset.conjuncts) {
216
454k
        for (const auto& conjunct : tnode.conjuncts) {
217
454k
            VExprContextSPtr context;
218
454k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
454k
            _conjuncts.emplace_back(context);
220
454k
        }
221
148k
    }
222
223
    // create the projections expr
224
831k
    if (tnode.__isset.projections) {
225
323k
        DCHECK(tnode.__isset.output_tuple_id);
226
323k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
323k
    }
228
831k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.05k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.05k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.19k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.19k
            VExprContextSPtrs projections;
233
8.19k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.19k
            _intermediate_projections.push_back(projections);
235
8.19k
        }
236
4.05k
    }
237
831k
    return Status::OK();
238
831k
}
239
240
863k
Status OperatorXBase::prepare(RuntimeState* state) {
241
863k
    for (auto& conjunct : _conjuncts) {
242
453k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
453k
    }
244
863k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
810k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
599k
            return a->execute_cost() < b->execute_cost();
247
599k
        });
248
810k
    };
249
250
871k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.19k
        RETURN_IF_ERROR(
252
8.19k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.19k
    }
254
863k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
863k
    if (has_output_row_desc()) {
257
322k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
322k
    }
259
260
863k
    for (auto& conjunct : _conjuncts) {
261
454k
        RETURN_IF_ERROR(conjunct->open(state));
262
454k
    }
263
863k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
863k
    for (auto& projections : _intermediate_projections) {
265
8.19k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.19k
    }
267
863k
    if (_child && !is_source()) {
268
134k
        RETURN_IF_ERROR(_child->prepare(state));
269
134k
    }
270
271
863k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
863k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
863k
    return Status::OK();
277
863k
}
278
279
6.41k
Status OperatorXBase::terminate(RuntimeState* state) {
280
6.41k
    if (_child && !is_source()) {
281
1.21k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.21k
    }
283
6.41k
    auto result = state->get_local_state_result(operator_id());
284
6.41k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
6.41k
    return result.value()->terminate(state);
288
6.41k
}
289
290
5.86M
Status OperatorXBase::close(RuntimeState* state) {
291
5.86M
    if (_child && !is_source()) {
292
1.02M
        RETURN_IF_ERROR(_child->close(state));
293
1.02M
    }
294
5.86M
    auto result = state->get_local_state_result(operator_id());
295
5.86M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
5.86M
    return result.value()->close(state);
299
5.86M
}
300
301
308k
void PipelineXLocalStateBase::clear_origin_block() {
302
308k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
308k
}
304
305
558k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
558k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
558k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
558k
    return Status::OK();
310
558k
}
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
308k
                                     Block* output_block) const {
319
308k
    auto* local_state = state->get_local_state(operator_id());
320
308k
    SCOPED_TIMER(local_state->exec_time_counter());
321
308k
    SCOPED_TIMER(local_state->_projection_timer);
322
308k
    const size_t rows = origin_block->rows();
323
308k
    if (rows == 0) {
324
160k
        return Status::OK();
325
160k
    }
326
148k
    Block input_block = *origin_block;
327
328
148k
    size_t bytes_usage = 0;
329
148k
    ColumnsWithTypeAndName new_columns;
330
148k
    for (const auto& projections : local_state->_intermediate_projections) {
331
1.64k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.64k
        new_columns.resize(projections.size());
336
11.1k
        for (int i = 0; i < projections.size(); i++) {
337
9.47k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
9.47k
            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.47k
        }
346
1.64k
        Block tmp_block {new_columns};
347
1.64k
        bytes_usage += tmp_block.allocated_bytes();
348
1.64k
        input_block.swap(tmp_block);
349
1.64k
    }
350
351
148k
    if (input_block.rows() != rows) {
352
0
        return Status::InternalError(
353
0
                "after intermediate projections input block rows {} not equal origin rows {}, "
354
0
                "input_block: {}",
355
0
                input_block.rows(), rows, input_block.dump_structure());
356
0
    }
357
682k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
682k
        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
682k
        } else {
368
682k
            if (_keep_origin || !from->is_exclusive()) {
369
682k
                to->insert_range_from(*from, 0, rows);
370
682k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
682k
        }
375
682k
    };
376
377
148k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
148k
            output_block, *_output_row_descriptor);
379
148k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
148k
    auto& mutable_columns = mutable_block.mutable_columns();
381
148k
    if (rows != 0) {
382
148k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
831k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
682k
            ColumnPtr column_ptr;
385
682k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
682k
            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
682k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
682k
            bytes_usage += column_ptr->allocated_bytes();
394
682k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
682k
        }
396
148k
        DCHECK(mutable_block.rows() == rows);
397
148k
    }
398
148k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
148k
    return Status::OK();
401
148k
}
402
403
4.69M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.69M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.69M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.69M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.69M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.69M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.69M
            if (_debug_point_count++ % 2 == 0) {
410
4.69M
                return Status::OK();
411
4.69M
            }
412
4.69M
        }
413
4.69M
    });
414
415
4.69M
    Status status;
416
4.69M
    auto* local_state = state->get_local_state(operator_id());
417
4.69M
    Defer defer([&]() {
418
4.69M
        if (status.ok()) {
419
4.69M
            local_state->update_output_block_counters(*block);
420
4.69M
        }
421
4.69M
    });
422
4.69M
    if (_output_row_descriptor) {
423
308k
        local_state->clear_origin_block();
424
308k
        status = get_block(state, &local_state->_origin_block, eos);
425
308k
        if (UNLIKELY(!status.ok())) {
426
19
            return status;
427
19
        }
428
308k
        status = do_projections(state, &local_state->_origin_block, block);
429
308k
        return status;
430
308k
    }
431
4.38M
    status = get_block(state, block, eos);
432
4.38M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.38M
    return status;
434
4.38M
}
435
436
3.15M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.15M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
7.56k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
7.56k
        *eos = true;
440
7.56k
    }
441
442
3.15M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.15M
        auto op_name = to_lower(_parent->_op_name);
444
3.15M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.15M
        arg_op_name = to_lower(arg_op_name);
446
447
3.15M
        if (op_name == arg_op_name) {
448
3.15M
            *eos = true;
449
3.15M
        }
450
3.15M
    });
451
452
3.15M
    if (auto rows = block->rows()) {
453
921k
        _num_rows_returned += rows;
454
921k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
921k
    }
456
3.15M
}
457
458
29.2k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
29.2k
    auto result = state->get_sink_local_state_result();
460
29.2k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
29.2k
    return result.value()->terminate(state);
464
29.2k
}
465
466
20.7k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
20.7k
    fmt::memory_buffer debug_string_buffer;
468
469
20.7k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
20.7k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
20.7k
    return fmt::to_string(debug_string_buffer);
472
20.7k
}
473
474
20.7k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
20.7k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
20.7k
}
477
478
461k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
461k
    std::string op_name = "UNKNOWN_SINK";
480
461k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
462k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
462k
        op_name = it->second;
484
462k
    }
485
461k
    _name = op_name + "_OPERATOR";
486
461k
    return Status::OK();
487
461k
}
488
489
312k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
312k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
312k
    _nereids_id = tnode.nereids_id;
492
312k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
312k
    _name = substr + "_SINK_OPERATOR";
494
312k
    return Status::OK();
495
312k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.00M
                                                            LocalSinkStateInfo& info) {
500
2.00M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.00M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.00M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.00M
    return Status::OK();
504
2.00M
}
_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
425k
                                                            LocalSinkStateInfo& info) {
500
425k
    auto local_state = LocalStateType::create_unique(this, state);
501
425k
    RETURN_IF_ERROR(local_state->init(state, info));
502
425k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
425k
    return Status::OK();
504
425k
}
_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
519
                                                            LocalSinkStateInfo& info) {
500
519
    auto local_state = LocalStateType::create_unique(this, state);
501
519
    RETURN_IF_ERROR(local_state->init(state, info));
502
519
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
519
    return Status::OK();
504
519
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
47.0k
                                                            LocalSinkStateInfo& info) {
500
47.0k
    auto local_state = LocalStateType::create_unique(this, state);
501
47.0k
    RETURN_IF_ERROR(local_state->init(state, info));
502
47.0k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
47.0k
    return Status::OK();
504
47.0k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.46k
                                                            LocalSinkStateInfo& info) {
500
9.46k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.46k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.46k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.46k
    return Status::OK();
504
9.46k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.16k
                                                            LocalSinkStateInfo& info) {
500
5.16k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.16k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.16k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.16k
    return Status::OK();
504
5.16k
}
_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.38k
                                                            LocalSinkStateInfo& info) {
500
3.38k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.38k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.38k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.38k
    return Status::OK();
504
3.38k
}
_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
160
                                                            LocalSinkStateInfo& info) {
500
160
    auto local_state = LocalStateType::create_unique(this, state);
501
160
    RETURN_IF_ERROR(local_state->init(state, info));
502
160
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
160
    return Status::OK();
504
160
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_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
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
8.04k
                                                            LocalSinkStateInfo& info) {
500
8.04k
    auto local_state = LocalStateType::create_unique(this, state);
501
8.04k
    RETURN_IF_ERROR(local_state->init(state, info));
502
8.04k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
8.04k
    return Status::OK();
504
8.04k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
89
                                                            LocalSinkStateInfo& info) {
500
89
    auto local_state = LocalStateType::create_unique(this, state);
501
89
    RETURN_IF_ERROR(local_state->init(state, info));
502
89
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
89
    return Status::OK();
504
89
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
260k
                                                            LocalSinkStateInfo& info) {
500
260k
    auto local_state = LocalStateType::create_unique(this, state);
501
260k
    RETURN_IF_ERROR(local_state->init(state, info));
502
260k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
260k
    return Status::OK();
504
260k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
34
                                                            LocalSinkStateInfo& info) {
500
34
    auto local_state = LocalStateType::create_unique(this, state);
501
34
    RETURN_IF_ERROR(local_state->init(state, info));
502
34
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
34
    return Status::OK();
504
34
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
256k
                                                            LocalSinkStateInfo& info) {
500
256k
    auto local_state = LocalStateType::create_unique(this, state);
501
256k
    RETURN_IF_ERROR(local_state->init(state, info));
502
256k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
256k
    return Status::OK();
504
256k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
152k
                                                            LocalSinkStateInfo& info) {
500
152k
    auto local_state = LocalStateType::create_unique(this, state);
501
152k
    RETURN_IF_ERROR(local_state->init(state, info));
502
152k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
152k
    return Status::OK();
504
152k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
431
                                                            LocalSinkStateInfo& info) {
500
431
    auto local_state = LocalStateType::create_unique(this, state);
501
431
    RETURN_IF_ERROR(local_state->init(state, info));
502
431
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
431
    return Status::OK();
504
431
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
180
                                                            LocalSinkStateInfo& info) {
500
180
    auto local_state = LocalStateType::create_unique(this, state);
501
180
    RETURN_IF_ERROR(local_state->init(state, info));
502
180
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
180
    return Status::OK();
504
180
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
678k
                                                            LocalSinkStateInfo& info) {
500
678k
    auto local_state = LocalStateType::create_unique(this, state);
501
678k
    RETURN_IF_ERROR(local_state->init(state, info));
502
678k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
678k
    return Status::OK();
504
678k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
10.5k
                                                            LocalSinkStateInfo& info) {
500
10.5k
    auto local_state = LocalStateType::create_unique(this, state);
501
10.5k
    RETURN_IF_ERROR(local_state->init(state, info));
502
10.5k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
10.5k
    return Status::OK();
504
10.5k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.77k
                                                            LocalSinkStateInfo& info) {
500
5.77k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.77k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.77k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.77k
    return Status::OK();
504
5.77k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.59k
                                                            LocalSinkStateInfo& info) {
500
3.59k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.59k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.59k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.59k
    return Status::OK();
504
3.59k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
403
                                                            LocalSinkStateInfo& info) {
500
403
    auto local_state = LocalStateType::create_unique(this, state);
501
403
    RETURN_IF_ERROR(local_state->init(state, info));
502
403
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
403
    return Status::OK();
504
403
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.82k
                                                            LocalSinkStateInfo& info) {
500
4.82k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.82k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.82k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.82k
    return Status::OK();
504
4.82k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.69k
                                                            LocalSinkStateInfo& info) {
500
2.69k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.69k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.69k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.69k
    return Status::OK();
504
2.69k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.55k
                                                            LocalSinkStateInfo& info) {
500
2.55k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.55k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.55k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.55k
    return Status::OK();
504
2.55k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_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_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
568
                                                            LocalSinkStateInfo& info) {
500
568
    auto local_state = LocalStateType::create_unique(this, state);
501
568
    RETURN_IF_ERROR(local_state->init(state, info));
502
568
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
568
    return Status::OK();
504
568
}
_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.71M
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.71M
    } else {
515
1.71M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.71M
        ss->id = operator_id();
517
1.71M
        for (auto& dest : dests_id()) {
518
1.70M
            ss->related_op_ids.insert(dest);
519
1.70M
        }
520
1.71M
        return ss;
521
1.71M
    }
522
1.71M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
99.8k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
99.8k
    } else {
515
99.8k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
99.8k
        ss->id = operator_id();
517
99.8k
        for (auto& dest : dests_id()) {
518
99.6k
            ss->related_op_ids.insert(dest);
519
99.6k
        }
520
99.8k
        return ss;
521
99.8k
    }
522
99.8k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
426k
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
426k
    } else {
515
426k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
426k
        ss->id = operator_id();
517
426k
        for (auto& dest : dests_id()) {
518
426k
            ss->related_op_ids.insert(dest);
519
426k
        }
520
426k
        return ss;
521
426k
    }
522
426k
}
_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
47.1k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
47.1k
    } else {
515
47.1k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
47.1k
        ss->id = operator_id();
517
47.1k
        for (auto& dest : dests_id()) {
518
47.0k
            ss->related_op_ids.insert(dest);
519
47.0k
        }
520
47.1k
        return ss;
521
47.1k
    }
522
47.1k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.46k
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.46k
    } else {
515
9.46k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.46k
        ss->id = operator_id();
517
9.46k
        for (auto& dest : dests_id()) {
518
9.46k
            ss->related_op_ids.insert(dest);
519
9.46k
        }
520
9.46k
        return ss;
521
9.46k
    }
522
9.46k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
5.16k
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.16k
    } else {
515
5.16k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
5.16k
        ss->id = operator_id();
517
5.16k
        for (auto& dest : dests_id()) {
518
5.16k
            ss->related_op_ids.insert(dest);
519
5.16k
        }
520
5.16k
        return ss;
521
5.16k
    }
522
5.16k
}
_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.39k
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.39k
    } else {
515
3.39k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.39k
        ss->id = operator_id();
517
3.39k
        for (auto& dest : dests_id()) {
518
3.38k
            ss->related_op_ids.insert(dest);
519
3.38k
        }
520
3.39k
        return ss;
521
3.39k
    }
522
3.39k
}
_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
160
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
160
    } else {
515
160
        auto ss = LocalStateType::SharedStateType::create_shared();
516
160
        ss->id = operator_id();
517
160
        for (auto& dest : dests_id()) {
518
160
            ss->related_op_ids.insert(dest);
519
160
        }
520
160
        return ss;
521
160
    }
522
160
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
608
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
608
    } else {
515
608
        auto ss = LocalStateType::SharedStateType::create_shared();
516
608
        ss->id = operator_id();
517
608
        for (auto& dest : dests_id()) {
518
608
            ss->related_op_ids.insert(dest);
519
608
        }
520
608
        return ss;
521
608
    }
522
608
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
8.07k
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.07k
    } else {
515
8.07k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
8.07k
        ss->id = operator_id();
517
8.07k
        for (auto& dest : dests_id()) {
518
8.07k
            ss->related_op_ids.insert(dest);
519
8.07k
        }
520
8.07k
        return ss;
521
8.07k
    }
522
8.07k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
89
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
89
    } else {
515
89
        auto ss = LocalStateType::SharedStateType::create_shared();
516
89
        ss->id = operator_id();
517
89
        for (auto& dest : dests_id()) {
518
89
            ss->related_op_ids.insert(dest);
519
89
        }
520
89
        return ss;
521
89
    }
522
89
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
260k
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
260k
    } else {
515
260k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
260k
        ss->id = operator_id();
517
260k
        for (auto& dest : dests_id()) {
518
260k
            ss->related_op_ids.insert(dest);
519
260k
        }
520
260k
        return ss;
521
260k
    }
522
260k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
36
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
36
    } else {
515
36
        auto ss = LocalStateType::SharedStateType::create_shared();
516
36
        ss->id = operator_id();
517
36
        for (auto& dest : dests_id()) {
518
36
            ss->related_op_ids.insert(dest);
519
36
        }
520
36
        return ss;
521
36
    }
522
36
}
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
179
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
179
    } else {
515
179
        auto ss = LocalStateType::SharedStateType::create_shared();
516
179
        ss->id = operator_id();
517
179
        for (auto& dest : dests_id()) {
518
179
            ss->related_op_ids.insert(dest);
519
179
        }
520
179
        return ss;
521
179
    }
522
179
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
679k
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
679k
    } else {
515
679k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
679k
        ss->id = operator_id();
517
679k
        for (auto& dest : dests_id()) {
518
677k
            ss->related_op_ids.insert(dest);
519
677k
        }
520
679k
        return ss;
521
679k
    }
522
679k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
10.5k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
10.5k
    } else {
515
10.5k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
10.5k
        ss->id = operator_id();
517
10.5k
        for (auto& dest : dests_id()) {
518
10.5k
            ss->related_op_ids.insert(dest);
519
10.5k
        }
520
10.5k
        return ss;
521
10.5k
    }
522
10.5k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
505
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
505
    } else {
515
505
        auto ss = LocalStateType::SharedStateType::create_shared();
516
505
        ss->id = operator_id();
517
505
        for (auto& dest : dests_id()) {
518
505
            ss->related_op_ids.insert(dest);
519
505
        }
520
505
        return ss;
521
505
    }
522
505
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.56k
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.56k
    } else {
515
2.56k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.56k
        ss->id = operator_id();
517
2.56k
        for (auto& dest : dests_id()) {
518
2.55k
            ss->related_op_ids.insert(dest);
519
2.55k
        }
520
2.56k
        return ss;
521
2.56k
    }
522
2.56k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.53k
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.53k
    } else {
515
2.53k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.53k
        ss->id = operator_id();
517
2.53k
        for (auto& dest : dests_id()) {
518
2.52k
            ss->related_op_ids.insert(dest);
519
2.52k
        }
520
2.53k
        return ss;
521
2.53k
    }
522
2.53k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
565
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
565
    } else {
515
565
        auto ss = LocalStateType::SharedStateType::create_shared();
516
565
        ss->id = operator_id();
517
565
        for (auto& dest : dests_id()) {
518
560
            ss->related_op_ids.insert(dest);
519
560
        }
520
565
        return ss;
521
565
    }
522
565
}
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.44M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.44M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.44M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.44M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.44M
    return Status::OK();
530
2.44M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
71.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
71.7k
    auto local_state = LocalStateType::create_unique(state, this);
527
71.7k
    RETURN_IF_ERROR(local_state->init(state, info));
528
71.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
71.7k
    return Status::OK();
530
71.7k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
308k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
308k
    auto local_state = LocalStateType::create_unique(state, this);
527
308k
    RETURN_IF_ERROR(local_state->init(state, info));
528
308k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
308k
    return Status::OK();
530
308k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
127
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
127
    auto local_state = LocalStateType::create_unique(state, this);
527
127
    RETURN_IF_ERROR(local_state->init(state, info));
528
127
    state->emplace_local_state(operator_id(), std::move(local_state));
529
127
    return Status::OK();
530
127
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
35.1k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
35.1k
    auto local_state = LocalStateType::create_unique(state, this);
527
35.1k
    RETURN_IF_ERROR(local_state->init(state, info));
528
35.1k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
35.1k
    return Status::OK();
530
35.1k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.01k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.01k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.01k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.01k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.01k
    return Status::OK();
530
8.01k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.16k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.16k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.16k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.16k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.16k
    return Status::OK();
530
8.16k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
27
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
27
    auto local_state = LocalStateType::create_unique(state, this);
527
27
    RETURN_IF_ERROR(local_state->init(state, info));
528
27
    state->emplace_local_state(operator_id(), std::move(local_state));
529
27
    return Status::OK();
530
27
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
251k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
251k
    auto local_state = LocalStateType::create_unique(state, this);
527
251k
    RETURN_IF_ERROR(local_state->init(state, info));
528
251k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
251k
    return Status::OK();
530
251k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
152k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
152k
    auto local_state = LocalStateType::create_unique(state, this);
527
152k
    RETURN_IF_ERROR(local_state->init(state, info));
528
152k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
152k
    return Status::OK();
530
152k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
421
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
421
    auto local_state = LocalStateType::create_unique(state, this);
527
421
    RETURN_IF_ERROR(local_state->init(state, info));
528
421
    state->emplace_local_state(operator_id(), std::move(local_state));
529
421
    return Status::OK();
530
421
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
170
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
170
    auto local_state = LocalStateType::create_unique(state, this);
527
170
    RETURN_IF_ERROR(local_state->init(state, info));
528
170
    state->emplace_local_state(operator_id(), std::move(local_state));
529
170
    return Status::OK();
530
170
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
3.88k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
3.88k
    auto local_state = LocalStateType::create_unique(state, this);
527
3.88k
    RETURN_IF_ERROR(local_state->init(state, info));
528
3.88k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
3.88k
    return Status::OK();
530
3.88k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
378k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
378k
    auto local_state = LocalStateType::create_unique(state, this);
527
378k
    RETURN_IF_ERROR(local_state->init(state, info));
528
378k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
378k
    return Status::OK();
530
378k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.29k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.29k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.29k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.29k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.29k
    return Status::OK();
530
1.29k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.4k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.4k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.4k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.4k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.4k
    return Status::OK();
530
10.4k
}
_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.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
55.7k
    auto local_state = LocalStateType::create_unique(state, this);
527
55.7k
    RETURN_IF_ERROR(local_state->init(state, info));
528
55.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
55.7k
    return Status::OK();
530
55.7k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.0k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.0k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.0k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.0k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.0k
    return Status::OK();
530
10.0k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
402
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
402
    auto local_state = LocalStateType::create_unique(state, this);
527
402
    RETURN_IF_ERROR(local_state->init(state, info));
528
402
    state->emplace_local_state(operator_id(), std::move(local_state));
529
402
    return Status::OK();
530
402
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.56k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.56k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.56k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.56k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.56k
    return Status::OK();
530
2.56k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.54k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.54k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.54k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.54k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.54k
    return Status::OK();
530
2.54k
}
_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.21k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.21k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.21k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.21k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.21k
    return Status::OK();
530
2.21k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.12k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.12k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.12k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.12k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.12k
    return Status::OK();
530
7.12k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
702k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
702k
    auto local_state = LocalStateType::create_unique(state, this);
527
702k
    RETURN_IF_ERROR(local_state->init(state, info));
528
702k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
702k
    return Status::OK();
530
702k
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
14
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
14
    auto local_state = LocalStateType::create_unique(state, this);
527
14
    RETURN_IF_ERROR(local_state->init(state, info));
528
14
    state->emplace_local_state(operator_id(), std::move(local_state));
529
14
    return Status::OK();
530
14
}
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
164
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
164
    auto local_state = LocalStateType::create_unique(state, this);
527
164
    RETURN_IF_ERROR(local_state->init(state, info));
528
164
    state->emplace_local_state(operator_id(), std::move(local_state));
529
164
    return Status::OK();
530
164
}
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.18k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.18k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.18k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.18k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.18k
    return Status::OK();
530
2.18k
}
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.75k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.75k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.75k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.75k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.75k
    return Status::OK();
530
1.75k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.76k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.76k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.76k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.76k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.76k
    return Status::OK();
530
2.76k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_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_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
410k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
410k
    auto local_state = LocalStateType::create_unique(state, this);
527
410k
    RETURN_IF_ERROR(local_state->init(state, info));
528
410k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
410k
    return Status::OK();
530
410k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.00M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.44M
        : _num_rows_returned(0),
538
2.44M
          _rows_returned_counter(nullptr),
539
2.44M
          _parent(parent),
540
2.44M
          _state(state),
541
2.44M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.44M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.44M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.44M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.44M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.44M
    _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.44M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.44M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.44M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.44M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.44M
    if constexpr (!is_fake_shared) {
556
1.28M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
721k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
721k
                                    .first.get()
559
721k
                                    ->template cast<SharedStateArg>();
560
561
721k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
721k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
721k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
721k
        } else if (info.shared_state) {
565
495k
            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
495k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
495k
            _dependency = _shared_state->create_source_dependency(
572
495k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
495k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
495k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
495k
        } else {
576
64.0k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
4.23k
                DCHECK(false);
578
4.23k
            }
579
64.0k
        }
580
1.28M
    }
581
582
2.44M
    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.44M
    _rows_returned_counter =
587
2.44M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.44M
    _blocks_returned_counter =
589
2.44M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.44M
    _output_block_bytes_counter =
591
2.44M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.44M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.44M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.44M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.44M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.44M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.44M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.44M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.44M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.44M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.44M
    _memory_used_counter =
602
2.44M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.44M
    _common_profile->add_info_string("IsColocate",
604
2.44M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.44M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.44M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.44M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.44M
    return Status::OK();
609
2.44M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
71.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
71.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
71.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
71.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
71.9k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
71.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
71.9k
    _operator_profile->add_child(_common_profile.get(), true);
553
71.9k
    _operator_profile->add_child(_custom_profile.get(), true);
554
71.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
71.9k
    if constexpr (!is_fake_shared) {
556
71.9k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
20.1k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
20.1k
                                    .first.get()
559
20.1k
                                    ->template cast<SharedStateArg>();
560
561
20.1k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
20.1k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
20.1k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
51.8k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
51.2k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
51.2k
            _dependency = _shared_state->create_source_dependency(
572
51.2k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
51.2k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
51.2k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
51.2k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
501
        }
580
71.9k
    }
581
582
71.9k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
71.9k
    _rows_returned_counter =
587
71.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
71.9k
    _blocks_returned_counter =
589
71.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
71.9k
    _output_block_bytes_counter =
591
71.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
71.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
71.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
71.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
71.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
71.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
71.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
71.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
71.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
71.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
71.9k
    _memory_used_counter =
602
71.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
71.9k
    _common_profile->add_info_string("IsColocate",
604
71.9k
                                     std::to_string(_parent->is_colocated_operator()));
605
71.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
71.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
71.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
71.9k
    return Status::OK();
609
71.9k
}
_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
260k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
260k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
260k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
260k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
260k
    _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
260k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
260k
    _operator_profile->add_child(_common_profile.get(), true);
553
260k
    _operator_profile->add_child(_custom_profile.get(), true);
554
260k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
260k
    if constexpr (!is_fake_shared) {
556
260k
        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
260k
        } 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
255k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
255k
            _dependency = _shared_state->create_source_dependency(
572
255k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
255k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
255k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
255k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
4.99k
        }
580
260k
    }
581
582
260k
    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
260k
    _rows_returned_counter =
587
260k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
260k
    _blocks_returned_counter =
589
260k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
260k
    _output_block_bytes_counter =
591
260k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
260k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
260k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
260k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
260k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
260k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
260k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
260k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
260k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
260k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
260k
    _memory_used_counter =
602
260k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
260k
    _common_profile->add_info_string("IsColocate",
604
260k
                                     std::to_string(_parent->is_colocated_operator()));
605
260k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
260k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
260k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
260k
    return Status::OK();
609
260k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
27
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
27
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
27
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
27
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
27
    _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
27
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
27
    _operator_profile->add_child(_common_profile.get(), true);
553
27
    _operator_profile->add_child(_custom_profile.get(), true);
554
27
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
27
    if constexpr (!is_fake_shared) {
556
27
        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
27
        } 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
27
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
27
            _dependency = _shared_state->create_source_dependency(
572
27
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
27
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
27
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
27
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
27
    }
581
582
27
    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
27
    _rows_returned_counter =
587
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
27
    _blocks_returned_counter =
589
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
27
    _output_block_bytes_counter =
591
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
27
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
27
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
27
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
27
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
27
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
27
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
27
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
27
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
27
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
27
    _memory_used_counter =
602
27
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
27
    _common_profile->add_info_string("IsColocate",
604
27
                                     std::to_string(_parent->is_colocated_operator()));
605
27
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
27
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
27
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
27
    return Status::OK();
609
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.5k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.5k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.5k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.5k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.5k
    _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.5k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.5k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.5k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.5k
    if constexpr (!is_fake_shared) {
556
10.5k
        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.5k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
10.4k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.4k
            _dependency = _shared_state->create_source_dependency(
572
10.4k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.4k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.4k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.4k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
37
        }
580
10.5k
    }
581
582
10.5k
    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.5k
    _rows_returned_counter =
587
10.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.5k
    _blocks_returned_counter =
589
10.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.5k
    _output_block_bytes_counter =
591
10.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.5k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.5k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.5k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.5k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.5k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.5k
    _memory_used_counter =
602
10.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.5k
    _common_profile->add_info_string("IsColocate",
604
10.5k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.5k
    return Status::OK();
609
10.5k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
8.07k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
8.07k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
8.07k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
8.07k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
8.07k
    _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.07k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
8.07k
    _operator_profile->add_child(_common_profile.get(), true);
553
8.07k
    _operator_profile->add_child(_custom_profile.get(), true);
554
8.07k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
8.07k
    if constexpr (!is_fake_shared) {
556
8.07k
        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.07k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
7.98k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
7.98k
            _dependency = _shared_state->create_source_dependency(
572
7.98k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
7.98k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
7.98k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
7.98k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
87
        }
580
8.07k
    }
581
582
8.07k
    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.07k
    _rows_returned_counter =
587
8.07k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
8.07k
    _blocks_returned_counter =
589
8.07k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
8.07k
    _output_block_bytes_counter =
591
8.07k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
8.07k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
8.07k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
8.07k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
8.07k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
8.07k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
8.07k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
8.07k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
8.07k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
8.07k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
8.07k
    _memory_used_counter =
602
8.07k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
8.07k
    _common_profile->add_info_string("IsColocate",
604
8.07k
                                     std::to_string(_parent->is_colocated_operator()));
605
8.07k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
8.07k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
8.07k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
8.07k
    return Status::OK();
609
8.07k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
152k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
152k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
152k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
152k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
152k
    _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
152k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
152k
    _operator_profile->add_child(_common_profile.get(), true);
553
152k
    _operator_profile->add_child(_custom_profile.get(), true);
554
152k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
152k
    if constexpr (!is_fake_shared) {
556
152k
        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
152k
        } 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
151k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
151k
            _dependency = _shared_state->create_source_dependency(
572
151k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
151k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
151k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
151k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1.13k
        }
580
152k
    }
581
582
152k
    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
152k
    _rows_returned_counter =
587
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
152k
    _blocks_returned_counter =
589
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
152k
    _output_block_bytes_counter =
591
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
152k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
152k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
152k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
152k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
152k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
152k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
152k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
152k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
152k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
152k
    _memory_used_counter =
602
152k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
152k
    _common_profile->add_info_string("IsColocate",
604
152k
                                     std::to_string(_parent->is_colocated_operator()));
605
152k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
152k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
152k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
152k
    return Status::OK();
609
152k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
432
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
432
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
432
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
432
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
432
    _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
432
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
432
    _operator_profile->add_child(_common_profile.get(), true);
553
432
    _operator_profile->add_child(_custom_profile.get(), true);
554
432
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
432
    if constexpr (!is_fake_shared) {
556
432
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
424
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
424
                                    .first.get()
559
424
                                    ->template cast<SharedStateArg>();
560
561
424
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
424
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
424
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
424
        } 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
8
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
8
        }
580
432
    }
581
582
432
    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
432
    _rows_returned_counter =
587
432
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
432
    _blocks_returned_counter =
589
432
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
432
    _output_block_bytes_counter =
591
432
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
432
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
432
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
432
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
432
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
432
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
432
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
432
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
432
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
432
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
432
    _memory_used_counter =
602
432
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
432
    _common_profile->add_info_string("IsColocate",
604
432
                                     std::to_string(_parent->is_colocated_operator()));
605
432
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
432
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
432
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
432
    return Status::OK();
609
432
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
170
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
170
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
170
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
170
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
170
    _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
170
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
170
    _operator_profile->add_child(_common_profile.get(), true);
553
170
    _operator_profile->add_child(_custom_profile.get(), true);
554
170
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
170
    if constexpr (!is_fake_shared) {
556
170
        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
170
        } 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
170
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
170
            _dependency = _shared_state->create_source_dependency(
572
170
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
170
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
170
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
170
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
170
    }
581
582
170
    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
170
    _rows_returned_counter =
587
170
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
170
    _blocks_returned_counter =
589
170
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
170
    _output_block_bytes_counter =
591
170
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
170
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
170
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
170
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
170
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
170
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
170
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
170
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
170
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
170
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
170
    _memory_used_counter =
602
170
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
170
    _common_profile->add_info_string("IsColocate",
604
170
                                     std::to_string(_parent->is_colocated_operator()));
605
170
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
170
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
170
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
170
    return Status::OK();
609
170
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.16M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.16M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.16M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.16M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.16M
    _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.16M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.16M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.16M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.16M
    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.16M
    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.16M
    _rows_returned_counter =
587
1.16M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.16M
    _blocks_returned_counter =
589
1.16M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.16M
    _output_block_bytes_counter =
591
1.16M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.16M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.16M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.16M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.16M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.16M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.16M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.16M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.16M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.16M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.16M
    _memory_used_counter =
602
1.16M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.16M
    _common_profile->add_info_string("IsColocate",
604
1.16M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.16M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.16M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.16M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.16M
    return Status::OK();
609
1.16M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
55.7k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
55.7k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
55.7k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
55.7k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
55.7k
    _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.7k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
55.7k
    _operator_profile->add_child(_common_profile.get(), true);
553
55.7k
    _operator_profile->add_child(_custom_profile.get(), true);
554
55.7k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
55.7k
    if constexpr (!is_fake_shared) {
556
55.7k
        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.7k
        } 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.70k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
2.70k
            _dependency = _shared_state->create_source_dependency(
572
2.70k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
2.70k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
2.70k
                    _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.7k
    }
581
582
55.7k
    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.7k
    _rows_returned_counter =
587
55.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
55.7k
    _blocks_returned_counter =
589
55.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
55.7k
    _output_block_bytes_counter =
591
55.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
55.7k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
55.7k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
55.7k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
55.7k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
55.7k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
55.7k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
55.7k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
55.7k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
55.7k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
55.7k
    _memory_used_counter =
602
55.7k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
55.7k
    _common_profile->add_info_string("IsColocate",
604
55.7k
                                     std::to_string(_parent->is_colocated_operator()));
605
55.7k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
55.7k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
55.7k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
55.7k
    return Status::OK();
609
55.7k
}
_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
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
10.0k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.0k
            _dependency = _shared_state->create_source_dependency(
572
10.0k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.0k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.0k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.0k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
7
        }
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_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
504
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
504
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
504
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
504
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
504
    _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
504
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
504
    _operator_profile->add_child(_common_profile.get(), true);
553
504
    _operator_profile->add_child(_custom_profile.get(), true);
554
504
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
504
    if constexpr (!is_fake_shared) {
556
504
        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
504
        } 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
504
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
504
            _dependency = _shared_state->create_source_dependency(
572
504
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
504
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
504
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
504
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
504
    }
581
582
505
    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
504
    _rows_returned_counter =
587
504
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
504
    _blocks_returned_counter =
589
504
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
504
    _output_block_bytes_counter =
591
504
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
504
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
504
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
504
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
504
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
504
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
504
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
504
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
504
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
504
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
504
    _memory_used_counter =
602
504
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
504
    _common_profile->add_info_string("IsColocate",
604
504
                                     std::to_string(_parent->is_colocated_operator()));
605
504
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
504
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
504
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
504
    return Status::OK();
609
504
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.13k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.13k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.13k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.13k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.13k
    _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.13k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.13k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.13k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.13k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.13k
    if constexpr (!is_fake_shared) {
556
5.13k
        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.13k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
5.12k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
5.12k
            _dependency = _shared_state->create_source_dependency(
572
5.12k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
5.12k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
5.12k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
5.12k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
10
        }
580
5.13k
    }
581
582
5.13k
    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.13k
    _rows_returned_counter =
587
5.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.13k
    _blocks_returned_counter =
589
5.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.13k
    _output_block_bytes_counter =
591
5.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.13k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.13k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.13k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.13k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.13k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.13k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.13k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.13k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.13k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.13k
    _memory_used_counter =
602
5.13k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.13k
    _common_profile->add_info_string("IsColocate",
604
5.13k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.13k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.13k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.13k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.13k
    return Status::OK();
609
5.13k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
705k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
705k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
705k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
705k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
705k
    _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
705k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
705k
    _operator_profile->add_child(_common_profile.get(), true);
553
705k
    _operator_profile->add_child(_custom_profile.get(), true);
554
705k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
705k
    if constexpr (!is_fake_shared) {
556
705k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
700k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
700k
                                    .first.get()
559
700k
                                    ->template cast<SharedStateArg>();
560
561
700k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
700k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
700k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
700k
        } 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
4.23k
        } else {
576
4.23k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
4.23k
                DCHECK(false);
578
4.23k
            }
579
4.23k
        }
580
705k
    }
581
582
705k
    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
705k
    _rows_returned_counter =
587
705k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
705k
    _blocks_returned_counter =
589
705k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
705k
    _output_block_bytes_counter =
591
705k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
705k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
705k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
705k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
705k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
705k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
705k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
705k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
705k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
705k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
705k
    _memory_used_counter =
602
705k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
705k
    _common_profile->add_info_string("IsColocate",
604
705k
                                     std::to_string(_parent->is_colocated_operator()));
605
705k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
705k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
705k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
705k
    return Status::OK();
609
705k
}
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.45M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.45M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.45M
    _projections.resize(_parent->_projections.size());
615
2.96M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
507k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
507k
    }
618
5.17M
    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.45M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.46M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
11.0k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
73.4k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
62.3k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
62.3k
                    state, _intermediate_projections[i][j]));
627
62.3k
        }
628
11.0k
    }
629
2.45M
    return Status::OK();
630
2.45M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
71.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
71.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
71.9k
    _projections.resize(_parent->_projections.size());
615
72.9k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
976
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
976
    }
618
363k
    for (size_t i = 0; i < _projections.size(); i++) {
619
291k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
291k
    }
621
71.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
73.5k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.54k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
15.1k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
13.6k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
13.6k
                    state, _intermediate_projections[i][j]));
627
13.6k
        }
628
1.54k
    }
629
71.9k
    return Status::OK();
630
71.9k
}
_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
260k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
260k
    _conjuncts.resize(_parent->_conjuncts.size());
614
260k
    _projections.resize(_parent->_projections.size());
615
260k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
261k
    for (size_t i = 0; i < _projections.size(); i++) {
619
359
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
359
    }
621
260k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
260k
    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
260k
    return Status::OK();
630
260k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
27
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
27
    _conjuncts.resize(_parent->_conjuncts.size());
614
27
    _projections.resize(_parent->_projections.size());
615
27
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
27
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
27
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
27
    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
27
    return Status::OK();
630
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.5k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.5k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.5k
    _projections.resize(_parent->_projections.size());
615
10.5k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
81
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
81
    }
618
66.7k
    for (size_t i = 0; i < _projections.size(); i++) {
619
56.2k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
56.2k
    }
621
10.5k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.6k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
146
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
908
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
762
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
762
                    state, _intermediate_projections[i][j]));
627
762
        }
628
146
    }
629
10.5k
    return Status::OK();
630
10.5k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
8.08k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
8.08k
    _conjuncts.resize(_parent->_conjuncts.size());
614
8.08k
    _projections.resize(_parent->_projections.size());
615
9.14k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
1.06k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
1.06k
    }
618
21.8k
    for (size_t i = 0; i < _projections.size(); i++) {
619
13.7k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
13.7k
    }
621
8.08k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
8.16k
    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.08k
    return Status::OK();
630
8.08k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
152k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
152k
    _conjuncts.resize(_parent->_conjuncts.size());
614
152k
    _projections.resize(_parent->_projections.size());
615
156k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.82k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.82k
    }
618
416k
    for (size_t i = 0; i < _projections.size(); i++) {
619
263k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
263k
    }
621
152k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
153k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
252
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.69k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.44k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.44k
                    state, _intermediate_projections[i][j]));
627
1.44k
        }
628
252
    }
629
152k
    return Status::OK();
630
152k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
434
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
434
    _conjuncts.resize(_parent->_conjuncts.size());
614
434
    _projections.resize(_parent->_projections.size());
615
447
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
13
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
13
    }
618
1.43k
    for (size_t i = 0; i < _projections.size(); i++) {
619
996
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
996
    }
621
434
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
434
    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
434
    return Status::OK();
630
434
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
174
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
174
    _conjuncts.resize(_parent->_conjuncts.size());
614
174
    _projections.resize(_parent->_projections.size());
615
174
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
470
    for (size_t i = 0; i < _projections.size(); i++) {
619
296
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
296
    }
621
174
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
174
    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
174
    return Status::OK();
630
174
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.17M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.17M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.17M
    _projections.resize(_parent->_projections.size());
615
1.66M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
498k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
498k
    }
618
3.17M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.00M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.00M
    }
621
1.17M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.17M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
9.05k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
55.0k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
45.9k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
45.9k
                    state, _intermediate_projections[i][j]));
627
45.9k
        }
628
9.05k
    }
629
1.17M
    return Status::OK();
630
1.17M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
55.8k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
55.8k
    _conjuncts.resize(_parent->_conjuncts.size());
614
55.8k
    _projections.resize(_parent->_projections.size());
615
55.8k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
151k
    for (size_t i = 0; i < _projections.size(); i++) {
619
96.0k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
96.0k
    }
621
55.8k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
55.8k
    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
55.8k
    return Status::OK();
630
55.8k
}
_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
9.99k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
9.99k
    _conjuncts.resize(_parent->_conjuncts.size());
614
9.99k
    _projections.resize(_parent->_projections.size());
615
13.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.67k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.67k
    }
618
9.99k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
9.99k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
9.99k
    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
9.99k
    return Status::OK();
630
9.99k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
505
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
505
    _conjuncts.resize(_parent->_conjuncts.size());
614
505
    _projections.resize(_parent->_projections.size());
615
505
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
505
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
505
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
505
    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
505
    return Status::OK();
630
505
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.12k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.12k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.12k
    _projections.resize(_parent->_projections.size());
615
5.12k
    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.29k
    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.12k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.12k
    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.12k
    return Status::OK();
630
5.12k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
706k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
706k
    _conjuncts.resize(_parent->_conjuncts.size());
614
706k
    _projections.resize(_parent->_projections.size());
615
706k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
706k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
706k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
706k
    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
706k
    return Status::OK();
630
706k
}
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
6.41k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6.41k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
6.41k
    _terminated = true;
638
6.41k
    return Status::OK();
639
6.41k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
280
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
280
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
280
    _terminated = true;
638
280
    return Status::OK();
639
280
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
109
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
109
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
109
    _terminated = true;
638
109
    return Status::OK();
639
109
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
27
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
27
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
27
    _terminated = true;
638
27
    return Status::OK();
639
27
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
300
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
300
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
300
    _terminated = true;
638
300
    return Status::OK();
639
300
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
3
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
3
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
3
    _terminated = true;
638
3
    return Status::OK();
639
3
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5.08k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.08k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
5.08k
    _terminated = true;
638
5.08k
    return Status::OK();
639
5.08k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
6
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
6
    _terminated = true;
638
6
    return Status::OK();
639
6
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
5
    _terminated = true;
638
5
    return Status::OK();
639
5
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1
    _terminated = true;
638
1
    return Status::OK();
639
1
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
4
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
4
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
4
    _terminated = true;
638
4
    return Status::OK();
639
4
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
584
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
584
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
584
    _terminated = true;
638
584
    return Status::OK();
639
584
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
14
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
14
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
14
    _terminated = true;
638
14
    return Status::OK();
639
14
}
640
641
template <typename SharedStateArg>
642
2.74M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.74M
    if (_closed) {
644
291k
        return Status::OK();
645
291k
    }
646
2.45M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.28M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.28M
    }
649
2.45M
    _closed = true;
650
2.45M
    return Status::OK();
651
2.74M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
71.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
71.9k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
71.9k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
71.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
71.9k
    }
649
71.9k
    _closed = true;
650
71.9k
    return Status::OK();
651
71.9k
}
_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
518k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
518k
    if (_closed) {
644
259k
        return Status::OK();
645
259k
    }
646
259k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
259k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
259k
    }
649
259k
    _closed = true;
650
259k
    return Status::OK();
651
518k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
27
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
27
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
27
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
27
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
27
    }
649
27
    _closed = true;
650
27
    return Status::OK();
651
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.5k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.5k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.5k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.5k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.5k
    }
649
10.5k
    _closed = true;
650
10.5k
    return Status::OK();
651
10.5k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
16.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
16.3k
    if (_closed) {
644
8.25k
        return Status::OK();
645
8.25k
    }
646
8.06k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
8.06k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
8.06k
    }
649
8.06k
    _closed = true;
650
8.06k
    return Status::OK();
651
16.3k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
152k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
152k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
152k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
152k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
152k
    }
649
152k
    _closed = true;
650
152k
    return Status::OK();
651
152k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
433
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
433
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
433
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
433
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
433
    }
649
433
    _closed = true;
650
433
    return Status::OK();
651
433
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
169
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
169
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
169
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
169
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
169
    }
649
169
    _closed = true;
650
169
    return Status::OK();
651
169
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.18M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.18M
    if (_closed) {
644
18.0k
        return Status::OK();
645
18.0k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.17M
    _closed = true;
650
1.17M
    return Status::OK();
651
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
55.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
55.8k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
55.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
55.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
55.8k
    }
649
55.8k
    _closed = true;
650
55.8k
    return Status::OK();
651
55.8k
}
_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
9.99k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
9.99k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
9.99k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
9.99k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
9.99k
    }
649
9.99k
    _closed = true;
650
9.99k
    return Status::OK();
651
9.99k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
805
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
805
    if (_closed) {
644
403
        return Status::OK();
645
403
    }
646
402
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
402
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
402
    }
649
402
    _closed = true;
650
402
    return Status::OK();
651
805
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.3k
    if (_closed) {
644
5.25k
        return Status::OK();
645
5.25k
    }
646
5.12k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.12k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.12k
    }
649
5.12k
    _closed = true;
650
5.12k
    return Status::OK();
651
10.3k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
707k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
707k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
707k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
707k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
707k
    }
649
707k
    _closed = true;
650
707k
    return Status::OK();
651
707k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
334
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
334
    if (_closed) {
644
179
        return Status::OK();
645
179
    }
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
334
}
652
653
template <typename SharedState>
654
2.00M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.00M
    _operator_profile =
657
2.00M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.00M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.00M
    _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.00M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.00M
    _operator_profile->add_child(_common_profile, true);
666
2.00M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.00M
    _operator_profile->set_metadata(_parent->node_id());
669
2.00M
    _wait_for_finish_dependency_timer =
670
2.00M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.00M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.00M
    if constexpr (!is_fake_shared) {
673
1.32M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.32M
            info.shared_state_map.end()) {
675
277k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
256k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
256k
            }
678
277k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
277k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
277k
                                                  ? 0
681
277k
                                                  : info.task_idx]
682
277k
                                  .get();
683
277k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.04M
        } else {
685
1.04M
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
137
                DCHECK(false);
687
137
            }
688
1.04M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.04M
            _dependency = _shared_state->create_sink_dependency(
690
1.04M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.04M
        }
692
1.32M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.32M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.32M
    }
695
696
2.00M
    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.00M
    _rows_input_counter =
701
2.00M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.00M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.00M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.00M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.00M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.00M
    _memory_used_counter =
707
2.00M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.00M
    _common_profile->add_info_string("IsColocate",
709
2.00M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.00M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.00M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.00M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.00M
    return Status::OK();
714
2.00M
}
_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
20.1k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
20.1k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
20.1k
                                                  ? 0
681
20.1k
                                                  : info.task_idx]
682
20.1k
                                  .get();
683
20.1k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
99.7k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
99.7k
            _shared_state = info.shared_state->template cast<SharedState>();
689
99.7k
            _dependency = _shared_state->create_sink_dependency(
690
99.7k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
99.7k
        }
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
260k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
260k
    _operator_profile =
657
260k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
260k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
260k
    _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
260k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
260k
    _operator_profile->add_child(_common_profile, true);
666
260k
    _operator_profile->add_child(_custom_profile, true);
667
668
260k
    _operator_profile->set_metadata(_parent->node_id());
669
260k
    _wait_for_finish_dependency_timer =
670
260k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
260k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
260k
    if constexpr (!is_fake_shared) {
673
260k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
260k
            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
260k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
260k
            _shared_state = info.shared_state->template cast<SharedState>();
689
260k
            _dependency = _shared_state->create_sink_dependency(
690
260k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
260k
        }
692
260k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
260k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
260k
    }
695
696
260k
    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
260k
    _rows_input_counter =
701
260k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
260k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
260k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
260k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
260k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
260k
    _memory_used_counter =
707
260k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
260k
    _common_profile->add_info_string("IsColocate",
709
260k
                                     std::to_string(_parent->is_colocated_operator()));
710
260k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
260k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
260k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
260k
    return Status::OK();
714
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
34
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
34
    _operator_profile =
657
34
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
34
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
34
    _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
34
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
34
    _operator_profile->add_child(_common_profile, true);
666
34
    _operator_profile->add_child(_custom_profile, true);
667
668
34
    _operator_profile->set_metadata(_parent->node_id());
669
34
    _wait_for_finish_dependency_timer =
670
34
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
34
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
34
    if constexpr (!is_fake_shared) {
673
34
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
34
            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
34
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
34
            _shared_state = info.shared_state->template cast<SharedState>();
689
34
            _dependency = _shared_state->create_sink_dependency(
690
34
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
34
        }
692
34
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
34
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
34
    }
695
696
34
    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
34
    _rows_input_counter =
701
34
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
34
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
34
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
34
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
34
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
34
    _memory_used_counter =
707
34
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
34
    _common_profile->add_info_string("IsColocate",
709
34
                                     std::to_string(_parent->is_colocated_operator()));
710
34
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
34
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
34
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
34
    return Status::OK();
714
34
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
10.5k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
10.5k
    _operator_profile =
657
10.5k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
10.5k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
10.5k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
10.5k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
10.5k
    _operator_profile->add_child(_common_profile, true);
666
10.5k
    _operator_profile->add_child(_custom_profile, true);
667
668
10.5k
    _operator_profile->set_metadata(_parent->node_id());
669
10.5k
    _wait_for_finish_dependency_timer =
670
10.5k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
10.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
10.5k
    if constexpr (!is_fake_shared) {
673
10.5k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
10.5k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
10.5k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
10.5k
            _shared_state = info.shared_state->template cast<SharedState>();
689
10.5k
            _dependency = _shared_state->create_sink_dependency(
690
10.5k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
10.5k
        }
692
10.5k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
10.5k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
10.5k
    }
695
696
10.5k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
10.5k
    _rows_input_counter =
701
10.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
10.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
10.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
10.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
10.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
10.5k
    _memory_used_counter =
707
10.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
10.5k
    _common_profile->add_info_string("IsColocate",
709
10.5k
                                     std::to_string(_parent->is_colocated_operator()));
710
10.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
10.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
10.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
10.5k
    return Status::OK();
714
10.5k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
8.06k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
8.06k
    _operator_profile =
657
8.06k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
8.06k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
8.06k
    _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.06k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
8.06k
    _operator_profile->add_child(_common_profile, true);
666
8.06k
    _operator_profile->add_child(_custom_profile, true);
667
668
8.06k
    _operator_profile->set_metadata(_parent->node_id());
669
8.06k
    _wait_for_finish_dependency_timer =
670
8.06k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
8.06k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
8.06k
    if constexpr (!is_fake_shared) {
673
8.06k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
8.06k
            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.06k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
8.06k
            _shared_state = info.shared_state->template cast<SharedState>();
689
8.06k
            _dependency = _shared_state->create_sink_dependency(
690
8.06k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
8.06k
        }
692
8.06k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
8.06k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
8.06k
    }
695
696
8.06k
    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.06k
    _rows_input_counter =
701
8.06k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
8.06k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
8.06k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
8.06k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
8.06k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
8.06k
    _memory_used_counter =
707
8.06k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
8.06k
    _common_profile->add_info_string("IsColocate",
709
8.06k
                                     std::to_string(_parent->is_colocated_operator()));
710
8.06k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
8.06k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
8.06k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
8.06k
    return Status::OK();
714
8.06k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
152k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
152k
    _operator_profile =
657
152k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
152k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
152k
    _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
152k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
152k
    _operator_profile->add_child(_common_profile, true);
666
152k
    _operator_profile->add_child(_custom_profile, true);
667
668
152k
    _operator_profile->set_metadata(_parent->node_id());
669
152k
    _wait_for_finish_dependency_timer =
670
152k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
152k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
152k
    if constexpr (!is_fake_shared) {
673
152k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
152k
            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
152k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
152k
            _shared_state = info.shared_state->template cast<SharedState>();
689
152k
            _dependency = _shared_state->create_sink_dependency(
690
152k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
152k
        }
692
152k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
152k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
152k
    }
695
696
152k
    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
152k
    _rows_input_counter =
701
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
152k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
152k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
152k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
152k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
152k
    _memory_used_counter =
707
152k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
152k
    _common_profile->add_info_string("IsColocate",
709
152k
                                     std::to_string(_parent->is_colocated_operator()));
710
152k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
152k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
152k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
152k
    return Status::OK();
714
152k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
432
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
432
    _operator_profile =
657
432
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
432
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
432
    _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
432
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
432
    _operator_profile->add_child(_common_profile, true);
666
432
    _operator_profile->add_child(_custom_profile, true);
667
668
432
    _operator_profile->set_metadata(_parent->node_id());
669
432
    _wait_for_finish_dependency_timer =
670
432
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
432
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
432
    if constexpr (!is_fake_shared) {
673
432
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
432
            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
431
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
431
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
431
                                                  ? 0
681
431
                                                  : info.task_idx]
682
431
                                  .get();
683
431
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
431
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
1
            _shared_state = info.shared_state->template cast<SharedState>();
689
1
            _dependency = _shared_state->create_sink_dependency(
690
1
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1
        }
692
432
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
432
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
432
    }
695
696
432
    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
432
    _rows_input_counter =
701
432
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
432
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
432
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
432
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
432
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
432
    _memory_used_counter =
707
432
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
432
    _common_profile->add_info_string("IsColocate",
709
432
                                     std::to_string(_parent->is_colocated_operator()));
710
432
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
432
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
432
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
432
    return Status::OK();
714
432
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
180
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
180
    _operator_profile =
657
180
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
180
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
180
    _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
180
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
180
    _operator_profile->add_child(_common_profile, true);
666
180
    _operator_profile->add_child(_custom_profile, true);
667
668
180
    _operator_profile->set_metadata(_parent->node_id());
669
180
    _wait_for_finish_dependency_timer =
670
180
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
180
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
180
    if constexpr (!is_fake_shared) {
673
180
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
180
            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
180
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
180
            _shared_state = info.shared_state->template cast<SharedState>();
689
180
            _dependency = _shared_state->create_sink_dependency(
690
180
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
180
        }
692
180
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
180
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
180
    }
695
696
180
    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
180
    _rows_input_counter =
701
180
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
180
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
180
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
180
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
180
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
180
    _memory_used_counter =
707
180
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
180
    _common_profile->add_info_string("IsColocate",
709
180
                                     std::to_string(_parent->is_colocated_operator()));
710
180
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
180
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
180
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
180
    return Status::OK();
714
180
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
680k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
680k
    _operator_profile =
657
680k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
680k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
680k
    _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
680k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
680k
    _operator_profile->add_child(_common_profile, true);
666
680k
    _operator_profile->add_child(_custom_profile, true);
667
668
680k
    _operator_profile->set_metadata(_parent->node_id());
669
680k
    _wait_for_finish_dependency_timer =
670
680k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
680k
    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
680k
    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
680k
    _rows_input_counter =
701
680k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
680k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
680k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
680k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
680k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
680k
    _memory_used_counter =
707
680k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
680k
    _common_profile->add_info_string("IsColocate",
709
680k
                                     std::to_string(_parent->is_colocated_operator()));
710
680k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
680k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
680k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
680k
    return Status::OK();
714
680k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
5.78k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
5.78k
    _operator_profile =
657
5.78k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
5.78k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
5.78k
    _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.78k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
5.78k
    _operator_profile->add_child(_common_profile, true);
666
5.78k
    _operator_profile->add_child(_custom_profile, true);
667
668
5.78k
    _operator_profile->set_metadata(_parent->node_id());
669
5.78k
    _wait_for_finish_dependency_timer =
670
5.78k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
5.78k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
5.78k
    if constexpr (!is_fake_shared) {
673
5.78k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
5.78k
            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.78k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
5.78k
            _shared_state = info.shared_state->template cast<SharedState>();
689
5.78k
            _dependency = _shared_state->create_sink_dependency(
690
5.78k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
5.78k
        }
692
5.78k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
5.78k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
5.78k
    }
695
696
5.78k
    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.78k
    _rows_input_counter =
701
5.78k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
5.78k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
5.78k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
5.78k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
5.78k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
5.78k
    _memory_used_counter =
707
5.78k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
5.78k
    _common_profile->add_info_string("IsColocate",
709
5.78k
                                     std::to_string(_parent->is_colocated_operator()));
710
5.78k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
5.78k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
5.78k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
5.78k
    return Status::OK();
714
5.78k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
505
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
505
    _operator_profile =
657
505
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
505
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
505
    _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
505
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
505
    _operator_profile->add_child(_common_profile, true);
666
505
    _operator_profile->add_child(_custom_profile, true);
667
668
505
    _operator_profile->set_metadata(_parent->node_id());
669
505
    _wait_for_finish_dependency_timer =
670
505
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
505
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
505
    if constexpr (!is_fake_shared) {
673
505
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
505
            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
505
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
505
            _shared_state = info.shared_state->template cast<SharedState>();
689
505
            _dependency = _shared_state->create_sink_dependency(
690
505
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
505
        }
692
505
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
505
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
505
    }
695
696
505
    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
505
    _rows_input_counter =
701
505
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
505
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
505
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
505
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
505
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
505
    _memory_used_counter =
707
505
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
505
    _common_profile->add_info_string("IsColocate",
709
505
                                     std::to_string(_parent->is_colocated_operator()));
710
505
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
505
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
505
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
505
    return Status::OK();
714
505
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
3.59k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
3.59k
    _operator_profile =
657
3.59k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
3.59k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
3.59k
    _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.59k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
3.59k
    _operator_profile->add_child(_common_profile, true);
666
3.59k
    _operator_profile->add_child(_custom_profile, true);
667
668
3.59k
    _operator_profile->set_metadata(_parent->node_id());
669
3.59k
    _wait_for_finish_dependency_timer =
670
3.59k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
3.59k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
3.59k
    if constexpr (!is_fake_shared) {
673
3.59k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
3.59k
            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.59k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3.59k
            _shared_state = info.shared_state->template cast<SharedState>();
689
3.59k
            _dependency = _shared_state->create_sink_dependency(
690
3.59k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3.59k
        }
692
3.59k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
3.59k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
3.59k
    }
695
696
3.59k
    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.59k
    _rows_input_counter =
701
3.59k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
3.59k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
3.59k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
3.59k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
3.59k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
3.59k
    _memory_used_counter =
707
3.59k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
3.59k
    _common_profile->add_info_string("IsColocate",
709
3.59k
                                     std::to_string(_parent->is_colocated_operator()));
710
3.59k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
3.59k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
3.59k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
3.59k
    return Status::OK();
714
3.59k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.6k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.6k
    _operator_profile =
657
12.6k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.6k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.6k
    _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.6k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.6k
    _operator_profile->add_child(_common_profile, true);
666
12.6k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.6k
    _operator_profile->set_metadata(_parent->node_id());
669
12.6k
    _wait_for_finish_dependency_timer =
670
12.6k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.6k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.6k
    if constexpr (!is_fake_shared) {
673
12.6k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.6k
            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.6k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.6k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.6k
            _dependency = _shared_state->create_sink_dependency(
690
12.6k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.6k
        }
692
12.6k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.6k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.6k
    }
695
696
12.6k
    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.6k
    _rows_input_counter =
701
12.6k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.6k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.6k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.6k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.6k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.6k
    _memory_used_counter =
707
12.6k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.6k
    _common_profile->add_info_string("IsColocate",
709
12.6k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.6k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.6k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.6k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.6k
    return Status::OK();
714
12.6k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
256k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
256k
    _operator_profile =
657
256k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
256k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
256k
    _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
256k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
256k
    _operator_profile->add_child(_common_profile, true);
666
256k
    _operator_profile->add_child(_custom_profile, true);
667
668
256k
    _operator_profile->set_metadata(_parent->node_id());
669
256k
    _wait_for_finish_dependency_timer =
670
256k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
256k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
256k
    if constexpr (!is_fake_shared) {
673
256k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
256k
            info.shared_state_map.end()) {
675
256k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
256k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
256k
            }
678
256k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
256k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
256k
                                                  ? 0
681
256k
                                                  : info.task_idx]
682
256k
                                  .get();
683
256k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
256k
        } else {
685
137
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
137
                DCHECK(false);
687
137
            }
688
137
            _shared_state = info.shared_state->template cast<SharedState>();
689
137
            _dependency = _shared_state->create_sink_dependency(
690
137
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
137
        }
692
256k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
256k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
256k
    }
695
696
256k
    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
256k
    _rows_input_counter =
701
256k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
256k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
256k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
256k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
256k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
256k
    _memory_used_counter =
707
256k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
256k
    _common_profile->add_info_string("IsColocate",
709
256k
                                     std::to_string(_parent->is_colocated_operator()));
710
256k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
256k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
256k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
256k
    return Status::OK();
714
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
493k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
493k
    _operator_profile =
657
493k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
493k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
493k
    _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
493k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
493k
    _operator_profile->add_child(_common_profile, true);
666
493k
    _operator_profile->add_child(_custom_profile, true);
667
668
493k
    _operator_profile->set_metadata(_parent->node_id());
669
493k
    _wait_for_finish_dependency_timer =
670
493k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
493k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
493k
    if constexpr (!is_fake_shared) {
673
493k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
493k
            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
493k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
493k
            _shared_state = info.shared_state->template cast<SharedState>();
689
493k
            _dependency = _shared_state->create_sink_dependency(
690
493k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
493k
        }
692
493k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
493k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
493k
    }
695
696
493k
    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
493k
    _rows_input_counter =
701
493k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
493k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
493k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
493k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
493k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
493k
    _memory_used_counter =
707
493k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
493k
    _common_profile->add_info_string("IsColocate",
709
493k
                                     std::to_string(_parent->is_colocated_operator()));
710
493k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
493k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
493k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
493k
    return Status::OK();
714
493k
}
_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.00M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.00M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.00M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.32M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.32M
    }
724
2.00M
    _closed = true;
725
2.00M
    return Status::OK();
726
2.00M
}
_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
260k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
260k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
260k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
260k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
260k
    }
724
260k
    _closed = true;
725
260k
    return Status::OK();
726
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
25
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
25
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
23
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
23
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
23
    }
724
23
    _closed = true;
725
23
    return Status::OK();
726
25
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
10.4k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
10.4k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
10.4k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
10.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
10.4k
    }
724
10.4k
    _closed = true;
725
10.4k
    return Status::OK();
726
10.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
8.06k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
8.06k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
8.06k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
8.06k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
8.06k
    }
724
8.06k
    _closed = true;
725
8.06k
    return Status::OK();
726
8.06k
}
_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
433
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
433
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
433
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
433
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
433
    }
724
433
    _closed = true;
725
433
    return Status::OK();
726
433
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
169
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
169
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
169
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
169
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
169
    }
724
169
    _closed = true;
725
169
    return Status::OK();
726
169
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
681k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
681k
    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
681k
    _closed = true;
725
681k
    return Status::OK();
726
681k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
5.78k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
5.78k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
5.78k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
5.78k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
5.78k
    }
724
5.78k
    _closed = true;
725
5.78k
    return Status::OK();
726
5.78k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
403
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
403
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
403
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
403
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
403
    }
724
403
    _closed = true;
725
403
    return Status::OK();
726
403
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
3.59k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
3.59k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
3.59k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
3.59k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
3.59k
    }
724
3.59k
    _closed = true;
725
3.59k
    return Status::OK();
726
3.59k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.7k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.7k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.7k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.7k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.7k
    }
724
12.7k
    _closed = true;
725
12.7k
    return Status::OK();
726
12.7k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
256k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
256k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
256k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
256k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
256k
    }
724
256k
    _closed = true;
725
256k
    return Status::OK();
726
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
495k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
495k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
495k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
495k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
495k
    }
724
495k
    _closed = true;
725
495k
    return Status::OK();
726
495k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
14
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
14
    }
724
14
    _closed = true;
725
14
    return Status::OK();
726
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
328
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
328
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
328
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
328
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
328
    }
724
328
    _closed = true;
725
328
    return Status::OK();
726
328
}
727
728
template <typename LocalStateType>
729
Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
730
14.7k
                                                          bool* eos) {
731
14.7k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.7k
    return pull(state, block, eos);
733
14.7k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
432
                                                          bool* eos) {
731
432
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
432
    return pull(state, block, eos);
733
432
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
14.2k
                                                          bool* eos) {
731
14.2k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.2k
    return pull(state, block, eos);
733
14.2k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
693k
                                                         bool* eos) {
738
693k
    auto& local_state = get_local_state(state);
739
693k
    if (need_more_input_data(state)) {
740
665k
        local_state._child_block->clear_column_data(
741
665k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
665k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
665k
                state, local_state._child_block.get(), &local_state._child_eos));
744
665k
        *eos = local_state._child_eos;
745
665k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
72.2k
            return Status::OK();
747
72.2k
        }
748
593k
        {
749
593k
            SCOPED_TIMER(local_state.exec_time_counter());
750
593k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
593k
        }
752
593k
    }
753
754
621k
    if (!need_more_input_data(state)) {
755
568k
        SCOPED_TIMER(local_state.exec_time_counter());
756
568k
        bool new_eos = false;
757
568k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
568k
        if (new_eos) {
759
486k
            *eos = true;
760
486k
        } else if (!need_more_input_data(state)) {
761
22.3k
            *eos = false;
762
22.3k
        }
763
568k
    }
764
621k
    return Status::OK();
765
621k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
151k
                                                         bool* eos) {
738
151k
    auto& local_state = get_local_state(state);
739
151k
    if (need_more_input_data(state)) {
740
135k
        local_state._child_block->clear_column_data(
741
135k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
135k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
135k
                state, local_state._child_block.get(), &local_state._child_eos));
744
135k
        *eos = local_state._child_eos;
745
135k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
44.5k
            return Status::OK();
747
44.5k
        }
748
90.5k
        {
749
90.5k
            SCOPED_TIMER(local_state.exec_time_counter());
750
90.5k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
90.5k
        }
752
90.5k
    }
753
754
106k
    if (!need_more_input_data(state)) {
755
106k
        SCOPED_TIMER(local_state.exec_time_counter());
756
106k
        bool new_eos = false;
757
106k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
106k
        if (new_eos) {
759
47.7k
            *eos = true;
760
59.0k
        } else if (!need_more_input_data(state)) {
761
9.32k
            *eos = false;
762
9.32k
        }
763
106k
    }
764
106k
    return Status::OK();
765
106k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
3.88k
                                                         bool* eos) {
738
3.88k
    auto& local_state = get_local_state(state);
739
3.88k
    if (need_more_input_data(state)) {
740
2.04k
        local_state._child_block->clear_column_data(
741
2.04k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.04k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.04k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.04k
        *eos = local_state._child_eos;
745
2.04k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
281
            return Status::OK();
747
281
        }
748
1.76k
        {
749
1.76k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.76k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.76k
        }
752
1.76k
    }
753
754
3.61k
    if (!need_more_input_data(state)) {
755
3.61k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.61k
        bool new_eos = false;
757
3.61k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.61k
        if (new_eos) {
759
1.28k
            *eos = true;
760
2.33k
        } else if (!need_more_input_data(state)) {
761
1.84k
            *eos = false;
762
1.84k
        }
763
3.61k
    }
764
3.60k
    return Status::OK();
765
3.60k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.94k
                                                         bool* eos) {
738
4.94k
    auto& local_state = get_local_state(state);
739
4.94k
    if (need_more_input_data(state)) {
740
4.94k
        local_state._child_block->clear_column_data(
741
4.94k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.94k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.94k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.94k
        *eos = local_state._child_eos;
745
4.94k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.73k
            return Status::OK();
747
1.73k
        }
748
3.21k
        {
749
3.21k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.21k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.21k
        }
752
3.21k
    }
753
754
3.21k
    if (!need_more_input_data(state)) {
755
3.21k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.21k
        bool new_eos = false;
757
3.21k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.21k
        if (new_eos) {
759
1.75k
            *eos = true;
760
1.75k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.21k
    }
764
3.21k
    return Status::OK();
765
3.21k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
38.2k
                                                         bool* eos) {
738
38.2k
    auto& local_state = get_local_state(state);
739
38.2k
    if (need_more_input_data(state)) {
740
38.2k
        local_state._child_block->clear_column_data(
741
38.2k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
38.2k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
38.2k
                state, local_state._child_block.get(), &local_state._child_eos));
744
38.2k
        *eos = local_state._child_eos;
745
38.2k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
5.72k
            return Status::OK();
747
5.72k
        }
748
32.5k
        {
749
32.5k
            SCOPED_TIMER(local_state.exec_time_counter());
750
32.5k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
32.5k
        }
752
32.5k
    }
753
754
32.5k
    if (!need_more_input_data(state)) {
755
11.0k
        SCOPED_TIMER(local_state.exec_time_counter());
756
11.0k
        bool new_eos = false;
757
11.0k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
11.0k
        if (new_eos) {
759
10.9k
            *eos = true;
760
10.9k
        } else if (!need_more_input_data(state)) {
761
30
            *eos = false;
762
30
        }
763
11.0k
    }
764
32.5k
    return Status::OK();
765
32.5k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
459k
                                                         bool* eos) {
738
459k
    auto& local_state = get_local_state(state);
739
460k
    if (need_more_input_data(state)) {
740
460k
        local_state._child_block->clear_column_data(
741
460k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
460k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
460k
                state, local_state._child_block.get(), &local_state._child_eos));
744
460k
        *eos = local_state._child_eos;
745
460k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
16.6k
            return Status::OK();
747
16.6k
        }
748
443k
        {
749
443k
            SCOPED_TIMER(local_state.exec_time_counter());
750
443k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
443k
        }
752
443k
    }
753
754
442k
    if (!need_more_input_data(state)) {
755
411k
        SCOPED_TIMER(local_state.exec_time_counter());
756
411k
        bool new_eos = false;
757
411k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
411k
        if (new_eos) {
759
410k
            *eos = true;
760
410k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
411k
    }
764
442k
    return Status::OK();
765
442k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
29.8k
                                                         bool* eos) {
738
29.8k
    auto& local_state = get_local_state(state);
739
29.8k
    if (need_more_input_data(state)) {
740
19.0k
        local_state._child_block->clear_column_data(
741
19.0k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
19.0k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
19.0k
                state, local_state._child_block.get(), &local_state._child_eos));
744
19.0k
        *eos = local_state._child_eos;
745
19.0k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
3.08k
            return Status::OK();
747
3.08k
        }
748
15.9k
        {
749
15.9k
            SCOPED_TIMER(local_state.exec_time_counter());
750
15.9k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
15.9k
        }
752
15.9k
    }
753
754
26.7k
    if (!need_more_input_data(state)) {
755
26.2k
        SCOPED_TIMER(local_state.exec_time_counter());
756
26.2k
        bool new_eos = false;
757
26.2k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
26.2k
        if (new_eos) {
759
10.4k
            *eos = true;
760
15.7k
        } else if (!need_more_input_data(state)) {
761
10.8k
            *eos = false;
762
10.8k
        }
763
26.2k
    }
764
26.7k
    return Status::OK();
765
26.7k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
6.09k
                                                         bool* eos) {
738
6.09k
    auto& local_state = get_local_state(state);
739
6.09k
    if (need_more_input_data(state)) {
740
5.73k
        local_state._child_block->clear_column_data(
741
5.73k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
5.73k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
5.73k
                state, local_state._child_block.get(), &local_state._child_eos));
744
5.73k
        *eos = local_state._child_eos;
745
5.73k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
191
            return Status::OK();
747
191
        }
748
5.54k
        {
749
5.54k
            SCOPED_TIMER(local_state.exec_time_counter());
750
5.54k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
5.54k
        }
752
5.54k
    }
753
754
5.90k
    if (!need_more_input_data(state)) {
755
5.90k
        SCOPED_TIMER(local_state.exec_time_counter());
756
5.90k
        bool new_eos = false;
757
5.90k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
5.90k
        if (new_eos) {
759
3.85k
            *eos = true;
760
3.85k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
5.90k
    }
764
5.89k
    return Status::OK();
765
5.89k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
66.5k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
66.5k
    RETURN_IF_ERROR(Base::init(state, info));
771
66.5k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
66.5k
                                                         "AsyncWriterDependency", true);
773
66.5k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
66.5k
                             _finish_dependency));
775
776
66.5k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
66.5k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
66.5k
    return Status::OK();
779
66.5k
}
_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
47.0k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
47.0k
    RETURN_IF_ERROR(Base::init(state, info));
771
47.0k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
47.0k
                                                         "AsyncWriterDependency", true);
773
47.0k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
47.0k
                             _finish_dependency));
775
776
47.0k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
47.0k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
47.0k
    return Status::OK();
779
47.0k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.46k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.46k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.46k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.46k
                                                         "AsyncWriterDependency", true);
773
9.46k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.46k
                             _finish_dependency));
775
776
9.46k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.46k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.46k
    return Status::OK();
779
9.46k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
5.16k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.16k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.16k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.16k
                                                         "AsyncWriterDependency", true);
773
5.16k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.16k
                             _finish_dependency));
775
776
5.16k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.16k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.16k
    return Status::OK();
779
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
3.38k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.38k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.38k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.38k
                                                         "AsyncWriterDependency", true);
773
3.38k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.38k
                             _finish_dependency));
775
776
3.38k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.38k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.38k
    return Status::OK();
779
3.38k
}
_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
160
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
160
    RETURN_IF_ERROR(Base::init(state, info));
771
160
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
160
                                                         "AsyncWriterDependency", true);
773
160
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
160
                             _finish_dependency));
775
776
160
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
160
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
160
    return Status::OK();
779
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
608
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
608
    RETURN_IF_ERROR(Base::init(state, info));
771
608
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
608
                                                         "AsyncWriterDependency", true);
773
608
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
608
                             _finish_dependency));
775
776
608
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
608
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
608
    return Status::OK();
779
608
}
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
570k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
503k
        RETURN_IF_ERROR(
788
503k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
503k
    }
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
331k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
283k
        RETURN_IF_ERROR(
788
283k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
283k
    }
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.44k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.44k
    RETURN_IF_ERROR(Base::open(state));
785
9.44k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
57.6k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
48.2k
        RETURN_IF_ERROR(
788
48.2k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
48.2k
    }
790
9.44k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.44k
    return Status::OK();
792
9.44k
}
_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
131k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
126k
        RETURN_IF_ERROR(
788
126k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
126k
    }
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.39k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.39k
    RETURN_IF_ERROR(Base::open(state));
785
3.39k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
41.2k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
37.8k
        RETURN_IF_ERROR(
788
37.8k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
37.8k
    }
790
3.39k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.39k
    return Status::OK();
792
3.39k
}
_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
124
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
92
        RETURN_IF_ERROR(
788
92
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
92
    }
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
160
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
160
    RETURN_IF_ERROR(Base::open(state));
785
160
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
478
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
318
        RETURN_IF_ERROR(
788
318
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
318
    }
790
160
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
160
    return Status::OK();
792
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
608
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
608
    RETURN_IF_ERROR(Base::open(state));
785
608
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
4.10k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
3.50k
        RETURN_IF_ERROR(
788
3.50k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
3.50k
    }
790
608
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
608
    return Status::OK();
792
608
}
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
91.0k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
91.0k
    return _writer->sink(block, eos);
798
91.0k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.39k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.39k
    return _writer->sink(block, eos);
798
2.39k
}
_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
63.4k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
63.4k
    return _writer->sink(block, eos);
798
63.4k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
10.9k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
10.9k
    return _writer->sink(block, eos);
798
10.9k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
7.55k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.55k
    return _writer->sink(block, eos);
798
7.55k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
5.35k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.35k
    return _writer->sink(block, eos);
798
5.35k
}
_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
180
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
180
    return _writer->sink(block, eos);
798
180
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
748
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
748
    return _writer->sink(block, eos);
798
748
}
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.7k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
66.7k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
66.7k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
66.7k
    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.8k
    if (_writer) {
810
66.8k
        Status st = _writer->get_writer_status();
811
66.8k
        if (exec_status.ok()) {
812
66.7k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
66.7k
                                                       : Status::Cancelled("force close"));
814
66.7k
        } else {
815
128
            _writer->force_close(exec_status);
816
128
        }
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.8k
        RETURN_IF_ERROR(st);
821
66.8k
    }
822
66.7k
    return Base::close(state, exec_status);
823
66.7k
}
_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.2k
    if (_writer) {
810
47.2k
        Status st = _writer->get_writer_status();
811
47.2k
        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
58
            _writer->force_close(exec_status);
816
58
        }
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.2k
        RETURN_IF_ERROR(st);
821
47.2k
    }
822
47.1k
    return Base::close(state, exec_status);
823
47.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.44k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.44k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.44k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.44k
    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.46k
    if (_writer) {
810
9.46k
        Status st = _writer->get_writer_status();
811
9.46k
        if (exec_status.ok()) {
812
9.39k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.39k
                                                       : Status::Cancelled("force close"));
814
9.39k
        } else {
815
68
            _writer->force_close(exec_status);
816
68
        }
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.46k
        RETURN_IF_ERROR(st);
821
9.46k
    }
822
9.44k
    return Base::close(state, exec_status);
823
9.44k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.16k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.16k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.16k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.16k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
5.17k
    if (_writer) {
810
5.17k
        Status st = _writer->get_writer_status();
811
5.17k
        if (exec_status.ok()) {
812
5.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.16k
    return Base::close(state, exec_status);
823
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.38k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.38k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.38k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.38k
    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.39k
    if (_writer) {
810
3.39k
        Status st = _writer->get_writer_status();
811
3.39k
        if (exec_status.ok()) {
812
3.38k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.38k
                                                       : Status::Cancelled("force close"));
814
3.38k
        } 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.39k
        RETURN_IF_ERROR(st);
821
3.39k
    }
822
3.38k
    return Base::close(state, exec_status);
823
3.38k
}
_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
160
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
160
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
160
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
160
    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
160
    if (_writer) {
810
160
        Status st = _writer->get_writer_status();
811
160
        if (exec_status.ok()) {
812
160
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
160
                                                       : Status::Cancelled("force close"));
814
160
        } 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
160
        RETURN_IF_ERROR(st);
821
160
    }
822
160
    return Base::close(state, exec_status);
823
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
608
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
608
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
608
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
608
    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
608
    if (_writer) {
810
608
        Status st = _writer->get_writer_status();
811
608
        if (exec_status.ok()) {
812
608
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
608
                                                       : Status::Cancelled("force close"));
814
608
        } 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
608
        RETURN_IF_ERROR(st);
821
608
    }
822
608
    return Base::close(state, exec_status);
823
608
}
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