Coverage Report

Created: 2026-07-08 19:15

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