Coverage Report

Created: 2026-07-30 10:50

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