Coverage Report

Created: 2026-06-18 05:40

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