Coverage Report

Created: 2026-07-23 18:57

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