Coverage Report

Created: 2026-07-21 15:58

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