Coverage Report

Created: 2026-07-19 06:16

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