Coverage Report

Created: 2026-07-09 16:31

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