Coverage Report

Created: 2026-06-02 13: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 "common/status.h"
21
#include "exec/common/util.hpp"
22
#include "exec/exchange/local_exchange_sink_operator.h"
23
#include "exec/exchange/local_exchange_source_operator.h"
24
#include "exec/operator/aggregation_sink_operator.h"
25
#include "exec/operator/aggregation_source_operator.h"
26
#include "exec/operator/analytic_sink_operator.h"
27
#include "exec/operator/analytic_source_operator.h"
28
#include "exec/operator/assert_num_rows_operator.h"
29
#include "exec/operator/blackhole_sink_operator.h"
30
#include "exec/operator/bucketed_aggregation_sink_operator.h"
31
#include "exec/operator/bucketed_aggregation_source_operator.h"
32
#include "exec/operator/cache_sink_operator.h"
33
#include "exec/operator/cache_source_operator.h"
34
#include "exec/operator/datagen_operator.h"
35
#include "exec/operator/dict_sink_operator.h"
36
#include "exec/operator/distinct_streaming_aggregation_operator.h"
37
#include "exec/operator/empty_set_operator.h"
38
#include "exec/operator/exchange_sink_operator.h"
39
#include "exec/operator/exchange_source_operator.h"
40
#include "exec/operator/file_scan_operator.h"
41
#include "exec/operator/group_commit_block_sink_operator.h"
42
#include "exec/operator/group_commit_scan_operator.h"
43
#include "exec/operator/hashjoin_build_sink.h"
44
#include "exec/operator/hashjoin_probe_operator.h"
45
#include "exec/operator/hive_table_sink_operator.h"
46
#include "exec/operator/iceberg_delete_sink_operator.h"
47
#include "exec/operator/iceberg_merge_sink_operator.h"
48
#include "exec/operator/iceberg_table_sink_operator.h"
49
#include "exec/operator/jdbc_scan_operator.h"
50
#include "exec/operator/jdbc_table_sink_operator.h"
51
#include "exec/operator/local_merge_sort_source_operator.h"
52
#include "exec/operator/materialization_opertor.h"
53
#include "exec/operator/maxcompute_table_sink_operator.h"
54
#include "exec/operator/memory_scratch_sink_operator.h"
55
#include "exec/operator/meta_scan_operator.h"
56
#include "exec/operator/mock_operator.h"
57
#include "exec/operator/mock_scan_operator.h"
58
#include "exec/operator/multi_cast_data_stream_sink.h"
59
#include "exec/operator/multi_cast_data_stream_source.h"
60
#include "exec/operator/nested_loop_join_build_operator.h"
61
#include "exec/operator/nested_loop_join_probe_operator.h"
62
#include "exec/operator/olap_scan_operator.h"
63
#include "exec/operator/olap_table_sink_operator.h"
64
#include "exec/operator/olap_table_sink_v2_operator.h"
65
#include "exec/operator/partition_sort_sink_operator.h"
66
#include "exec/operator/partition_sort_source_operator.h"
67
#include "exec/operator/partitioned_aggregation_sink_operator.h"
68
#include "exec/operator/partitioned_aggregation_source_operator.h"
69
#include "exec/operator/partitioned_hash_join_probe_operator.h"
70
#include "exec/operator/partitioned_hash_join_sink_operator.h"
71
#include "exec/operator/rec_cte_anchor_sink_operator.h"
72
#include "exec/operator/rec_cte_scan_operator.h"
73
#include "exec/operator/rec_cte_sink_operator.h"
74
#include "exec/operator/rec_cte_source_operator.h"
75
#include "exec/operator/repeat_operator.h"
76
#include "exec/operator/result_file_sink_operator.h"
77
#include "exec/operator/result_sink_operator.h"
78
#include "exec/operator/schema_scan_operator.h"
79
#include "exec/operator/select_operator.h"
80
#include "exec/operator/set_probe_sink_operator.h"
81
#include "exec/operator/set_sink_operator.h"
82
#include "exec/operator/set_source_operator.h"
83
#include "exec/operator/sort_sink_operator.h"
84
#include "exec/operator/sort_source_operator.h"
85
#include "exec/operator/spill_iceberg_table_sink_operator.h"
86
#include "exec/operator/spill_sort_sink_operator.h"
87
#include "exec/operator/spill_sort_source_operator.h"
88
#include "exec/operator/streaming_aggregation_operator.h"
89
#include "exec/operator/table_function_operator.h"
90
#include "exec/operator/tvf_table_sink_operator.h"
91
#include "exec/operator/union_sink_operator.h"
92
#include "exec/operator/union_source_operator.h"
93
#include "exec/pipeline/dependency.h"
94
#include "exec/pipeline/pipeline.h"
95
#include "exprs/vexpr.h"
96
#include "exprs/vexpr_context.h"
97
#include "runtime/runtime_profile.h"
98
#include "runtime/runtime_profile_counter_names.h"
99
#include "util/debug_util.h"
100
#include "util/string_util.h"
101
102
namespace doris {
103
class RowDescriptor;
104
class RuntimeState;
105
} // namespace doris
106
107
namespace doris {
108
109
0
Status OperatorBase::close(RuntimeState* state) {
110
0
    if (_is_closed) {
111
0
        return Status::OK();
112
0
    }
113
0
    _is_closed = true;
114
0
    return Status::OK();
115
0
}
116
117
template <typename SharedStateArg>
118
2.23M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
2.23M
    if (_parent->nereids_id() == -1) {
120
1.21M
        return fmt::format("(id={})", _parent->node_id());
121
1.21M
    } else {
122
1.01M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
1.01M
    }
124
2.23M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
68.6k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
68.6k
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
68.6k
    } else {
122
68.6k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
68.6k
    }
124
68.6k
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
1
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
1
    if (_parent->nereids_id() == -1) {
120
1
        return fmt::format("(id={})", _parent->node_id());
121
1
    } else {
122
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
0
    }
124
1
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
263k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
263k
    if (_parent->nereids_id() == -1) {
120
12
        return fmt::format("(id={})", _parent->node_id());
121
263k
    } else {
122
263k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
263k
    }
124
263k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
22
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
22
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
22
    } else {
122
22
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
22
    }
124
22
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
9.28k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
9.28k
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
9.28k
    } else {
122
9.28k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
9.28k
    }
124
9.28k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
7.22k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
7.22k
    if (_parent->nereids_id() == -1) {
120
9
        return fmt::format("(id={})", _parent->node_id());
121
7.21k
    } else {
122
7.21k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
7.21k
    }
124
7.22k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
135k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
135k
    if (_parent->nereids_id() == -1) {
120
29
        return fmt::format("(id={})", _parent->node_id());
121
135k
    } else {
122
135k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
135k
    }
124
135k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
370
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
370
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
370
    } else {
122
370
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
370
    }
124
370
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
121
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
121
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
121
    } else {
122
121
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
121
    }
124
121
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
847k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
847k
    if (_parent->nereids_id() == -1) {
120
373k
        return fmt::format("(id={})", _parent->node_id());
121
473k
    } else {
122
473k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
473k
    }
124
847k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
54.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
54.9k
    if (_parent->nereids_id() == -1) {
120
2
        return fmt::format("(id={})", _parent->node_id());
121
54.9k
    } else {
122
54.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
54.9k
    }
124
54.9k
}
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
17
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
17
    if (_parent->nereids_id() == -1) {
120
17
        return fmt::format("(id={})", _parent->node_id());
121
17
    } else {
122
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
0
    }
124
17
}
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
9.63k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
9.63k
    if (_parent->nereids_id() == -1) {
120
9.63k
        return fmt::format("(id={})", _parent->node_id());
121
9.63k
    } else {
122
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
1
    }
124
9.63k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
635
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
635
    if (_parent->nereids_id() == -1) {
120
102
        return fmt::format("(id={})", _parent->node_id());
121
533
    } else {
122
533
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
533
    }
124
635
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
4.44k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
4.44k
    if (_parent->nereids_id() == -1) {
120
13
        return fmt::format("(id={})", _parent->node_id());
121
4.43k
    } else {
122
4.43k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
4.43k
    }
124
4.44k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
829k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
829k
    if (_parent->nereids_id() == -1) {
120
829k
        return fmt::format("(id={})", _parent->node_id());
121
829k
    } else {
122
689
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
689
    }
124
829k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
151
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
151
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
151
    } else {
122
151
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
151
    }
124
151
}
125
126
template <typename SharedStateArg>
127
1.40M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
1.40M
    if (_parent->nereids_id() == -1) {
129
861k
        return fmt::format("(id={})", _parent->node_id());
130
861k
    } else {
131
542k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
542k
    }
133
1.40M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
116k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
116k
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
116k
    } else {
131
116k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
116k
    }
133
116k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
2
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
2
    if (_parent->nereids_id() == -1) {
129
1
        return fmt::format("(id={})", _parent->node_id());
130
1
    } else {
131
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
1
    }
133
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
265k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
265k
    if (_parent->nereids_id() == -1) {
129
9
        return fmt::format("(id={})", _parent->node_id());
130
265k
    } else {
131
265k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
265k
    }
133
265k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
28
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
28
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
28
    } else {
131
28
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
28
    }
133
28
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
9.31k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
9.31k
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
9.31k
    } else {
131
9.31k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
9.31k
    }
133
9.31k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
7.23k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
7.23k
    if (_parent->nereids_id() == -1) {
129
9
        return fmt::format("(id={})", _parent->node_id());
130
7.22k
    } else {
131
7.22k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
7.22k
    }
133
7.23k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
136k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
136k
    if (_parent->nereids_id() == -1) {
129
29
        return fmt::format("(id={})", _parent->node_id());
130
136k
    } else {
131
136k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
136k
    }
133
136k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
326
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
326
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
326
    } else {
131
326
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
326
    }
133
326
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
131
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
131
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
131
    } else {
131
131
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
131
    }
133
131
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
95
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
95
    if (_parent->nereids_id() == -1) {
129
95
        return fmt::format("(id={})", _parent->node_id());
130
95
    } else {
131
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
0
    }
133
95
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
6.04k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
6.04k
    if (_parent->nereids_id() == -1) {
129
3
        return fmt::format("(id={})", _parent->node_id());
130
6.04k
    } else {
131
6.04k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
6.04k
    }
133
6.04k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
634
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
634
    if (_parent->nereids_id() == -1) {
129
102
        return fmt::format("(id={})", _parent->node_id());
130
532
    } else {
131
532
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
532
    }
133
634
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
11.9k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
11.9k
    if (_parent->nereids_id() == -1) {
129
11.9k
        return fmt::format("(id={})", _parent->node_id());
130
11.9k
    } else {
131
9
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
9
    }
133
11.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
349k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
349k
    if (_parent->nereids_id() == -1) {
129
349k
        return fmt::format("(id={})", _parent->node_id());
130
18.4E
    } else {
131
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
18.4E
    }
133
349k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
499k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
499k
    if (_parent->nereids_id() == -1) {
129
499k
        return fmt::format("(id={})", _parent->node_id());
130
499k
    } else {
131
40
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
40
    }
133
499k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
17
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
17
    if (_parent->nereids_id() == -1) {
129
17
        return fmt::format("(id={})", _parent->node_id());
130
17
    } else {
131
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
0
    }
133
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
302
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
302
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
302
    } else {
131
302
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
302
    }
133
302
}
134
135
template <typename SharedStateArg>
136
29.7k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
29.7k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
29.7k
    _terminated = true;
141
29.7k
    return Status::OK();
142
29.7k
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
24.0k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
24.0k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
24.0k
    _terminated = true;
141
24.0k
    return Status::OK();
142
24.0k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
766
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
766
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
766
    _terminated = true;
141
766
    return Status::OK();
142
766
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
6
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
6
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
6
    _terminated = true;
141
6
    return Status::OK();
142
6
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
3
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
3
    _terminated = true;
141
3
    return Status::OK();
142
3
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
2.90k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
2.90k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
2.90k
    _terminated = true;
141
2.90k
    return Status::OK();
142
2.90k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
8
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
8
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
8
    _terminated = true;
141
8
    return Status::OK();
142
8
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
4
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
4
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
4
    _terminated = true;
141
4
    return Status::OK();
142
4
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
1.06k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
1.06k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
1.06k
    _terminated = true;
141
1.06k
    return Status::OK();
142
1.06k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
16
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
16
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
16
    _terminated = true;
141
16
    return Status::OK();
142
16
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
1
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
1
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
1
    _terminated = true;
141
1
    return Status::OK();
142
1
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
532
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
532
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
532
    _terminated = true;
141
532
    return Status::OK();
142
532
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
5
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
5
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
5
    _terminated = true;
141
5
    return Status::OK();
142
5
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
201
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
201
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
201
    _terminated = true;
141
201
    return Status::OK();
142
201
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
142
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
142
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
142
    _terminated = true;
141
142
    return Status::OK();
142
142
}
143
144
760k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
145
760k
    return _child && _child->is_serial_operator() && !is_source()
146
760k
                   ? DataDistribution(ExchangeType::PASSTHROUGH)
147
760k
                   : DataDistribution(ExchangeType::NOOP);
148
760k
}
149
150
13.3k
bool OperatorBase::is_hash_shuffle(ExchangeType exchange_type) {
151
13.3k
    return exchange_type == ExchangeType::HASH_SHUFFLE ||
152
13.3k
           exchange_type == ExchangeType::BUCKET_HASH_SHUFFLE;
153
13.3k
}
154
155
80.4k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
156
80.4k
    if (!_child) {
157
27.1k
        return false;
158
27.1k
    }
159
53.2k
    if (_child->is_serial_operator()) {
160
38.8k
        return true;
161
38.8k
    }
162
14.4k
    const auto child_distribution = _child->required_data_distribution(state);
163
14.4k
    return child_distribution.need_local_exchange() &&
164
14.4k
           !is_hash_shuffle(child_distribution.distribution_type);
165
53.2k
}
166
167
81.5k
const RowDescriptor& OperatorBase::row_desc() const {
168
81.5k
    return _child->row_desc();
169
81.5k
}
170
171
template <typename SharedStateArg>
172
17.9k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
17.9k
    fmt::memory_buffer debug_string_buffer;
174
17.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
17.9k
    return fmt::to_string(debug_string_buffer);
176
17.9k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
26
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
26
    fmt::memory_buffer debug_string_buffer;
174
26
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
26
    return fmt::to_string(debug_string_buffer);
176
26
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
3
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
3
    fmt::memory_buffer debug_string_buffer;
174
3
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
3
    return fmt::to_string(debug_string_buffer);
176
3
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
8
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
8
    fmt::memory_buffer debug_string_buffer;
174
8
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
8
    return fmt::to_string(debug_string_buffer);
176
8
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
8
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
8
    fmt::memory_buffer debug_string_buffer;
174
8
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
8
    return fmt::to_string(debug_string_buffer);
176
8
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
16
    fmt::memory_buffer debug_string_buffer;
174
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
16
    return fmt::to_string(debug_string_buffer);
176
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
17.8k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
17.8k
    fmt::memory_buffer debug_string_buffer;
174
17.8k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
17.8k
    return fmt::to_string(debug_string_buffer);
176
17.8k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
172
1
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
1
    fmt::memory_buffer debug_string_buffer;
174
1
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
1
    return fmt::to_string(debug_string_buffer);
176
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
172
68
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
173
68
    fmt::memory_buffer debug_string_buffer;
174
68
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
175
68
    return fmt::to_string(debug_string_buffer);
176
68
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
177
178
template <typename SharedStateArg>
179
17.9k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
17.9k
    fmt::memory_buffer debug_string_buffer;
181
17.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
17.9k
    return fmt::to_string(debug_string_buffer);
183
17.9k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
179
8
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
8
    fmt::memory_buffer debug_string_buffer;
181
8
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
8
    return fmt::to_string(debug_string_buffer);
183
8
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
179
8
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
8
    fmt::memory_buffer debug_string_buffer;
181
8
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
8
    return fmt::to_string(debug_string_buffer);
183
8
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
179
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
16
    fmt::memory_buffer debug_string_buffer;
181
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
16
    return fmt::to_string(debug_string_buffer);
183
16
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
179
57
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
57
    fmt::memory_buffer debug_string_buffer;
181
57
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
57
    return fmt::to_string(debug_string_buffer);
183
57
}
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
179
18
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
18
    fmt::memory_buffer debug_string_buffer;
181
18
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
18
    return fmt::to_string(debug_string_buffer);
183
18
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
179
17.8k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
180
17.8k
    fmt::memory_buffer debug_string_buffer;
181
17.8k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
182
17.8k
    return fmt::to_string(debug_string_buffer);
183
17.8k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
184
185
18.2k
std::string OperatorXBase::debug_string(int indentation_level) const {
186
18.2k
    fmt::memory_buffer debug_string_buffer;
187
18.2k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
188
18.2k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
189
18.2k
                   _is_serial_operator);
190
18.2k
    return fmt::to_string(debug_string_buffer);
191
18.2k
}
192
193
17.9k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
194
17.9k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
195
17.9k
}
196
197
685k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
198
685k
    std::string node_name = print_plan_node_type(tnode.node_type);
199
685k
    _nereids_id = tnode.nereids_id;
200
685k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
201
3.73k
        if (!tnode.__isset.output_tuple_id) {
202
0
            return Status::InternalError("no final output tuple id");
203
0
        }
204
3.73k
        if (tnode.intermediate_output_tuple_id_list.size() !=
205
3.73k
            tnode.intermediate_projections_list.size()) {
206
0
            return Status::InternalError(
207
0
                    "intermediate_output_tuple_id_list size:{} not match "
208
0
                    "intermediate_projections_list size:{}",
209
0
                    tnode.intermediate_output_tuple_id_list.size(),
210
0
                    tnode.intermediate_projections_list.size());
211
0
        }
212
3.73k
    }
213
685k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
214
685k
    _op_name = substr + "_OPERATOR";
215
216
685k
    if (tnode.__isset.vconjunct) {
217
0
        return Status::InternalError("vconjunct is not supported yet");
218
685k
    } else if (tnode.__isset.conjuncts) {
219
446k
        for (const auto& conjunct : tnode.conjuncts) {
220
446k
            VExprContextSPtr context;
221
446k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
222
446k
            _conjuncts.emplace_back(context);
223
446k
        }
224
145k
    }
225
226
    // create the projections expr
227
685k
    if (tnode.__isset.projections) {
228
313k
        DCHECK(tnode.__isset.output_tuple_id);
229
313k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
230
313k
    }
231
685k
    if (!tnode.intermediate_projections_list.empty()) {
232
3.73k
        DCHECK(tnode.__isset.projections) << "no final projections";
233
3.73k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
234
7.59k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
235
7.59k
            VExprContextSPtrs projections;
236
7.59k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
237
7.59k
            _intermediate_projections.push_back(projections);
238
7.59k
        }
239
3.73k
    }
240
685k
    return Status::OK();
241
685k
}
242
243
717k
Status OperatorXBase::prepare(RuntimeState* state) {
244
717k
    for (auto& conjunct : _conjuncts) {
245
445k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
246
445k
    }
247
717k
    if (state->enable_adjust_conjunct_order_by_cost()) {
248
666k
        std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) {
249
600k
            return a->execute_cost() < b->execute_cost();
250
600k
        });
251
666k
    };
252
253
725k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
254
7.59k
        RETURN_IF_ERROR(
255
7.59k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
256
7.59k
    }
257
717k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
258
259
717k
    if (has_output_row_desc()) {
260
313k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
261
313k
    }
262
263
717k
    for (auto& conjunct : _conjuncts) {
264
446k
        RETURN_IF_ERROR(conjunct->open(state));
265
446k
    }
266
717k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
267
717k
    for (auto& projections : _intermediate_projections) {
268
7.59k
        RETURN_IF_ERROR(VExpr::open(projections, state));
269
7.59k
    }
270
717k
    if (_child && !is_source()) {
271
128k
        RETURN_IF_ERROR(_child->prepare(state));
272
128k
    }
273
274
717k
    if (VExpr::contains_blockable_function(_conjuncts) ||
275
718k
        VExpr::contains_blockable_function(_projections)) {
276
0
        _blockable = true;
277
0
    }
278
279
717k
    return Status::OK();
280
717k
}
281
282
6.94k
Status OperatorXBase::terminate(RuntimeState* state) {
283
6.94k
    if (_child && !is_source()) {
284
1.24k
        RETURN_IF_ERROR(_child->terminate(state));
285
1.24k
    }
286
6.94k
    auto result = state->get_local_state_result(operator_id());
287
6.94k
    if (!result) {
288
0
        return result.error();
289
0
    }
290
6.94k
    return result.value()->terminate(state);
291
6.94k
}
292
293
6.17M
Status OperatorXBase::close(RuntimeState* state) {
294
6.17M
    if (_child && !is_source()) {
295
1.08M
        RETURN_IF_ERROR(_child->close(state));
296
1.08M
    }
297
6.17M
    auto result = state->get_local_state_result(operator_id());
298
6.17M
    if (!result) {
299
0
        return result.error();
300
0
    }
301
6.17M
    return result.value()->close(state);
302
6.17M
}
303
304
288k
void PipelineXLocalStateBase::clear_origin_block() {
305
288k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
306
288k
}
307
308
635k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
309
635k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
310
311
635k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
312
635k
    return Status::OK();
313
635k
}
314
315
0
bool PipelineXLocalStateBase::is_blockable() const {
316
0
    return std::any_of(_projections.begin(), _projections.end(),
317
0
                       [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); });
318
0
}
319
320
Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block,
321
288k
                                     Block* output_block) const {
322
288k
    auto* local_state = state->get_local_state(operator_id());
323
288k
    SCOPED_TIMER(local_state->exec_time_counter());
324
288k
    SCOPED_TIMER(local_state->_projection_timer);
325
288k
    const size_t rows = origin_block->rows();
326
288k
    if (rows == 0) {
327
148k
        return Status::OK();
328
148k
    }
329
140k
    Block input_block = *origin_block;
330
331
140k
    size_t bytes_usage = 0;
332
140k
    ColumnsWithTypeAndName new_columns;
333
140k
    for (const auto& projections : local_state->_intermediate_projections) {
334
1.09k
        if (projections.empty()) {
335
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
336
0
                                         node_id());
337
0
        }
338
1.09k
        new_columns.resize(projections.size());
339
8.08k
        for (int i = 0; i < projections.size(); i++) {
340
6.99k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
341
6.99k
            if (new_columns[i].column->size() != rows) {
342
0
                return Status::InternalError(
343
0
                        "intermediate projection result column size {} not equal input rows {}, "
344
0
                        "expr: {}",
345
0
                        new_columns[i].column->size(), rows,
346
0
                        projections[i]->root()->debug_string());
347
0
            }
348
6.99k
        }
349
1.09k
        Block tmp_block {new_columns};
350
1.09k
        bytes_usage += tmp_block.allocated_bytes();
351
1.09k
        input_block.swap(tmp_block);
352
1.09k
    }
353
354
140k
    if (input_block.rows() != rows) {
355
0
        return Status::InternalError(
356
0
                "after intermediate projections input block rows {} not equal origin rows {}, "
357
0
                "input_block: {}",
358
0
                input_block.rows(), rows, input_block.dump_structure());
359
0
    }
360
647k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
361
647k
        if (to->is_nullable() && !from->is_nullable()) {
362
0
            if (_keep_origin || !from->is_exclusive()) {
363
0
                auto& null_column = reinterpret_cast<ColumnNullable&>(*to);
364
0
                null_column.get_nested_column().insert_range_from(*from, 0, rows);
365
0
                null_column.get_null_map_column().get_data().resize_fill(rows, 0);
366
0
                bytes_usage += null_column.allocated_bytes();
367
0
            } else {
368
0
                to = make_nullable(from, false)->assert_mutable();
369
0
            }
370
647k
        } else {
371
647k
            if (_keep_origin || !from->is_exclusive()) {
372
635k
                to->insert_range_from(*from, 0, rows);
373
635k
                bytes_usage += from->allocated_bytes();
374
635k
            } else {
375
12.1k
                to = from->assert_mutable();
376
12.1k
            }
377
647k
        }
378
647k
    };
379
380
140k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
381
140k
            output_block, *_output_row_descriptor);
382
140k
    auto& mutable_block = scoped_mutable_block.mutable_block();
383
140k
    auto& mutable_columns = mutable_block.mutable_columns();
384
140k
    if (rows != 0) {
385
140k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
386
788k
        for (int i = 0; i < mutable_columns.size(); ++i) {
387
647k
            ColumnPtr column_ptr;
388
647k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
389
647k
            if (column_ptr->size() != rows) {
390
0
                return Status::InternalError(
391
0
                        "projection result column size {} not equal input rows {}, expr: {}",
392
0
                        column_ptr->size(), rows,
393
0
                        local_state->_projections[i]->root()->debug_string());
394
0
            }
395
647k
            column_ptr = column_ptr->convert_to_full_column_if_const();
396
647k
            bytes_usage += column_ptr->allocated_bytes();
397
647k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
398
647k
        }
399
140k
        DCHECK(mutable_block.rows() == rows);
400
140k
    }
401
140k
    local_state->_estimate_memory_usage += bytes_usage;
402
403
140k
    return Status::OK();
404
140k
}
405
406
4.76M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
407
4.76M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
408
4.76M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
409
4.76M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
410
4.76M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
411
4.76M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
412
4.76M
            if (_debug_point_count++ % 2 == 0) {
413
4.76M
                return Status::OK();
414
4.76M
            }
415
4.76M
        }
416
4.76M
    });
417
418
4.76M
    Status status;
419
4.76M
    auto* local_state = state->get_local_state(operator_id());
420
4.76M
    Defer defer([&]() {
421
4.76M
        if (status.ok()) {
422
4.76M
            local_state->update_output_block_counters(*block);
423
4.76M
        }
424
4.76M
    });
425
4.76M
    if (_output_row_descriptor) {
426
288k
        local_state->clear_origin_block();
427
288k
        status = get_block(state, &local_state->_origin_block, eos);
428
288k
        if (UNLIKELY(!status.ok())) {
429
20
            return status;
430
20
        }
431
288k
        status = do_projections(state, &local_state->_origin_block, block);
432
288k
        return status;
433
288k
    }
434
4.47M
    status = get_block(state, block, eos);
435
4.47M
    RETURN_IF_ERROR(block->check_type_and_column());
436
4.47M
    return status;
437
4.47M
}
438
439
3.16M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
440
3.16M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
441
6.84k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
442
6.84k
        *eos = true;
443
6.84k
    }
444
445
3.16M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
446
3.16M
        auto op_name = to_lower(_parent->_op_name);
447
3.16M
        auto arg_op_name = dp->param<std::string>("op_name");
448
3.16M
        arg_op_name = to_lower(arg_op_name);
449
450
3.16M
        if (op_name == arg_op_name) {
451
3.16M
            *eos = true;
452
3.16M
        }
453
3.16M
    });
454
455
3.16M
    if (auto rows = block->rows()) {
456
848k
        _num_rows_returned += rows;
457
848k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
458
848k
    }
459
3.16M
}
460
461
29.6k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
462
29.6k
    auto result = state->get_sink_local_state_result();
463
29.6k
    if (!result) {
464
0
        return result.error();
465
0
    }
466
29.6k
    return result.value()->terminate(state);
467
29.6k
}
468
469
18.1k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
470
18.1k
    fmt::memory_buffer debug_string_buffer;
471
472
18.1k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
473
18.1k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
474
18.1k
    return fmt::to_string(debug_string_buffer);
475
18.1k
}
476
477
17.9k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
478
17.9k
    return state->get_sink_local_state()->debug_string(indentation_level);
479
17.9k
}
480
481
448k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
482
448k
    std::string op_name = "UNKNOWN_SINK";
483
448k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
484
485
449k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
486
449k
        op_name = it->second;
487
449k
    }
488
448k
    _name = op_name + "_OPERATOR";
489
448k
    return Status::OK();
490
448k
}
491
492
186k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
493
186k
    std::string op_name = print_plan_node_type(tnode.node_type);
494
186k
    _nereids_id = tnode.nereids_id;
495
186k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
496
186k
    _name = substr + "_SINK_OPERATOR";
497
186k
    return Status::OK();
498
186k
}
499
500
template <typename LocalStateType>
501
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
502
2.09M
                                                            LocalSinkStateInfo& info) {
503
2.09M
    auto local_state = LocalStateType::create_unique(this, state);
504
2.09M
    RETURN_IF_ERROR(local_state->init(state, info));
505
2.09M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
2.09M
    return Status::OK();
507
2.09M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
116k
                                                            LocalSinkStateInfo& info) {
503
116k
    auto local_state = LocalStateType::create_unique(this, state);
504
116k
    RETURN_IF_ERROR(local_state->init(state, info));
505
116k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
116k
    return Status::OK();
507
116k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
435k
                                                            LocalSinkStateInfo& info) {
503
435k
    auto local_state = LocalStateType::create_unique(this, state);
504
435k
    RETURN_IF_ERROR(local_state->init(state, info));
505
435k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
435k
    return Status::OK();
507
435k
}
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
88
                                                            LocalSinkStateInfo& info) {
503
88
    auto local_state = LocalStateType::create_unique(this, state);
504
88
    RETURN_IF_ERROR(local_state->init(state, info));
505
88
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
88
    return Status::OK();
507
88
}
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
3
                                                            LocalSinkStateInfo& info) {
503
3
    auto local_state = LocalStateType::create_unique(this, state);
504
3
    RETURN_IF_ERROR(local_state->init(state, info));
505
3
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
3
    return Status::OK();
507
3
}
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
538
                                                            LocalSinkStateInfo& info) {
503
538
    auto local_state = LocalStateType::create_unique(this, state);
504
538
    RETURN_IF_ERROR(local_state->init(state, info));
505
538
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
538
    return Status::OK();
507
538
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
45.0k
                                                            LocalSinkStateInfo& info) {
503
45.0k
    auto local_state = LocalStateType::create_unique(this, state);
504
45.0k
    RETURN_IF_ERROR(local_state->init(state, info));
505
45.0k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
45.0k
    return Status::OK();
507
45.0k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
8.96k
                                                            LocalSinkStateInfo& info) {
503
8.96k
    auto local_state = LocalStateType::create_unique(this, state);
504
8.96k
    RETURN_IF_ERROR(local_state->init(state, info));
505
8.96k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
8.96k
    return Status::OK();
507
8.96k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
5.14k
                                                            LocalSinkStateInfo& info) {
503
5.14k
    auto local_state = LocalStateType::create_unique(this, state);
504
5.14k
    RETURN_IF_ERROR(local_state->init(state, info));
505
5.14k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
5.14k
    return Status::OK();
507
5.14k
}
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
156
                                                            LocalSinkStateInfo& info) {
503
156
    auto local_state = LocalStateType::create_unique(this, state);
504
156
    RETURN_IF_ERROR(local_state->init(state, info));
505
156
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
156
    return Status::OK();
507
156
}
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
3.37k
                                                            LocalSinkStateInfo& info) {
503
3.37k
    auto local_state = LocalStateType::create_unique(this, state);
504
3.37k
    RETURN_IF_ERROR(local_state->init(state, info));
505
3.37k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
3.37k
    return Status::OK();
507
3.37k
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
160
                                                            LocalSinkStateInfo& info) {
503
160
    auto local_state = LocalStateType::create_unique(this, state);
504
160
    RETURN_IF_ERROR(local_state->init(state, info));
505
160
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
160
    return Status::OK();
507
160
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
640
                                                            LocalSinkStateInfo& info) {
503
640
    auto local_state = LocalStateType::create_unique(this, state);
504
640
    RETURN_IF_ERROR(local_state->init(state, info));
505
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
640
    return Status::OK();
507
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
7.23k
                                                            LocalSinkStateInfo& info) {
503
7.23k
    auto local_state = LocalStateType::create_unique(this, state);
504
7.23k
    RETURN_IF_ERROR(local_state->init(state, info));
505
7.23k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
7.23k
    return Status::OK();
507
7.23k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
92
                                                            LocalSinkStateInfo& info) {
503
92
    auto local_state = LocalStateType::create_unique(this, state);
504
92
    RETURN_IF_ERROR(local_state->init(state, info));
505
92
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
92
    return Status::OK();
507
92
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
265k
                                                            LocalSinkStateInfo& info) {
503
265k
    auto local_state = LocalStateType::create_unique(this, state);
504
265k
    RETURN_IF_ERROR(local_state->init(state, info));
505
265k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
265k
    return Status::OK();
507
265k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
28
                                                            LocalSinkStateInfo& info) {
503
28
    auto local_state = LocalStateType::create_unique(this, state);
504
28
    RETURN_IF_ERROR(local_state->init(state, info));
505
28
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
28
    return Status::OK();
507
28
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
349k
                                                            LocalSinkStateInfo& info) {
503
349k
    auto local_state = LocalStateType::create_unique(this, state);
504
349k
    RETURN_IF_ERROR(local_state->init(state, info));
505
349k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
349k
    return Status::OK();
507
349k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
136k
                                                            LocalSinkStateInfo& info) {
503
136k
    auto local_state = LocalStateType::create_unique(this, state);
504
136k
    RETURN_IF_ERROR(local_state->init(state, info));
505
136k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
136k
    return Status::OK();
507
136k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
324
                                                            LocalSinkStateInfo& info) {
503
324
    auto local_state = LocalStateType::create_unique(this, state);
504
324
    RETURN_IF_ERROR(local_state->init(state, info));
505
324
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
324
    return Status::OK();
507
324
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
131
                                                            LocalSinkStateInfo& info) {
503
131
    auto local_state = LocalStateType::create_unique(this, state);
504
131
    RETURN_IF_ERROR(local_state->init(state, info));
505
131
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
131
    return Status::OK();
507
131
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
687k
                                                            LocalSinkStateInfo& info) {
503
687k
    auto local_state = LocalStateType::create_unique(this, state);
504
687k
    RETURN_IF_ERROR(local_state->init(state, info));
505
687k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
687k
    return Status::OK();
507
687k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
9.31k
                                                            LocalSinkStateInfo& info) {
503
9.31k
    auto local_state = LocalStateType::create_unique(this, state);
504
9.31k
    RETURN_IF_ERROR(local_state->init(state, info));
505
9.31k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
9.31k
    return Status::OK();
507
9.31k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
6.04k
                                                            LocalSinkStateInfo& info) {
503
6.04k
    auto local_state = LocalStateType::create_unique(this, state);
504
6.04k
    RETURN_IF_ERROR(local_state->init(state, info));
505
6.04k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
6.04k
    return Status::OK();
507
6.04k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
3.37k
                                                            LocalSinkStateInfo& info) {
503
3.37k
    auto local_state = LocalStateType::create_unique(this, state);
504
3.37k
    RETURN_IF_ERROR(local_state->init(state, info));
505
3.37k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
3.37k
    return Status::OK();
507
3.37k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
533
                                                            LocalSinkStateInfo& info) {
503
533
    auto local_state = LocalStateType::create_unique(this, state);
504
533
    RETURN_IF_ERROR(local_state->init(state, info));
505
533
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
533
    return Status::OK();
507
533
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
4.60k
                                                            LocalSinkStateInfo& info) {
503
4.60k
    auto local_state = LocalStateType::create_unique(this, state);
504
4.60k
    RETURN_IF_ERROR(local_state->init(state, info));
505
4.60k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
4.60k
    return Status::OK();
507
4.60k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
2.45k
                                                            LocalSinkStateInfo& info) {
503
2.45k
    auto local_state = LocalStateType::create_unique(this, state);
504
2.45k
    RETURN_IF_ERROR(local_state->init(state, info));
505
2.45k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
2.45k
    return Status::OK();
507
2.45k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
2.41k
                                                            LocalSinkStateInfo& info) {
503
2.41k
    auto local_state = LocalStateType::create_unique(this, state);
504
2.41k
    RETURN_IF_ERROR(local_state->init(state, info));
505
2.41k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
2.41k
    return Status::OK();
507
2.41k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
2.42k
                                                            LocalSinkStateInfo& info) {
503
2.42k
    auto local_state = LocalStateType::create_unique(this, state);
504
2.42k
    RETURN_IF_ERROR(local_state->init(state, info));
505
2.42k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
2.42k
    return Status::OK();
507
2.42k
}
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
1
                                                            LocalSinkStateInfo& info) {
503
1
    auto local_state = LocalStateType::create_unique(this, state);
504
1
    RETURN_IF_ERROR(local_state->init(state, info));
505
1
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
1
    return Status::OK();
507
1
}
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
166
                                                            LocalSinkStateInfo& info) {
503
166
    auto local_state = LocalStateType::create_unique(this, state);
504
166
    RETURN_IF_ERROR(local_state->init(state, info));
505
166
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
166
    return Status::OK();
507
166
}
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
14
                                                            LocalSinkStateInfo& info) {
503
14
    auto local_state = LocalStateType::create_unique(this, state);
504
14
    RETURN_IF_ERROR(local_state->init(state, info));
505
14
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
14
    return Status::OK();
507
14
}
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
105
                                                            LocalSinkStateInfo& info) {
503
105
    auto local_state = LocalStateType::create_unique(this, state);
504
105
    RETURN_IF_ERROR(local_state->init(state, info));
505
105
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
105
    return Status::OK();
507
105
}
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
151
                                                            LocalSinkStateInfo& info) {
503
151
    auto local_state = LocalStateType::create_unique(this, state);
504
151
    RETURN_IF_ERROR(local_state->init(state, info));
505
151
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
151
    return Status::OK();
507
151
}
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
502
151
                                                            LocalSinkStateInfo& info) {
503
151
    auto local_state = LocalStateType::create_unique(this, state);
504
151
    RETURN_IF_ERROR(local_state->init(state, info));
505
151
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
506
151
    return Status::OK();
507
151
}
508
509
template <typename LocalStateType>
510
1.71M
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
0
                                 LocalExchangeSharedState>) {
513
0
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
0
                                        MultiCastSharedState>) {
516
0
        throw Exception(Status::FatalError("should not reach here!"));
517
1.71M
    } else {
518
1.71M
        auto ss = LocalStateType::SharedStateType::create_shared();
519
1.71M
        ss->id = operator_id();
520
1.71M
        for (auto& dest : dests_id()) {
521
1.70M
            ss->related_op_ids.insert(dest);
522
1.70M
        }
523
1.71M
        return ss;
524
1.71M
    }
525
1.71M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
98.4k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
98.4k
    } else {
518
98.4k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
98.4k
        ss->id = operator_id();
520
98.4k
        for (auto& dest : dests_id()) {
521
98.3k
            ss->related_op_ids.insert(dest);
522
98.3k
        }
523
98.4k
        return ss;
524
98.4k
    }
525
98.4k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
436k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
436k
    } else {
518
436k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
436k
        ss->id = operator_id();
520
436k
        for (auto& dest : dests_id()) {
521
435k
            ss->related_op_ids.insert(dest);
522
435k
        }
523
436k
        return ss;
524
436k
    }
525
436k
}
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
88
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
88
    } else {
518
88
        auto ss = LocalStateType::SharedStateType::create_shared();
519
88
        ss->id = operator_id();
520
88
        for (auto& dest : dests_id()) {
521
88
            ss->related_op_ids.insert(dest);
522
88
        }
523
88
        return ss;
524
88
    }
525
88
}
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
3
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
3
    } else {
518
3
        auto ss = LocalStateType::SharedStateType::create_shared();
519
3
        ss->id = operator_id();
520
3
        for (auto& dest : dests_id()) {
521
3
            ss->related_op_ids.insert(dest);
522
3
        }
523
3
        return ss;
524
3
    }
525
3
}
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
541
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
541
    } else {
518
541
        auto ss = LocalStateType::SharedStateType::create_shared();
519
541
        ss->id = operator_id();
520
541
        for (auto& dest : dests_id()) {
521
537
            ss->related_op_ids.insert(dest);
522
537
        }
523
541
        return ss;
524
541
    }
525
541
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
45.0k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
45.0k
    } else {
518
45.0k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
45.0k
        ss->id = operator_id();
520
45.0k
        for (auto& dest : dests_id()) {
521
45.0k
            ss->related_op_ids.insert(dest);
522
45.0k
        }
523
45.0k
        return ss;
524
45.0k
    }
525
45.0k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
510
8.96k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
8.96k
    } else {
518
8.96k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
8.96k
        ss->id = operator_id();
520
8.96k
        for (auto& dest : dests_id()) {
521
8.96k
            ss->related_op_ids.insert(dest);
522
8.96k
        }
523
8.96k
        return ss;
524
8.96k
    }
525
8.96k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
5.15k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
5.15k
    } else {
518
5.15k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
5.15k
        ss->id = operator_id();
520
5.15k
        for (auto& dest : dests_id()) {
521
5.14k
            ss->related_op_ids.insert(dest);
522
5.14k
        }
523
5.15k
        return ss;
524
5.15k
    }
525
5.15k
}
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
156
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
156
    } else {
518
156
        auto ss = LocalStateType::SharedStateType::create_shared();
519
156
        ss->id = operator_id();
520
156
        for (auto& dest : dests_id()) {
521
156
            ss->related_op_ids.insert(dest);
522
156
        }
523
156
        return ss;
524
156
    }
525
156
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
3.38k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
3.38k
    } else {
518
3.38k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
3.38k
        ss->id = operator_id();
520
3.38k
        for (auto& dest : dests_id()) {
521
3.38k
            ss->related_op_ids.insert(dest);
522
3.38k
        }
523
3.38k
        return ss;
524
3.38k
    }
525
3.38k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
160
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
160
    } else {
518
160
        auto ss = LocalStateType::SharedStateType::create_shared();
519
160
        ss->id = operator_id();
520
160
        for (auto& dest : dests_id()) {
521
160
            ss->related_op_ids.insert(dest);
522
160
        }
523
160
        return ss;
524
160
    }
525
160
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
640
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
640
    } else {
518
640
        auto ss = LocalStateType::SharedStateType::create_shared();
519
640
        ss->id = operator_id();
520
640
        for (auto& dest : dests_id()) {
521
640
            ss->related_op_ids.insert(dest);
522
640
        }
523
640
        return ss;
524
640
    }
525
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
7.24k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
7.24k
    } else {
518
7.24k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
7.24k
        ss->id = operator_id();
520
7.24k
        for (auto& dest : dests_id()) {
521
7.24k
            ss->related_op_ids.insert(dest);
522
7.24k
        }
523
7.24k
        return ss;
524
7.24k
    }
525
7.24k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
92
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
92
    } else {
518
92
        auto ss = LocalStateType::SharedStateType::create_shared();
519
92
        ss->id = operator_id();
520
92
        for (auto& dest : dests_id()) {
521
92
            ss->related_op_ids.insert(dest);
522
92
        }
523
92
        return ss;
524
92
    }
525
92
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
266k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
266k
    } else {
518
266k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
266k
        ss->id = operator_id();
520
266k
        for (auto& dest : dests_id()) {
521
265k
            ss->related_op_ids.insert(dest);
522
265k
        }
523
266k
        return ss;
524
266k
    }
525
266k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
30
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
30
    } else {
518
30
        auto ss = LocalStateType::SharedStateType::create_shared();
519
30
        ss->id = operator_id();
520
30
        for (auto& dest : dests_id()) {
521
30
            ss->related_op_ids.insert(dest);
522
30
        }
523
30
        return ss;
524
30
    }
525
30
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
136k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
136k
    } else {
518
136k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
136k
        ss->id = operator_id();
520
136k
        for (auto& dest : dests_id()) {
521
136k
            ss->related_op_ids.insert(dest);
522
136k
        }
523
136k
        return ss;
524
136k
    }
525
136k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
130
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
130
    } else {
518
130
        auto ss = LocalStateType::SharedStateType::create_shared();
519
130
        ss->id = operator_id();
520
130
        for (auto& dest : dests_id()) {
521
130
            ss->related_op_ids.insert(dest);
522
130
        }
523
130
        return ss;
524
130
    }
525
130
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
687k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
687k
    } else {
518
687k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
687k
        ss->id = operator_id();
520
687k
        for (auto& dest : dests_id()) {
521
683k
            ss->related_op_ids.insert(dest);
522
683k
        }
523
687k
        return ss;
524
687k
    }
525
687k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
9.32k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
9.32k
    } else {
518
9.32k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
9.32k
        ss->id = operator_id();
520
9.32k
        for (auto& dest : dests_id()) {
521
9.32k
            ss->related_op_ids.insert(dest);
522
9.32k
        }
523
9.32k
        return ss;
524
9.32k
    }
525
9.32k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
634
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
634
    } else {
518
634
        auto ss = LocalStateType::SharedStateType::create_shared();
519
634
        ss->id = operator_id();
520
635
        for (auto& dest : dests_id()) {
521
635
            ss->related_op_ids.insert(dest);
522
635
        }
523
634
        return ss;
524
634
    }
525
634
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
510
2.43k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
2.43k
    } else {
518
2.43k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
2.43k
        ss->id = operator_id();
520
2.43k
        for (auto& dest : dests_id()) {
521
2.42k
            ss->related_op_ids.insert(dest);
522
2.42k
        }
523
2.43k
        return ss;
524
2.43k
    }
525
2.43k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
510
2.45k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
2.45k
    } else {
518
2.45k
        auto ss = LocalStateType::SharedStateType::create_shared();
519
2.45k
        ss->id = operator_id();
520
2.45k
        for (auto& dest : dests_id()) {
521
2.44k
            ss->related_op_ids.insert(dest);
522
2.44k
        }
523
2.45k
        return ss;
524
2.45k
    }
525
2.45k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
166
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
166
    } else {
518
166
        auto ss = LocalStateType::SharedStateType::create_shared();
519
166
        ss->id = operator_id();
520
166
        for (auto& dest : dests_id()) {
521
166
            ss->related_op_ids.insert(dest);
522
166
        }
523
166
        return ss;
524
166
    }
525
166
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
510
105
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
511
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                 LocalExchangeSharedState>) {
513
        return nullptr;
514
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
515
                                        MultiCastSharedState>) {
516
        throw Exception(Status::FatalError("should not reach here!"));
517
105
    } else {
518
105
        auto ss = LocalStateType::SharedStateType::create_shared();
519
105
        ss->id = operator_id();
520
105
        for (auto& dest : dests_id()) {
521
105
            ss->related_op_ids.insert(dest);
522
105
        }
523
105
        return ss;
524
105
    }
525
105
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
526
527
template <typename LocalStateType>
528
2.56M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
2.56M
    auto local_state = LocalStateType::create_unique(state, this);
530
2.56M
    RETURN_IF_ERROR(local_state->init(state, info));
531
2.56M
    state->emplace_local_state(operator_id(), std::move(local_state));
532
2.56M
    return Status::OK();
533
2.56M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
68.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
68.7k
    auto local_state = LocalStateType::create_unique(state, this);
530
68.7k
    RETURN_IF_ERROR(local_state->init(state, info));
531
68.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
68.7k
    return Status::OK();
533
68.7k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
290k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
290k
    auto local_state = LocalStateType::create_unique(state, this);
530
290k
    RETURN_IF_ERROR(local_state->init(state, info));
531
290k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
290k
    return Status::OK();
533
290k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
78
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
78
    auto local_state = LocalStateType::create_unique(state, this);
530
78
    RETURN_IF_ERROR(local_state->init(state, info));
531
78
    state->emplace_local_state(operator_id(), std::move(local_state));
532
78
    return Status::OK();
533
78
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
33.4k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
33.4k
    auto local_state = LocalStateType::create_unique(state, this);
530
33.4k
    RETURN_IF_ERROR(local_state->init(state, info));
531
33.4k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
33.4k
    return Status::OK();
533
33.4k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
7.22k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
7.22k
    auto local_state = LocalStateType::create_unique(state, this);
530
7.22k
    RETURN_IF_ERROR(local_state->init(state, info));
531
7.22k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
7.22k
    return Status::OK();
533
7.22k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
7.75k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
7.75k
    auto local_state = LocalStateType::create_unique(state, this);
530
7.75k
    RETURN_IF_ERROR(local_state->init(state, info));
531
7.75k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
7.75k
    return Status::OK();
533
7.75k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
22
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
22
    auto local_state = LocalStateType::create_unique(state, this);
530
22
    RETURN_IF_ERROR(local_state->init(state, info));
531
22
    state->emplace_local_state(operator_id(), std::move(local_state));
532
22
    return Status::OK();
533
22
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
257k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
257k
    auto local_state = LocalStateType::create_unique(state, this);
530
257k
    RETURN_IF_ERROR(local_state->init(state, info));
531
257k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
257k
    return Status::OK();
533
257k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
136k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
136k
    auto local_state = LocalStateType::create_unique(state, this);
530
136k
    RETURN_IF_ERROR(local_state->init(state, info));
531
136k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
136k
    return Status::OK();
533
136k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
371
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
371
    auto local_state = LocalStateType::create_unique(state, this);
530
371
    RETURN_IF_ERROR(local_state->init(state, info));
531
371
    state->emplace_local_state(operator_id(), std::move(local_state));
532
371
    return Status::OK();
533
371
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
121
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
121
    auto local_state = LocalStateType::create_unique(state, this);
530
121
    RETURN_IF_ERROR(local_state->init(state, info));
531
121
    state->emplace_local_state(operator_id(), std::move(local_state));
532
121
    return Status::OK();
533
121
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
4.19k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
4.19k
    auto local_state = LocalStateType::create_unique(state, this);
530
4.19k
    RETURN_IF_ERROR(local_state->init(state, info));
531
4.19k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
4.19k
    return Status::OK();
533
4.19k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
374k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
374k
    auto local_state = LocalStateType::create_unique(state, this);
530
374k
    RETURN_IF_ERROR(local_state->init(state, info));
531
374k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
374k
    return Status::OK();
533
374k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
1.08k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
1.08k
    auto local_state = LocalStateType::create_unique(state, this);
530
1.08k
    RETURN_IF_ERROR(local_state->init(state, info));
531
1.08k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
1.08k
    return Status::OK();
533
1.08k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
9.29k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
9.29k
    auto local_state = LocalStateType::create_unique(state, this);
530
9.29k
    RETURN_IF_ERROR(local_state->init(state, info));
531
9.29k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
9.29k
    return Status::OK();
533
9.29k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
221
    auto local_state = LocalStateType::create_unique(state, this);
530
221
    RETURN_IF_ERROR(local_state->init(state, info));
531
221
    state->emplace_local_state(operator_id(), std::move(local_state));
532
221
    return Status::OK();
533
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
1.68k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
1.68k
    auto local_state = LocalStateType::create_unique(state, this);
530
1.68k
    RETURN_IF_ERROR(local_state->init(state, info));
531
1.68k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
1.68k
    return Status::OK();
533
1.68k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
54.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
54.9k
    auto local_state = LocalStateType::create_unique(state, this);
530
54.9k
    RETURN_IF_ERROR(local_state->init(state, info));
531
54.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
54.9k
    return Status::OK();
533
54.9k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
9.64k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
9.64k
    auto local_state = LocalStateType::create_unique(state, this);
530
9.64k
    RETURN_IF_ERROR(local_state->init(state, info));
531
9.64k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
9.64k
    return Status::OK();
533
9.64k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
532
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
532
    auto local_state = LocalStateType::create_unique(state, this);
530
532
    RETURN_IF_ERROR(local_state->init(state, info));
531
532
    state->emplace_local_state(operator_id(), std::move(local_state));
532
532
    return Status::OK();
533
532
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
2.30k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
2.30k
    auto local_state = LocalStateType::create_unique(state, this);
530
2.30k
    RETURN_IF_ERROR(local_state->init(state, info));
531
2.30k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
2.30k
    return Status::OK();
533
2.30k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
2.36k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
2.36k
    auto local_state = LocalStateType::create_unique(state, this);
530
2.36k
    RETURN_IF_ERROR(local_state->init(state, info));
531
2.36k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
2.36k
    return Status::OK();
533
2.36k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
469
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
469
    auto local_state = LocalStateType::create_unique(state, this);
530
469
    RETURN_IF_ERROR(local_state->init(state, info));
531
469
    state->emplace_local_state(operator_id(), std::move(local_state));
532
469
    return Status::OK();
533
469
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
2.07k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
2.07k
    auto local_state = LocalStateType::create_unique(state, this);
530
2.07k
    RETURN_IF_ERROR(local_state->init(state, info));
531
2.07k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
2.07k
    return Status::OK();
533
2.07k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
6.80k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
6.80k
    auto local_state = LocalStateType::create_unique(state, this);
530
6.80k
    RETURN_IF_ERROR(local_state->init(state, info));
531
6.80k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
6.80k
    return Status::OK();
533
6.80k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
833k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
833k
    auto local_state = LocalStateType::create_unique(state, this);
530
833k
    RETURN_IF_ERROR(local_state->init(state, info));
531
833k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
833k
    return Status::OK();
533
833k
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
14
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
14
    auto local_state = LocalStateType::create_unique(state, this);
530
14
    RETURN_IF_ERROR(local_state->init(state, info));
531
14
    state->emplace_local_state(operator_id(), std::move(local_state));
532
14
    return Status::OK();
533
14
}
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
151
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
151
    auto local_state = LocalStateType::create_unique(state, this);
530
151
    RETURN_IF_ERROR(local_state->init(state, info));
531
151
    state->emplace_local_state(operator_id(), std::move(local_state));
532
151
    return Status::OK();
533
151
}
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
1.95k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
1.95k
    auto local_state = LocalStateType::create_unique(state, this);
530
1.95k
    RETURN_IF_ERROR(local_state->init(state, info));
531
1.95k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
1.95k
    return Status::OK();
533
1.95k
}
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
1.59k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
1.59k
    auto local_state = LocalStateType::create_unique(state, this);
530
1.59k
    RETURN_IF_ERROR(local_state->init(state, info));
531
1.59k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
1.59k
    return Status::OK();
533
1.59k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
2.57k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
2.57k
    auto local_state = LocalStateType::create_unique(state, this);
530
2.57k
    RETURN_IF_ERROR(local_state->init(state, info));
531
2.57k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
2.57k
    return Status::OK();
533
2.57k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
11.1k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
11.1k
    auto local_state = LocalStateType::create_unique(state, this);
530
11.1k
    RETURN_IF_ERROR(local_state->init(state, info));
531
11.1k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
11.1k
    return Status::OK();
533
11.1k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
528
444k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
529
444k
    auto local_state = LocalStateType::create_unique(state, this);
530
444k
    RETURN_IF_ERROR(local_state->init(state, info));
531
444k
    state->emplace_local_state(operator_id(), std::move(local_state));
532
444k
    return Status::OK();
533
444k
}
534
535
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
536
                                                         RuntimeState* state)
537
2.09M
        : _parent(parent), _state(state) {}
538
539
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
540
2.56M
        : _num_rows_returned(0),
541
2.56M
          _rows_returned_counter(nullptr),
542
2.56M
          _parent(parent),
543
2.56M
          _state(state),
544
2.56M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
545
546
template <typename SharedStateArg>
547
2.57M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
2.57M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
2.57M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
2.57M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
2.57M
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
2.57M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
2.57M
    _operator_profile->add_child(_common_profile.get(), true);
556
2.57M
    _operator_profile->add_child(_custom_profile.get(), true);
557
2.57M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
2.57M
    if constexpr (!is_fake_shared) {
559
1.39M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
847k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
847k
                                    .first.get()
562
847k
                                    ->template cast<SharedStateArg>();
563
564
847k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
847k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
847k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
847k
        } else if (info.shared_state) {
568
479k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
0
                DCHECK(false);
570
0
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
479k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
479k
            _dependency = _shared_state->create_source_dependency(
575
479k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
479k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
479k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
479k
        } else {
579
69.2k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
8.74k
                DCHECK(false);
581
8.74k
            }
582
69.2k
        }
583
1.39M
    }
584
585
2.57M
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
2.57M
    _rows_returned_counter =
590
2.57M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
2.57M
    _blocks_returned_counter =
592
2.57M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
2.57M
    _output_block_bytes_counter =
594
2.57M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
2.57M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
2.57M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
2.57M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
2.57M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
2.57M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
2.57M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
2.57M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
2.57M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
2.57M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
2.57M
    _memory_used_counter =
605
2.57M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
2.57M
    _common_profile->add_info_string("IsColocate",
607
2.57M
                                     std::to_string(_parent->is_colocated_operator()));
608
2.57M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
2.57M
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
2.57M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
2.57M
    return Status::OK();
612
2.57M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
68.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
68.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
68.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
68.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
68.9k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
68.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
68.9k
    _operator_profile->add_child(_common_profile.get(), true);
556
68.9k
    _operator_profile->add_child(_custom_profile.get(), true);
557
68.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
68.9k
    if constexpr (!is_fake_shared) {
559
68.9k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
18.2k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
18.2k
                                    .first.get()
562
18.2k
                                    ->template cast<SharedStateArg>();
563
564
18.2k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
18.2k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
18.2k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
50.6k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
50.0k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
50.0k
            _dependency = _shared_state->create_source_dependency(
575
50.0k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
50.0k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
50.0k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
50.0k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
627
        }
583
68.9k
    }
584
585
68.9k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
68.9k
    _rows_returned_counter =
590
68.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
68.9k
    _blocks_returned_counter =
592
68.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
68.9k
    _output_block_bytes_counter =
594
68.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
68.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
68.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
68.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
68.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
68.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
68.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
68.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
68.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
68.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
68.9k
    _memory_used_counter =
605
68.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
68.9k
    _common_profile->add_info_string("IsColocate",
607
68.9k
                                     std::to_string(_parent->is_colocated_operator()));
608
68.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
68.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
68.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
68.9k
    return Status::OK();
612
68.9k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
1
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
1
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
1
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
1
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
1
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
1
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
1
    _operator_profile->add_child(_common_profile.get(), true);
556
1
    _operator_profile->add_child(_custom_profile.get(), true);
557
1
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
1
    if constexpr (!is_fake_shared) {
559
1
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
1
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
1
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
1
            _dependency = _shared_state->create_source_dependency(
575
1
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
1
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
1
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
1
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
0
        }
583
1
    }
584
585
1
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
1
    _rows_returned_counter =
590
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
1
    _blocks_returned_counter =
592
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
1
    _output_block_bytes_counter =
594
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
1
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
1
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
1
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
1
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
1
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
1
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
1
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
1
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
1
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
1
    _memory_used_counter =
605
1
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
1
    _common_profile->add_info_string("IsColocate",
607
1
                                     std::to_string(_parent->is_colocated_operator()));
608
1
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
1
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
1
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
1
    return Status::OK();
612
1
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
266k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
266k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
266k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
266k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
266k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
266k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
266k
    _operator_profile->add_child(_common_profile.get(), true);
556
266k
    _operator_profile->add_child(_custom_profile.get(), true);
557
266k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
266k
    if constexpr (!is_fake_shared) {
559
266k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
266k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
260k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
260k
            _dependency = _shared_state->create_source_dependency(
575
260k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
260k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
260k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
260k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
5.69k
        }
583
266k
    }
584
585
266k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
266k
    _rows_returned_counter =
590
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
266k
    _blocks_returned_counter =
592
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
266k
    _output_block_bytes_counter =
594
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
266k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
266k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
266k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
266k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
266k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
266k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
266k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
266k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
266k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
266k
    _memory_used_counter =
605
266k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
266k
    _common_profile->add_info_string("IsColocate",
607
266k
                                     std::to_string(_parent->is_colocated_operator()));
608
266k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
266k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
266k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
266k
    return Status::OK();
612
266k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
22
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
22
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
22
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
22
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
22
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
22
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
22
    _operator_profile->add_child(_common_profile.get(), true);
556
22
    _operator_profile->add_child(_custom_profile.get(), true);
557
22
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
22
    if constexpr (!is_fake_shared) {
559
22
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
22
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
22
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
22
            _dependency = _shared_state->create_source_dependency(
575
22
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
22
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
22
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
22
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
0
        }
583
22
    }
584
585
22
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
22
    _rows_returned_counter =
590
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
22
    _blocks_returned_counter =
592
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
22
    _output_block_bytes_counter =
594
22
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
22
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
22
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
22
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
22
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
22
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
22
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
22
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
22
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
22
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
22
    _memory_used_counter =
605
22
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
22
    _common_profile->add_info_string("IsColocate",
607
22
                                     std::to_string(_parent->is_colocated_operator()));
608
22
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
22
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
22
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
22
    return Status::OK();
612
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
9.31k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
9.31k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
9.31k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
9.31k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
9.31k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
9.31k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
9.31k
    _operator_profile->add_child(_common_profile.get(), true);
556
9.31k
    _operator_profile->add_child(_custom_profile.get(), true);
557
9.31k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
9.31k
    if constexpr (!is_fake_shared) {
559
9.31k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
9.31k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
9.25k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
9.25k
            _dependency = _shared_state->create_source_dependency(
575
9.25k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
9.25k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
9.25k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
9.25k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
65
        }
583
9.31k
    }
584
585
9.31k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
9.31k
    _rows_returned_counter =
590
9.31k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
9.31k
    _blocks_returned_counter =
592
9.31k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
9.31k
    _output_block_bytes_counter =
594
9.31k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
9.31k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
9.31k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
9.31k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
9.31k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
9.31k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
9.31k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
9.31k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
9.31k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
9.31k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
9.31k
    _memory_used_counter =
605
9.31k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
9.31k
    _common_profile->add_info_string("IsColocate",
607
9.31k
                                     std::to_string(_parent->is_colocated_operator()));
608
9.31k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
9.31k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
9.31k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
9.31k
    return Status::OK();
612
9.31k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
7.24k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
7.24k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
7.24k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
7.24k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
7.24k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
7.24k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
7.24k
    _operator_profile->add_child(_common_profile.get(), true);
556
7.24k
    _operator_profile->add_child(_custom_profile.get(), true);
557
7.24k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
7.24k
    if constexpr (!is_fake_shared) {
559
7.24k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
7.24k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
7.22k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
7.22k
            _dependency = _shared_state->create_source_dependency(
575
7.22k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
7.22k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
7.22k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
7.22k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
18
        }
583
7.24k
    }
584
585
7.24k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
7.24k
    _rows_returned_counter =
590
7.24k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
7.24k
    _blocks_returned_counter =
592
7.24k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
7.24k
    _output_block_bytes_counter =
594
7.24k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
7.24k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
7.24k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
7.24k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
7.24k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
7.24k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
7.24k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
7.24k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
7.24k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
7.24k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
7.24k
    _memory_used_counter =
605
7.24k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
7.24k
    _common_profile->add_info_string("IsColocate",
607
7.24k
                                     std::to_string(_parent->is_colocated_operator()));
608
7.24k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
7.24k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
7.24k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
7.24k
    return Status::OK();
612
7.24k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
136k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
136k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
136k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
136k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
136k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
136k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
136k
    _operator_profile->add_child(_common_profile.get(), true);
556
136k
    _operator_profile->add_child(_custom_profile.get(), true);
557
136k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
136k
    if constexpr (!is_fake_shared) {
559
136k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
136k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
135k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
135k
            _dependency = _shared_state->create_source_dependency(
575
135k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
135k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
135k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
135k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
1.29k
        }
583
136k
    }
584
585
136k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
136k
    _rows_returned_counter =
590
136k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
136k
    _blocks_returned_counter =
592
136k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
136k
    _output_block_bytes_counter =
594
136k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
136k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
136k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
136k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
136k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
136k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
136k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
136k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
136k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
136k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
136k
    _memory_used_counter =
605
136k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
136k
    _common_profile->add_info_string("IsColocate",
607
136k
                                     std::to_string(_parent->is_colocated_operator()));
608
136k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
136k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
136k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
136k
    return Status::OK();
612
136k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
374
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
374
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
374
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
374
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
374
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
374
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
374
    _operator_profile->add_child(_common_profile.get(), true);
556
374
    _operator_profile->add_child(_custom_profile.get(), true);
557
374
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
374
    if constexpr (!is_fake_shared) {
559
374
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
366
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
366
                                    .first.get()
562
366
                                    ->template cast<SharedStateArg>();
563
564
366
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
366
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
366
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
366
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
0
            _dependency = _shared_state->create_source_dependency(
575
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
8
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
8
        }
583
374
    }
584
585
374
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
374
    _rows_returned_counter =
590
374
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
374
    _blocks_returned_counter =
592
374
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
374
    _output_block_bytes_counter =
594
374
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
374
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
374
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
374
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
374
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
374
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
374
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
374
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
374
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
374
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
374
    _memory_used_counter =
605
374
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
374
    _common_profile->add_info_string("IsColocate",
607
374
                                     std::to_string(_parent->is_colocated_operator()));
608
374
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
374
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
374
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
374
    return Status::OK();
612
374
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
121
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
121
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
121
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
121
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
121
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
121
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
121
    _operator_profile->add_child(_common_profile.get(), true);
556
121
    _operator_profile->add_child(_custom_profile.get(), true);
557
121
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
121
    if constexpr (!is_fake_shared) {
559
121
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
121
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
121
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
121
            _dependency = _shared_state->create_source_dependency(
575
121
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
121
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
121
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
121
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
0
        }
583
121
    }
584
585
121
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
121
    _rows_returned_counter =
590
121
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
121
    _blocks_returned_counter =
592
121
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
121
    _output_block_bytes_counter =
594
121
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
121
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
121
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
121
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
121
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
121
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
121
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
121
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
121
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
121
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
121
    _memory_used_counter =
605
121
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
121
    _common_profile->add_info_string("IsColocate",
607
121
                                     std::to_string(_parent->is_colocated_operator()));
608
121
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
121
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
121
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
121
    return Status::OK();
612
121
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
1.17M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
1.17M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
1.17M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
1.17M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
1.17M
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
1.17M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
1.17M
    _operator_profile->add_child(_common_profile.get(), true);
556
1.17M
    _operator_profile->add_child(_custom_profile.get(), true);
557
1.17M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
    if constexpr (!is_fake_shared) {
559
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
                                    .first.get()
562
                                    ->template cast<SharedStateArg>();
563
564
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
            _dependency = _shared_state->create_source_dependency(
575
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
        }
583
    }
584
585
1.17M
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
1.17M
    _rows_returned_counter =
590
1.17M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
1.17M
    _blocks_returned_counter =
592
1.17M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
1.17M
    _output_block_bytes_counter =
594
1.17M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
1.17M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
1.17M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
1.17M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
1.17M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
1.17M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
1.17M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
1.17M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
1.17M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
1.17M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
1.17M
    _memory_used_counter =
605
1.17M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
1.17M
    _common_profile->add_info_string("IsColocate",
607
1.17M
                                     std::to_string(_parent->is_colocated_operator()));
608
1.17M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
1.17M
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
1.17M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
1.17M
    return Status::OK();
612
1.17M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
55.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
55.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
55.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
55.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
55.0k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
55.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
55.0k
    _operator_profile->add_child(_common_profile.get(), true);
556
55.0k
    _operator_profile->add_child(_custom_profile.get(), true);
557
55.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
55.0k
    if constexpr (!is_fake_shared) {
559
55.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
55.0k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
2.80k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
2.80k
            _dependency = _shared_state->create_source_dependency(
575
2.80k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
2.80k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
2.80k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
52.2k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
52.2k
        }
583
55.0k
    }
584
585
55.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
55.0k
    _rows_returned_counter =
590
55.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
55.0k
    _blocks_returned_counter =
592
55.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
55.0k
    _output_block_bytes_counter =
594
55.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
55.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
55.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
55.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
55.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
55.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
55.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
55.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
55.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
55.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
55.0k
    _memory_used_counter =
605
55.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
55.0k
    _common_profile->add_info_string("IsColocate",
607
55.0k
                                     std::to_string(_parent->is_colocated_operator()));
608
55.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
55.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
55.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
55.0k
    return Status::OK();
612
55.0k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
17
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
17
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
17
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
17
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
17
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
17
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
17
    _operator_profile->add_child(_common_profile.get(), true);
556
17
    _operator_profile->add_child(_custom_profile.get(), true);
557
17
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
17
    if constexpr (!is_fake_shared) {
559
17
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
17
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
17
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
17
            _dependency = _shared_state->create_source_dependency(
575
17
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
17
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
17
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
17
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
0
        }
583
17
    }
584
585
17
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
17
    _rows_returned_counter =
590
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
17
    _blocks_returned_counter =
592
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
17
    _output_block_bytes_counter =
594
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
17
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
17
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
17
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
17
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
17
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
17
    _memory_used_counter =
605
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
17
    _common_profile->add_info_string("IsColocate",
607
17
                                     std::to_string(_parent->is_colocated_operator()));
608
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
17
    return Status::OK();
612
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
9.64k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
9.64k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
9.64k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
9.64k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
9.64k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
9.64k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
9.64k
    _operator_profile->add_child(_common_profile.get(), true);
556
9.64k
    _operator_profile->add_child(_custom_profile.get(), true);
557
9.64k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
9.64k
    if constexpr (!is_fake_shared) {
559
9.64k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
9.64k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
9.62k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
9.62k
            _dependency = _shared_state->create_source_dependency(
575
9.62k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
9.62k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
9.62k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
9.62k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
12
        }
583
9.64k
    }
584
585
9.64k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
9.64k
    _rows_returned_counter =
590
9.64k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
9.64k
    _blocks_returned_counter =
592
9.64k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
9.64k
    _output_block_bytes_counter =
594
9.64k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
9.64k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
9.64k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
9.64k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
9.64k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
9.64k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
9.64k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
9.64k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
9.64k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
9.64k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
9.64k
    _memory_used_counter =
605
9.64k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
9.64k
    _common_profile->add_info_string("IsColocate",
607
9.64k
                                     std::to_string(_parent->is_colocated_operator()));
608
9.64k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
9.64k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
9.64k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
9.64k
    return Status::OK();
612
9.64k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
635
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
635
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
635
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
635
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
635
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
635
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
635
    _operator_profile->add_child(_common_profile.get(), true);
556
635
    _operator_profile->add_child(_custom_profile.get(), true);
557
635
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
635
    if constexpr (!is_fake_shared) {
559
635
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
635
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
633
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
633
            _dependency = _shared_state->create_source_dependency(
575
633
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
633
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
633
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
633
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
2
        }
583
635
    }
584
585
635
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
635
    _rows_returned_counter =
590
635
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
635
    _blocks_returned_counter =
592
635
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
635
    _output_block_bytes_counter =
594
635
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
635
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
635
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
635
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
635
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
635
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
635
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
635
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
635
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
635
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
635
    _memory_used_counter =
605
635
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
635
    _common_profile->add_info_string("IsColocate",
607
635
                                     std::to_string(_parent->is_colocated_operator()));
608
635
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
635
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
635
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
635
    return Status::OK();
612
635
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
4.80k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
4.80k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
4.80k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
4.80k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
4.80k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
4.80k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
4.80k
    _operator_profile->add_child(_common_profile.get(), true);
556
4.80k
    _operator_profile->add_child(_custom_profile.get(), true);
557
4.80k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
4.80k
    if constexpr (!is_fake_shared) {
559
4.80k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
4.80k
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
4.25k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
4.25k
            _dependency = _shared_state->create_source_dependency(
575
4.25k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
4.25k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
4.25k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
4.25k
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
556
        }
583
4.80k
    }
584
585
4.80k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
4.80k
    _rows_returned_counter =
590
4.80k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
4.80k
    _blocks_returned_counter =
592
4.80k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
4.80k
    _output_block_bytes_counter =
594
4.80k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
4.80k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
4.80k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
4.80k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
4.80k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
4.80k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
4.80k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
4.80k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
4.80k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
4.80k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
4.80k
    _memory_used_counter =
605
4.80k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
4.80k
    _common_profile->add_info_string("IsColocate",
607
4.80k
                                     std::to_string(_parent->is_colocated_operator()));
608
4.80k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
4.80k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
4.80k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
4.80k
    return Status::OK();
612
4.80k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
838k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
838k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
838k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
838k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
838k
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
838k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
838k
    _operator_profile->add_child(_common_profile.get(), true);
556
838k
    _operator_profile->add_child(_custom_profile.get(), true);
557
838k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
838k
    if constexpr (!is_fake_shared) {
559
838k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
829k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
829k
                                    .first.get()
562
829k
                                    ->template cast<SharedStateArg>();
563
564
829k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
829k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
829k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
829k
        } else if (info.shared_state) {
568
0
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
0
                DCHECK(false);
570
0
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
0
            _dependency = _shared_state->create_source_dependency(
575
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
8.74k
        } else {
579
8.74k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
8.74k
                DCHECK(false);
581
8.74k
            }
582
8.74k
        }
583
838k
    }
584
585
838k
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
838k
    _rows_returned_counter =
590
838k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
838k
    _blocks_returned_counter =
592
838k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
838k
    _output_block_bytes_counter =
594
838k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
838k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
838k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
838k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
838k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
838k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
838k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
838k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
838k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
838k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
838k
    _memory_used_counter =
605
838k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
838k
    _common_profile->add_info_string("IsColocate",
607
838k
                                     std::to_string(_parent->is_colocated_operator()));
608
838k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
838k
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
838k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
838k
    return Status::OK();
612
838k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
547
151
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
548
151
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
549
151
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
550
151
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
551
151
    _operator_profile->set_metadata(_parent->node_id());
552
    // indent is false so that source operator will have same
553
    // indentation_level with its parent operator.
554
151
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
555
151
    _operator_profile->add_child(_common_profile.get(), true);
556
151
    _operator_profile->add_child(_custom_profile.get(), true);
557
151
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
558
151
    if constexpr (!is_fake_shared) {
559
151
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
560
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
561
0
                                    .first.get()
562
0
                                    ->template cast<SharedStateArg>();
563
564
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
565
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
566
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
567
151
        } else if (info.shared_state) {
568
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
569
                DCHECK(false);
570
            }
571
            // For UnionSourceOperator without children, there is no shared state.
572
151
            _shared_state = info.shared_state->template cast<SharedStateArg>();
573
574
151
            _dependency = _shared_state->create_source_dependency(
575
151
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
576
151
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
577
151
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
578
151
        } else {
579
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
580
                DCHECK(false);
581
            }
582
0
        }
583
151
    }
584
585
151
    if (must_set_shared_state() && _shared_state == nullptr) {
586
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
587
0
    }
588
589
151
    _rows_returned_counter =
590
151
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
591
151
    _blocks_returned_counter =
592
151
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
593
151
    _output_block_bytes_counter =
594
151
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
595
151
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
596
151
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
597
151
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
598
151
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
599
151
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
600
151
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
601
151
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
602
151
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
603
151
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
604
151
    _memory_used_counter =
605
151
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
606
151
    _common_profile->add_info_string("IsColocate",
607
151
                                     std::to_string(_parent->is_colocated_operator()));
608
151
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
609
151
    _common_profile->add_info_string("FollowedByShuffledOperator",
610
151
                                     std::to_string(_parent->followed_by_shuffled_operator()));
611
151
    return Status::OK();
612
151
}
613
614
template <typename SharedStateArg>
615
2.57M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
2.57M
    _conjuncts.resize(_parent->_conjuncts.size());
617
2.57M
    _projections.resize(_parent->_projections.size());
618
3.07M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
495k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
495k
    }
621
5.20M
    for (size_t i = 0; i < _projections.size(); i++) {
622
2.62M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
2.62M
    }
624
2.57M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
2.59M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
10.2k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
69.6k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
59.4k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
59.4k
                    state, _intermediate_projections[i][j]));
630
59.4k
        }
631
10.2k
    }
632
2.57M
    return Status::OK();
633
2.57M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
68.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
68.9k
    _conjuncts.resize(_parent->_conjuncts.size());
617
68.9k
    _projections.resize(_parent->_projections.size());
618
69.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
703
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
703
    }
621
330k
    for (size_t i = 0; i < _projections.size(); i++) {
622
261k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
261k
    }
624
68.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
70.2k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
1.33k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
14.7k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
13.4k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
13.4k
                    state, _intermediate_projections[i][j]));
630
13.4k
        }
631
1.33k
    }
632
68.9k
    return Status::OK();
633
68.9k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
3
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
3
    _conjuncts.resize(_parent->_conjuncts.size());
617
3
    _projections.resize(_parent->_projections.size());
618
3
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
3
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
3
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
3
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
3
    return Status::OK();
633
3
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
266k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
266k
    _conjuncts.resize(_parent->_conjuncts.size());
617
266k
    _projections.resize(_parent->_projections.size());
618
266k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
267k
    for (size_t i = 0; i < _projections.size(); i++) {
622
355
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
355
    }
624
266k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
266k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
266k
    return Status::OK();
633
266k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
22
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
22
    _conjuncts.resize(_parent->_conjuncts.size());
617
22
    _projections.resize(_parent->_projections.size());
618
22
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
22
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
22
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
22
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
22
    return Status::OK();
633
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
9.32k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
9.32k
    _conjuncts.resize(_parent->_conjuncts.size());
617
9.32k
    _projections.resize(_parent->_projections.size());
618
9.38k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
57
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
57
    }
621
59.3k
    for (size_t i = 0; i < _projections.size(); i++) {
622
50.0k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
50.0k
    }
624
9.32k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
9.47k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
152
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
926
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
774
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
774
                    state, _intermediate_projections[i][j]));
630
774
        }
631
152
    }
632
9.32k
    return Status::OK();
633
9.32k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
7.24k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
7.24k
    _conjuncts.resize(_parent->_conjuncts.size());
617
7.24k
    _projections.resize(_parent->_projections.size());
618
8.13k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
887
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
887
    }
621
20.3k
    for (size_t i = 0; i < _projections.size(); i++) {
622
13.1k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
13.1k
    }
624
7.24k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
7.33k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
93
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
707
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
614
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
614
                    state, _intermediate_projections[i][j]));
630
614
        }
631
93
    }
632
7.24k
    return Status::OK();
633
7.24k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
136k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
136k
    _conjuncts.resize(_parent->_conjuncts.size());
617
136k
    _projections.resize(_parent->_projections.size());
618
140k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
3.88k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
3.88k
    }
621
394k
    for (size_t i = 0; i < _projections.size(); i++) {
622
257k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
257k
    }
624
136k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
136k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
241
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
1.72k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
1.48k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
1.48k
                    state, _intermediate_projections[i][j]));
630
1.48k
        }
631
241
    }
632
136k
    return Status::OK();
633
136k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
373
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
373
    _conjuncts.resize(_parent->_conjuncts.size());
617
373
    _projections.resize(_parent->_projections.size());
618
375
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
2
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
2
    }
621
1.39k
    for (size_t i = 0; i < _projections.size(); i++) {
622
1.02k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
1.02k
    }
624
373
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
373
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
373
    return Status::OK();
633
373
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
125
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
125
    _conjuncts.resize(_parent->_conjuncts.size());
617
125
    _projections.resize(_parent->_projections.size());
618
125
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
345
    for (size_t i = 0; i < _projections.size(); i++) {
622
220
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
220
    }
624
125
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
125
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
125
    return Status::OK();
633
125
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
1.18M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
1.18M
    _conjuncts.resize(_parent->_conjuncts.size());
617
1.18M
    _projections.resize(_parent->_projections.size());
618
1.66M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
485k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
485k
    }
621
3.12M
    for (size_t i = 0; i < _projections.size(); i++) {
622
1.94M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
1.94M
    }
624
1.18M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
1.18M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
8.41k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
51.5k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
43.1k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
43.1k
                    state, _intermediate_projections[i][j]));
630
43.1k
        }
631
8.41k
    }
632
1.18M
    return Status::OK();
633
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
55.1k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
55.1k
    _conjuncts.resize(_parent->_conjuncts.size());
617
55.1k
    _projections.resize(_parent->_projections.size());
618
55.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
149k
    for (size_t i = 0; i < _projections.size(); i++) {
622
94.4k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
94.4k
    }
624
55.1k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
55.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
55.1k
    return Status::OK();
633
55.1k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
17
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
17
    _conjuncts.resize(_parent->_conjuncts.size());
617
17
    _projections.resize(_parent->_projections.size());
618
17
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
17
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
17
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
17
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
17
    return Status::OK();
633
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
9.63k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
9.63k
    _conjuncts.resize(_parent->_conjuncts.size());
617
9.63k
    _projections.resize(_parent->_projections.size());
618
13.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
3.99k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
3.99k
    }
621
9.63k
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
9.63k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
9.63k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
9.63k
    return Status::OK();
633
9.63k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
635
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
635
    _conjuncts.resize(_parent->_conjuncts.size());
617
635
    _projections.resize(_parent->_projections.size());
618
635
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
635
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
635
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
635
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
635
    return Status::OK();
633
635
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
4.93k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
4.93k
    _conjuncts.resize(_parent->_conjuncts.size());
617
4.93k
    _projections.resize(_parent->_projections.size());
618
4.93k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
4.93k
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
4.93k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
4.93k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
4.93k
    return Status::OK();
633
4.93k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
839k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
839k
    _conjuncts.resize(_parent->_conjuncts.size());
617
839k
    _projections.resize(_parent->_projections.size());
618
839k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
0
    }
621
839k
    for (size_t i = 0; i < _projections.size(); i++) {
622
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
0
    }
624
839k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
839k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
0
                    state, _intermediate_projections[i][j]));
630
0
        }
631
0
    }
632
839k
    return Status::OK();
633
839k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
615
151
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
616
151
    _conjuncts.resize(_parent->_conjuncts.size());
617
151
    _projections.resize(_parent->_projections.size());
618
158
    for (size_t i = 0; i < _conjuncts.size(); i++) {
619
7
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
620
7
    }
621
447
    for (size_t i = 0; i < _projections.size(); i++) {
622
296
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
623
296
    }
624
151
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
625
152
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
626
1
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
627
3
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
628
2
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
629
2
                    state, _intermediate_projections[i][j]));
630
2
        }
631
1
    }
632
151
    return Status::OK();
633
151
}
634
635
template <typename SharedStateArg>
636
6.95k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
6.95k
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
6.95k
    _terminated = true;
641
6.95k
    return Status::OK();
642
6.95k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
433
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
433
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
433
    _terminated = true;
641
433
    return Status::OK();
642
433
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
103
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
103
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
103
    _terminated = true;
641
103
    return Status::OK();
642
103
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
106
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
106
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
106
    _terminated = true;
641
106
    return Status::OK();
642
106
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
48
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
48
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
48
    _terminated = true;
641
48
    return Status::OK();
642
48
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
4.70k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
4.70k
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
4.70k
    _terminated = true;
641
4.70k
    return Status::OK();
642
4.70k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
6
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
6
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
6
    _terminated = true;
641
6
    return Status::OK();
642
6
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
17
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
17
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
17
    _terminated = true;
641
17
    return Status::OK();
642
17
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
7
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
7
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
7
    _terminated = true;
641
7
    return Status::OK();
642
7
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
452
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
452
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
452
    _terminated = true;
641
452
    return Status::OK();
642
452
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
1.06k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
1.06k
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
1.06k
    _terminated = true;
641
1.06k
    return Status::OK();
642
1.06k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
636
11
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
637
11
    if (_terminated) {
638
0
        return Status::OK();
639
0
    }
640
11
    _terminated = true;
641
11
    return Status::OK();
642
11
}
643
644
template <typename SharedStateArg>
645
2.87M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
2.87M
    if (_closed) {
647
296k
        return Status::OK();
648
296k
    }
649
2.57M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
1.39M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
1.39M
    }
652
2.57M
    _closed = true;
653
2.57M
    return Status::OK();
654
2.87M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
68.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
68.8k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
68.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
68.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
68.8k
    }
652
68.8k
    _closed = true;
653
68.8k
    return Status::OK();
654
68.8k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
4
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
4
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
4
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
4
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
4
    }
652
4
    _closed = true;
653
4
    return Status::OK();
654
4
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
529k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
529k
    if (_closed) {
647
265k
        return Status::OK();
648
265k
    }
649
264k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
264k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
264k
    }
652
264k
    _closed = true;
653
264k
    return Status::OK();
654
529k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
22
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
22
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
22
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
22
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
22
    }
652
22
    _closed = true;
653
22
    return Status::OK();
654
22
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
9.31k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
9.31k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
9.31k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
9.31k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
9.31k
    }
652
9.31k
    _closed = true;
653
9.31k
    return Status::OK();
654
9.31k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
14.6k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
14.6k
    if (_closed) {
647
7.37k
        return Status::OK();
648
7.37k
    }
649
7.23k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
7.23k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
7.23k
    }
652
7.23k
    _closed = true;
653
7.23k
    return Status::OK();
654
14.6k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
136k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
136k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
136k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
136k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
136k
    }
652
136k
    _closed = true;
653
136k
    return Status::OK();
654
136k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
370
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
370
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
370
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
370
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
370
    }
652
370
    _closed = true;
653
370
    return Status::OK();
654
370
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
120
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
120
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
120
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
120
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
120
    }
652
120
    _closed = true;
653
120
    return Status::OK();
654
120
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
1.19M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
1.19M
    if (_closed) {
647
18.3k
        return Status::OK();
648
18.3k
    }
649
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
    }
652
1.18M
    _closed = true;
653
1.18M
    return Status::OK();
654
1.19M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
55.1k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
55.1k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
55.1k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
55.1k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
55.1k
    }
652
55.1k
    _closed = true;
653
55.1k
    return Status::OK();
654
55.1k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
28
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
28
    if (_closed) {
647
14
        return Status::OK();
648
14
    }
649
14
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
14
    }
652
14
    _closed = true;
653
14
    return Status::OK();
654
28
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
9.62k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
9.62k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
9.62k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
9.62k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
9.62k
    }
652
9.62k
    _closed = true;
653
9.62k
    return Status::OK();
654
9.62k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
1.05k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
1.05k
    if (_closed) {
647
529
        return Status::OK();
648
529
    }
649
529
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
529
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
529
    }
652
529
    _closed = true;
653
529
    return Status::OK();
654
1.05k
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
9.87k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
9.87k
    if (_closed) {
647
4.94k
        return Status::OK();
648
4.94k
    }
649
4.92k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
4.92k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
4.92k
    }
652
4.92k
    _closed = true;
653
4.92k
    return Status::OK();
654
9.87k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
841k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
841k
    if (_closed) {
647
0
        return Status::OK();
648
0
    }
649
841k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
841k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
841k
    }
652
841k
    _closed = true;
653
841k
    return Status::OK();
654
841k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
645
304
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
646
304
    if (_closed) {
647
162
        return Status::OK();
648
162
    }
649
142
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
650
142
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
651
142
    }
652
142
    _closed = true;
653
142
    return Status::OK();
654
304
}
655
656
template <typename SharedState>
657
2.10M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
2.10M
    _operator_profile =
660
2.10M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
2.10M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
2.10M
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
2.10M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
2.10M
    _operator_profile->add_child(_common_profile, true);
669
2.10M
    _operator_profile->add_child(_custom_profile, true);
670
671
2.10M
    _operator_profile->set_metadata(_parent->node_id());
672
2.10M
    _wait_for_finish_dependency_timer =
673
2.10M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
2.10M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
2.10M
    if constexpr (!is_fake_shared) {
676
1.41M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
1.41M
            info.shared_state_map.end()) {
678
368k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
349k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
349k
            }
681
368k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
368k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
368k
                                                  ? 0
684
368k
                                                  : info.task_idx]
685
368k
                                  .get();
686
368k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
1.04M
        } else {
688
1.04M
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
360
                DCHECK(false);
690
360
            }
691
1.04M
            _shared_state = info.shared_state->template cast<SharedState>();
692
1.04M
            _dependency = _shared_state->create_sink_dependency(
693
1.04M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
1.04M
        }
695
1.41M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
1.41M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
1.41M
    }
698
699
2.10M
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
2.10M
    _rows_input_counter =
704
2.10M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
2.10M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
2.10M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
2.10M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
2.10M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
2.10M
    _memory_used_counter =
710
2.10M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
2.10M
    _common_profile->add_info_string("IsColocate",
712
2.10M
                                     std::to_string(_parent->is_colocated_operator()));
713
2.10M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
2.10M
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
2.10M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
2.10M
    return Status::OK();
717
2.10M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
116k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
116k
    _operator_profile =
660
116k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
116k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
116k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
116k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
116k
    _operator_profile->add_child(_common_profile, true);
669
116k
    _operator_profile->add_child(_custom_profile, true);
670
671
116k
    _operator_profile->set_metadata(_parent->node_id());
672
116k
    _wait_for_finish_dependency_timer =
673
116k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
116k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
116k
    if constexpr (!is_fake_shared) {
676
116k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
116k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
18.4k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
18.4k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
18.4k
                                                  ? 0
684
18.4k
                                                  : info.task_idx]
685
18.4k
                                  .get();
686
18.4k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
98.4k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
98.4k
            _shared_state = info.shared_state->template cast<SharedState>();
692
98.4k
            _dependency = _shared_state->create_sink_dependency(
693
98.4k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
98.4k
        }
695
116k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
116k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
116k
    }
698
699
116k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
116k
    _rows_input_counter =
704
116k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
116k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
116k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
116k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
116k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
116k
    _memory_used_counter =
710
116k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
116k
    _common_profile->add_info_string("IsColocate",
712
116k
                                     std::to_string(_parent->is_colocated_operator()));
713
116k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
116k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
116k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
116k
    return Status::OK();
717
116k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
2
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
2
    _operator_profile =
660
2
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
2
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
2
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
2
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
2
    _operator_profile->add_child(_common_profile, true);
669
2
    _operator_profile->add_child(_custom_profile, true);
670
671
2
    _operator_profile->set_metadata(_parent->node_id());
672
2
    _wait_for_finish_dependency_timer =
673
2
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
2
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
2
    if constexpr (!is_fake_shared) {
676
2
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
2
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
2
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
2
            _shared_state = info.shared_state->template cast<SharedState>();
692
2
            _dependency = _shared_state->create_sink_dependency(
693
2
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
2
        }
695
2
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
2
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
2
    }
698
699
2
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
2
    _rows_input_counter =
704
2
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
2
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
2
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
2
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
2
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
2
    _memory_used_counter =
710
2
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
2
    _common_profile->add_info_string("IsColocate",
712
2
                                     std::to_string(_parent->is_colocated_operator()));
713
2
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
2
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
2
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
2
    return Status::OK();
717
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
266k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
266k
    _operator_profile =
660
266k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
266k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
266k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
266k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
266k
    _operator_profile->add_child(_common_profile, true);
669
266k
    _operator_profile->add_child(_custom_profile, true);
670
671
266k
    _operator_profile->set_metadata(_parent->node_id());
672
266k
    _wait_for_finish_dependency_timer =
673
266k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
266k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
266k
    if constexpr (!is_fake_shared) {
676
266k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
266k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
266k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
266k
            _shared_state = info.shared_state->template cast<SharedState>();
692
266k
            _dependency = _shared_state->create_sink_dependency(
693
266k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
266k
        }
695
266k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
266k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
266k
    }
698
699
266k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
266k
    _rows_input_counter =
704
266k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
266k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
266k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
266k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
266k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
266k
    _memory_used_counter =
710
266k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
266k
    _common_profile->add_info_string("IsColocate",
712
266k
                                     std::to_string(_parent->is_colocated_operator()));
713
266k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
266k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
266k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
266k
    return Status::OK();
717
266k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
28
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
28
    _operator_profile =
660
28
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
28
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
28
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
28
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
28
    _operator_profile->add_child(_common_profile, true);
669
28
    _operator_profile->add_child(_custom_profile, true);
670
671
28
    _operator_profile->set_metadata(_parent->node_id());
672
28
    _wait_for_finish_dependency_timer =
673
28
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
28
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
28
    if constexpr (!is_fake_shared) {
676
28
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
28
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
28
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
28
            _shared_state = info.shared_state->template cast<SharedState>();
692
28
            _dependency = _shared_state->create_sink_dependency(
693
28
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
28
        }
695
28
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
28
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
28
    }
698
699
28
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
28
    _rows_input_counter =
704
28
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
28
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
28
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
28
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
28
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
28
    _memory_used_counter =
710
28
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
28
    _common_profile->add_info_string("IsColocate",
712
28
                                     std::to_string(_parent->is_colocated_operator()));
713
28
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
28
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
28
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
28
    return Status::OK();
717
28
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
9.32k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
9.32k
    _operator_profile =
660
9.32k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
9.32k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
9.32k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
9.32k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
9.32k
    _operator_profile->add_child(_common_profile, true);
669
9.32k
    _operator_profile->add_child(_custom_profile, true);
670
671
9.32k
    _operator_profile->set_metadata(_parent->node_id());
672
9.32k
    _wait_for_finish_dependency_timer =
673
9.32k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
9.32k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
9.32k
    if constexpr (!is_fake_shared) {
676
9.32k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
9.32k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
9.32k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
9.32k
            _shared_state = info.shared_state->template cast<SharedState>();
692
9.32k
            _dependency = _shared_state->create_sink_dependency(
693
9.32k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
9.32k
        }
695
9.32k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
9.32k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
9.32k
    }
698
699
9.32k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
9.32k
    _rows_input_counter =
704
9.32k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
9.32k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
9.32k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
9.32k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
9.32k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
9.32k
    _memory_used_counter =
710
9.32k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
9.32k
    _common_profile->add_info_string("IsColocate",
712
9.32k
                                     std::to_string(_parent->is_colocated_operator()));
713
9.32k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
9.32k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
9.32k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
9.32k
    return Status::OK();
717
9.32k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
7.24k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
7.24k
    _operator_profile =
660
7.24k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
7.24k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
7.24k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
7.24k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
7.24k
    _operator_profile->add_child(_common_profile, true);
669
7.24k
    _operator_profile->add_child(_custom_profile, true);
670
671
7.24k
    _operator_profile->set_metadata(_parent->node_id());
672
7.24k
    _wait_for_finish_dependency_timer =
673
7.24k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
7.24k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
7.24k
    if constexpr (!is_fake_shared) {
676
7.24k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
7.24k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
7.24k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
7.24k
            _shared_state = info.shared_state->template cast<SharedState>();
692
7.24k
            _dependency = _shared_state->create_sink_dependency(
693
7.24k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
7.24k
        }
695
7.24k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
7.24k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
7.24k
    }
698
699
7.24k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
7.24k
    _rows_input_counter =
704
7.24k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
7.24k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
7.24k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
7.24k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
7.24k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
7.24k
    _memory_used_counter =
710
7.24k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
7.24k
    _common_profile->add_info_string("IsColocate",
712
7.24k
                                     std::to_string(_parent->is_colocated_operator()));
713
7.24k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
7.24k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
7.24k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
7.24k
    return Status::OK();
717
7.24k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
136k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
136k
    _operator_profile =
660
136k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
136k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
136k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
136k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
136k
    _operator_profile->add_child(_common_profile, true);
669
136k
    _operator_profile->add_child(_custom_profile, true);
670
671
136k
    _operator_profile->set_metadata(_parent->node_id());
672
136k
    _wait_for_finish_dependency_timer =
673
136k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
136k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
136k
    if constexpr (!is_fake_shared) {
676
136k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
136k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
136k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
136k
            _shared_state = info.shared_state->template cast<SharedState>();
692
136k
            _dependency = _shared_state->create_sink_dependency(
693
136k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
136k
        }
695
136k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
136k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
136k
    }
698
699
136k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
136k
    _rows_input_counter =
704
136k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
136k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
136k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
136k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
136k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
136k
    _memory_used_counter =
710
136k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
136k
    _common_profile->add_info_string("IsColocate",
712
136k
                                     std::to_string(_parent->is_colocated_operator()));
713
136k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
136k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
136k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
136k
    return Status::OK();
717
136k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
326
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
326
    _operator_profile =
660
326
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
326
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
326
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
326
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
326
    _operator_profile->add_child(_common_profile, true);
669
326
    _operator_profile->add_child(_custom_profile, true);
670
671
326
    _operator_profile->set_metadata(_parent->node_id());
672
326
    _wait_for_finish_dependency_timer =
673
326
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
326
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
326
    if constexpr (!is_fake_shared) {
676
326
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
327
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
327
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
327
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
327
                                                  ? 0
684
327
                                                  : info.task_idx]
685
327
                                  .get();
686
327
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
18.4E
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
18.4E
            _shared_state = info.shared_state->template cast<SharedState>();
692
18.4E
            _dependency = _shared_state->create_sink_dependency(
693
18.4E
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
18.4E
        }
695
326
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
326
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
326
    }
698
699
326
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
326
    _rows_input_counter =
704
326
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
326
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
326
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
326
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
326
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
326
    _memory_used_counter =
710
326
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
326
    _common_profile->add_info_string("IsColocate",
712
326
                                     std::to_string(_parent->is_colocated_operator()));
713
326
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
326
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
326
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
326
    return Status::OK();
717
326
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
131
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
131
    _operator_profile =
660
131
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
131
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
131
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
131
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
131
    _operator_profile->add_child(_common_profile, true);
669
131
    _operator_profile->add_child(_custom_profile, true);
670
671
131
    _operator_profile->set_metadata(_parent->node_id());
672
131
    _wait_for_finish_dependency_timer =
673
131
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
131
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
131
    if constexpr (!is_fake_shared) {
676
131
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
131
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
131
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
131
            _shared_state = info.shared_state->template cast<SharedState>();
692
131
            _dependency = _shared_state->create_sink_dependency(
693
131
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
131
        }
695
131
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
131
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
131
    }
698
699
131
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
131
    _rows_input_counter =
704
131
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
131
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
131
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
131
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
131
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
131
    _memory_used_counter =
710
131
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
131
    _common_profile->add_info_string("IsColocate",
712
131
                                     std::to_string(_parent->is_colocated_operator()));
713
131
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
131
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
131
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
131
    return Status::OK();
717
131
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
689k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
689k
    _operator_profile =
660
689k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
689k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
689k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
689k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
689k
    _operator_profile->add_child(_common_profile, true);
669
689k
    _operator_profile->add_child(_custom_profile, true);
670
671
689k
    _operator_profile->set_metadata(_parent->node_id());
672
689k
    _wait_for_finish_dependency_timer =
673
689k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
689k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
    if constexpr (!is_fake_shared) {
676
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
                                                  ? 0
684
                                                  : info.task_idx]
685
                                  .get();
686
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
            _shared_state = info.shared_state->template cast<SharedState>();
692
            _dependency = _shared_state->create_sink_dependency(
693
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
        }
695
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
    }
698
699
689k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
689k
    _rows_input_counter =
704
689k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
689k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
689k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
689k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
689k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
689k
    _memory_used_counter =
710
689k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
689k
    _common_profile->add_info_string("IsColocate",
712
689k
                                     std::to_string(_parent->is_colocated_operator()));
713
689k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
689k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
689k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
689k
    return Status::OK();
717
689k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
6.05k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
6.05k
    _operator_profile =
660
6.05k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
6.05k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
6.05k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
6.05k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
6.05k
    _operator_profile->add_child(_common_profile, true);
669
6.05k
    _operator_profile->add_child(_custom_profile, true);
670
671
6.05k
    _operator_profile->set_metadata(_parent->node_id());
672
6.05k
    _wait_for_finish_dependency_timer =
673
6.05k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
6.05k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
6.05k
    if constexpr (!is_fake_shared) {
676
6.05k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
6.05k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
6.05k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
6.05k
            _shared_state = info.shared_state->template cast<SharedState>();
692
6.05k
            _dependency = _shared_state->create_sink_dependency(
693
6.05k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
6.05k
        }
695
6.05k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
6.05k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
6.05k
    }
698
699
6.05k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
6.05k
    _rows_input_counter =
704
6.05k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
6.05k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
6.05k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
6.05k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
6.05k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
6.05k
    _memory_used_counter =
710
6.05k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
6.05k
    _common_profile->add_info_string("IsColocate",
712
6.05k
                                     std::to_string(_parent->is_colocated_operator()));
713
6.05k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
6.05k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
6.05k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
6.05k
    return Status::OK();
717
6.05k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
634
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
634
    _operator_profile =
660
634
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
634
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
634
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
634
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
634
    _operator_profile->add_child(_common_profile, true);
669
634
    _operator_profile->add_child(_custom_profile, true);
670
671
634
    _operator_profile->set_metadata(_parent->node_id());
672
634
    _wait_for_finish_dependency_timer =
673
634
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
634
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
634
    if constexpr (!is_fake_shared) {
676
634
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
634
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
634
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
634
            _shared_state = info.shared_state->template cast<SharedState>();
692
634
            _dependency = _shared_state->create_sink_dependency(
693
634
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
634
        }
695
634
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
634
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
634
    }
698
699
635
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
634
    _rows_input_counter =
704
634
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
634
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
634
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
634
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
634
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
634
    _memory_used_counter =
710
634
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
634
    _common_profile->add_info_string("IsColocate",
712
634
                                     std::to_string(_parent->is_colocated_operator()));
713
634
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
634
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
634
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
634
    return Status::OK();
717
634
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
3.38k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
3.38k
    _operator_profile =
660
3.38k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
3.38k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
3.38k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
3.38k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
3.38k
    _operator_profile->add_child(_common_profile, true);
669
3.38k
    _operator_profile->add_child(_custom_profile, true);
670
671
3.38k
    _operator_profile->set_metadata(_parent->node_id());
672
3.38k
    _wait_for_finish_dependency_timer =
673
3.38k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
3.38k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
3.38k
    if constexpr (!is_fake_shared) {
676
3.38k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
3.38k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
3.38k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
3.38k
            _shared_state = info.shared_state->template cast<SharedState>();
692
3.38k
            _dependency = _shared_state->create_sink_dependency(
693
3.38k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
3.38k
        }
695
3.38k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
3.38k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
3.38k
    }
698
699
3.38k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
3.38k
    _rows_input_counter =
704
3.38k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
3.38k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
3.38k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
3.38k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
3.38k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
3.38k
    _memory_used_counter =
710
3.38k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
3.38k
    _common_profile->add_info_string("IsColocate",
712
3.38k
                                     std::to_string(_parent->is_colocated_operator()));
713
3.38k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
3.38k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
3.38k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
3.38k
    return Status::OK();
717
3.38k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
12.0k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
12.0k
    _operator_profile =
660
12.0k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
12.0k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
12.0k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
12.0k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
12.0k
    _operator_profile->add_child(_common_profile, true);
669
12.0k
    _operator_profile->add_child(_custom_profile, true);
670
671
12.0k
    _operator_profile->set_metadata(_parent->node_id());
672
12.0k
    _wait_for_finish_dependency_timer =
673
12.0k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
12.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
12.0k
    if constexpr (!is_fake_shared) {
676
12.0k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
12.0k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
12.0k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
12.0k
            _shared_state = info.shared_state->template cast<SharedState>();
692
12.0k
            _dependency = _shared_state->create_sink_dependency(
693
12.0k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
12.0k
        }
695
12.0k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
12.0k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
12.0k
    }
698
699
12.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
12.0k
    _rows_input_counter =
704
12.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
12.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
12.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
12.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
12.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
12.0k
    _memory_used_counter =
710
12.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
12.0k
    _common_profile->add_info_string("IsColocate",
712
12.0k
                                     std::to_string(_parent->is_colocated_operator()));
713
12.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
12.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
12.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
12.0k
    return Status::OK();
717
12.0k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
350k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
350k
    _operator_profile =
660
350k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
350k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
350k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
350k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
350k
    _operator_profile->add_child(_common_profile, true);
669
350k
    _operator_profile->add_child(_custom_profile, true);
670
671
350k
    _operator_profile->set_metadata(_parent->node_id());
672
350k
    _wait_for_finish_dependency_timer =
673
350k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
350k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
350k
    if constexpr (!is_fake_shared) {
676
350k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
350k
            info.shared_state_map.end()) {
678
349k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
349k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
349k
            }
681
349k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
349k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
349k
                                                  ? 0
684
349k
                                                  : info.task_idx]
685
349k
                                  .get();
686
349k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
349k
        } else {
688
360
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
360
                DCHECK(false);
690
360
            }
691
360
            _shared_state = info.shared_state->template cast<SharedState>();
692
360
            _dependency = _shared_state->create_sink_dependency(
693
360
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
360
        }
695
350k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
350k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
350k
    }
698
699
350k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
350k
    _rows_input_counter =
704
350k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
350k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
350k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
350k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
350k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
350k
    _memory_used_counter =
710
350k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
350k
    _common_profile->add_info_string("IsColocate",
712
350k
                                     std::to_string(_parent->is_colocated_operator()));
713
350k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
350k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
350k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
350k
    return Status::OK();
717
350k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
501k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
501k
    _operator_profile =
660
501k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
501k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
501k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
501k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
501k
    _operator_profile->add_child(_common_profile, true);
669
501k
    _operator_profile->add_child(_custom_profile, true);
670
671
501k
    _operator_profile->set_metadata(_parent->node_id());
672
501k
    _wait_for_finish_dependency_timer =
673
501k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
501k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
501k
    if constexpr (!is_fake_shared) {
676
501k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
501k
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
501k
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
501k
            _shared_state = info.shared_state->template cast<SharedState>();
692
501k
            _dependency = _shared_state->create_sink_dependency(
693
501k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
501k
        }
695
501k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
501k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
501k
    }
698
699
501k
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
501k
    _rows_input_counter =
704
501k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
501k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
501k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
501k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
501k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
501k
    _memory_used_counter =
710
501k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
501k
    _common_profile->add_info_string("IsColocate",
712
501k
                                     std::to_string(_parent->is_colocated_operator()));
713
501k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
501k
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
501k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
501k
    return Status::OK();
717
501k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
17
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
17
    _operator_profile =
660
17
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
17
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
17
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
17
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
17
    _operator_profile->add_child(_common_profile, true);
669
17
    _operator_profile->add_child(_custom_profile, true);
670
671
17
    _operator_profile->set_metadata(_parent->node_id());
672
17
    _wait_for_finish_dependency_timer =
673
17
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
17
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
17
    if constexpr (!is_fake_shared) {
676
17
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
17
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
17
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
17
            _shared_state = info.shared_state->template cast<SharedState>();
692
17
            _dependency = _shared_state->create_sink_dependency(
693
17
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
17
        }
695
17
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
17
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
17
    }
698
699
17
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
17
    _rows_input_counter =
704
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
17
    _memory_used_counter =
710
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
17
    _common_profile->add_info_string("IsColocate",
712
17
                                     std::to_string(_parent->is_colocated_operator()));
713
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
17
    return Status::OK();
717
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
657
302
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
658
    // create profile
659
302
    _operator_profile =
660
302
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
661
302
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
662
302
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
663
664
    // indentation is true
665
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
666
    // So we should set the indentation to true.
667
302
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
668
302
    _operator_profile->add_child(_common_profile, true);
669
302
    _operator_profile->add_child(_custom_profile, true);
670
671
302
    _operator_profile->set_metadata(_parent->node_id());
672
302
    _wait_for_finish_dependency_timer =
673
302
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
674
302
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
675
302
    if constexpr (!is_fake_shared) {
676
302
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
677
302
            info.shared_state_map.end()) {
678
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
679
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
680
            }
681
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
682
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
683
0
                                                  ? 0
684
0
                                                  : info.task_idx]
685
0
                                  .get();
686
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
687
302
        } else {
688
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
689
                DCHECK(false);
690
            }
691
302
            _shared_state = info.shared_state->template cast<SharedState>();
692
302
            _dependency = _shared_state->create_sink_dependency(
693
302
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
694
302
        }
695
302
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
696
302
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
697
302
    }
698
699
302
    if (must_set_shared_state() && _shared_state == nullptr) {
700
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
701
0
    }
702
703
302
    _rows_input_counter =
704
302
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
705
302
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
706
302
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
707
302
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
708
302
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
709
302
    _memory_used_counter =
710
302
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
711
302
    _common_profile->add_info_string("IsColocate",
712
302
                                     std::to_string(_parent->is_colocated_operator()));
713
302
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
714
302
    _common_profile->add_info_string("FollowedByShuffledOperator",
715
302
                                     std::to_string(_parent->followed_by_shuffled_operator()));
716
302
    return Status::OK();
717
302
}
718
719
template <typename SharedState>
720
2.10M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
2.10M
    if (_closed) {
722
2
        return Status::OK();
723
2
    }
724
2.10M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
1.41M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
1.41M
    }
727
2.10M
    _closed = true;
728
2.10M
    return Status::OK();
729
2.10M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
116k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
116k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
116k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
116k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
116k
    }
727
116k
    _closed = true;
728
116k
    return Status::OK();
729
116k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
1
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
1
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
1
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
1
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
1
    }
727
1
    _closed = true;
728
1
    return Status::OK();
729
1
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
266k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
266k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
266k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
266k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
266k
    }
727
266k
    _closed = true;
728
266k
    return Status::OK();
729
266k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
20
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
20
    if (_closed) {
722
2
        return Status::OK();
723
2
    }
724
18
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
18
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
18
    }
727
18
    _closed = true;
728
18
    return Status::OK();
729
20
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
9.30k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
9.30k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
9.30k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
9.30k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
9.30k
    }
727
9.30k
    _closed = true;
728
9.30k
    return Status::OK();
729
9.30k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
7.22k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
7.22k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
7.22k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
7.22k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
7.22k
    }
727
7.22k
    _closed = true;
728
7.22k
    return Status::OK();
729
7.22k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
135k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
135k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
135k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
135k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
135k
    }
727
135k
    _closed = true;
728
135k
    return Status::OK();
729
135k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
325
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
325
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
325
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
325
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
325
    }
727
325
    _closed = true;
728
325
    return Status::OK();
729
325
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
120
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
120
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
120
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
120
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
120
    }
727
120
    _closed = true;
728
120
    return Status::OK();
729
120
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
691k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
691k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
    }
727
691k
    _closed = true;
728
691k
    return Status::OK();
729
691k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
6.04k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
6.04k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
6.04k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
6.04k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
6.04k
    }
727
6.04k
    _closed = true;
728
6.04k
    return Status::OK();
729
6.04k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
531
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
531
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
531
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
531
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
531
    }
727
531
    _closed = true;
728
531
    return Status::OK();
729
531
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
3.38k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
3.38k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
3.38k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
3.38k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
3.38k
    }
727
3.38k
    _closed = true;
728
3.38k
    return Status::OK();
729
3.38k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
12.0k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
12.0k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
12.0k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
12.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
12.0k
    }
727
12.0k
    _closed = true;
728
12.0k
    return Status::OK();
729
12.0k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
350k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
350k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
350k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
350k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
350k
    }
727
350k
    _closed = true;
728
350k
    return Status::OK();
729
350k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
502k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
502k
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
502k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
502k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
502k
    }
727
502k
    _closed = true;
728
502k
    return Status::OK();
729
502k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
14
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
14
    }
727
14
    _closed = true;
728
14
    return Status::OK();
729
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
720
302
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
721
302
    if (_closed) {
722
0
        return Status::OK();
723
0
    }
724
302
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
725
302
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
726
302
    }
727
302
    _closed = true;
728
302
    return Status::OK();
729
302
}
730
731
template <typename LocalStateType>
732
9.41k
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
733
9.41k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
734
9.41k
    return pull(state, block, eos);
735
9.41k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
732
431
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
733
431
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
734
431
    return pull(state, block, eos);
735
431
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
732
8.98k
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
733
8.98k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
734
8.97k
    return pull(state, block, eos);
735
8.98k
}
736
737
template <typename LocalStateType>
738
705k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
705k
    auto& local_state = get_local_state(state);
740
705k
    if (need_more_input_data(state)) {
741
675k
        local_state._child_block->clear_column_data(
742
675k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
675k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
675k
                state, local_state._child_block.get(), &local_state._child_eos));
745
675k
        *eos = local_state._child_eos;
746
675k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
70.7k
            return Status::OK();
748
70.7k
        }
749
604k
        {
750
604k
            SCOPED_TIMER(local_state.exec_time_counter());
751
604k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
604k
        }
753
604k
    }
754
755
634k
    if (!need_more_input_data(state)) {
756
592k
        SCOPED_TIMER(local_state.exec_time_counter());
757
592k
        bool new_eos = false;
758
592k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
592k
        if (new_eos) {
760
517k
            *eos = true;
761
517k
        } else if (!need_more_input_data(state)) {
762
22.9k
            *eos = false;
763
22.9k
        }
764
592k
    }
765
634k
    return Status::OK();
766
634k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
135k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
135k
    auto& local_state = get_local_state(state);
740
135k
    if (need_more_input_data(state)) {
741
118k
        local_state._child_block->clear_column_data(
742
118k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
118k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
118k
                state, local_state._child_block.get(), &local_state._child_eos));
745
118k
        *eos = local_state._child_eos;
746
118k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
39.8k
            return Status::OK();
748
39.8k
        }
749
78.7k
        {
750
78.7k
            SCOPED_TIMER(local_state.exec_time_counter());
751
78.7k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
78.7k
        }
753
78.7k
    }
754
755
96.1k
    if (!need_more_input_data(state)) {
756
96.1k
        SCOPED_TIMER(local_state.exec_time_counter());
757
96.1k
        bool new_eos = false;
758
96.1k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
96.1k
        if (new_eos) {
760
44.6k
            *eos = true;
761
51.4k
        } else if (!need_more_input_data(state)) {
762
8.80k
            *eos = false;
763
8.80k
        }
764
96.1k
    }
765
96.0k
    return Status::OK();
766
96.0k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
3.11k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
3.11k
    auto& local_state = get_local_state(state);
740
3.11k
    if (need_more_input_data(state)) {
741
1.85k
        local_state._child_block->clear_column_data(
742
1.85k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
1.85k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
1.85k
                state, local_state._child_block.get(), &local_state._child_eos));
745
1.85k
        *eos = local_state._child_eos;
746
1.85k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
424
            return Status::OK();
748
424
        }
749
1.43k
        {
750
1.43k
            SCOPED_TIMER(local_state.exec_time_counter());
751
1.43k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
1.43k
        }
753
1.43k
    }
754
755
2.70k
    if (!need_more_input_data(state)) {
756
2.70k
        SCOPED_TIMER(local_state.exec_time_counter());
757
2.70k
        bool new_eos = false;
758
2.70k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
2.70k
        if (new_eos) {
760
1.07k
            *eos = true;
761
1.63k
        } else if (!need_more_input_data(state)) {
762
1.27k
            *eos = false;
763
1.27k
        }
764
2.70k
    }
765
2.69k
    return Status::OK();
766
2.69k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
4.60k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
4.60k
    auto& local_state = get_local_state(state);
740
4.60k
    if (need_more_input_data(state)) {
741
4.60k
        local_state._child_block->clear_column_data(
742
4.60k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
4.60k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
4.60k
                state, local_state._child_block.get(), &local_state._child_eos));
745
4.60k
        *eos = local_state._child_eos;
746
4.60k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
1.56k
            return Status::OK();
748
1.56k
        }
749
3.04k
        {
750
3.04k
            SCOPED_TIMER(local_state.exec_time_counter());
751
3.04k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
3.04k
        }
753
3.04k
    }
754
755
3.04k
    if (!need_more_input_data(state)) {
756
3.04k
        SCOPED_TIMER(local_state.exec_time_counter());
757
3.04k
        bool new_eos = false;
758
3.04k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
3.04k
        if (new_eos) {
760
1.58k
            *eos = true;
761
1.58k
        } else if (!need_more_input_data(state)) {
762
0
            *eos = false;
763
0
        }
764
3.04k
    }
765
3.04k
    return Status::OK();
766
3.04k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
27.4k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
27.4k
    auto& local_state = get_local_state(state);
740
27.4k
    if (need_more_input_data(state)) {
741
27.4k
        local_state._child_block->clear_column_data(
742
27.4k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
27.4k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
27.4k
                state, local_state._child_block.get(), &local_state._child_eos));
745
27.4k
        *eos = local_state._child_eos;
746
27.4k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
2.57k
            return Status::OK();
748
2.57k
        }
749
24.8k
        {
750
24.8k
            SCOPED_TIMER(local_state.exec_time_counter());
751
24.8k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
24.8k
        }
753
24.8k
    }
754
755
24.8k
    if (!need_more_input_data(state)) {
756
11.0k
        SCOPED_TIMER(local_state.exec_time_counter());
757
11.0k
        bool new_eos = false;
758
11.0k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
11.0k
        if (new_eos) {
760
10.9k
            *eos = true;
761
10.9k
        } else if (!need_more_input_data(state)) {
762
0
            *eos = false;
763
0
        }
764
11.0k
    }
765
24.8k
    return Status::OK();
766
24.8k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
498k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
498k
    auto& local_state = get_local_state(state);
740
499k
    if (need_more_input_data(state)) {
741
499k
        local_state._child_block->clear_column_data(
742
499k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
499k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
499k
                state, local_state._child_block.get(), &local_state._child_eos));
745
499k
        *eos = local_state._child_eos;
746
499k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
23.1k
            return Status::OK();
748
23.1k
        }
749
476k
        {
750
476k
            SCOPED_TIMER(local_state.exec_time_counter());
751
476k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
476k
        }
753
476k
    }
754
755
475k
    if (!need_more_input_data(state)) {
756
446k
        SCOPED_TIMER(local_state.exec_time_counter());
757
446k
        bool new_eos = false;
758
446k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
446k
        if (new_eos) {
760
445k
            *eos = true;
761
445k
        } else if (!need_more_input_data(state)) {
762
0
            *eos = false;
763
0
        }
764
446k
    }
765
475k
    return Status::OK();
766
475k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
29.5k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
29.5k
    auto& local_state = get_local_state(state);
740
29.5k
    if (need_more_input_data(state)) {
741
17.0k
        local_state._child_block->clear_column_data(
742
17.0k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
17.0k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
17.0k
                state, local_state._child_block.get(), &local_state._child_eos));
745
17.0k
        *eos = local_state._child_eos;
746
17.0k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
2.61k
            return Status::OK();
748
2.61k
        }
749
14.3k
        {
750
14.3k
            SCOPED_TIMER(local_state.exec_time_counter());
751
14.3k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
14.3k
        }
753
14.3k
    }
754
755
26.9k
    if (!need_more_input_data(state)) {
756
26.4k
        SCOPED_TIMER(local_state.exec_time_counter());
757
26.4k
        bool new_eos = false;
758
26.4k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
26.4k
        if (new_eos) {
760
9.29k
            *eos = true;
761
17.1k
        } else if (!need_more_input_data(state)) {
762
12.5k
            *eos = false;
763
12.5k
        }
764
26.4k
    }
765
26.9k
    return Status::OK();
766
26.9k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
738
6.76k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
739
6.76k
    auto& local_state = get_local_state(state);
740
6.76k
    if (need_more_input_data(state)) {
741
6.39k
        local_state._child_block->clear_column_data(
742
6.39k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
743
6.39k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
744
6.39k
                state, local_state._child_block.get(), &local_state._child_eos));
745
6.39k
        *eos = local_state._child_eos;
746
6.39k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
747
574
            return Status::OK();
748
574
        }
749
5.81k
        {
750
5.81k
            SCOPED_TIMER(local_state.exec_time_counter());
751
5.81k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
752
5.81k
        }
753
5.81k
    }
754
755
6.18k
    if (!need_more_input_data(state)) {
756
6.17k
        SCOPED_TIMER(local_state.exec_time_counter());
757
6.17k
        bool new_eos = false;
758
6.17k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
759
6.17k
        if (new_eos) {
760
4.14k
            *eos = true;
761
4.14k
        } else if (!need_more_input_data(state)) {
762
366
            *eos = false;
763
366
        }
764
6.17k
    }
765
6.18k
    return Status::OK();
766
6.18k
}
767
768
template <typename Writer, typename Parent>
769
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
770
64.0k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
64.0k
    RETURN_IF_ERROR(Base::init(state, info));
772
64.0k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
64.0k
                                                         "AsyncWriterDependency", true);
774
64.0k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
64.0k
                             _finish_dependency));
776
777
64.0k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
64.0k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
64.0k
    return Status::OK();
780
64.0k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
538
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
538
    RETURN_IF_ERROR(Base::init(state, info));
772
538
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
538
                                                         "AsyncWriterDependency", true);
774
538
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
538
                             _finish_dependency));
776
777
538
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
538
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
538
    return Status::OK();
780
538
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
88
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
88
    RETURN_IF_ERROR(Base::init(state, info));
772
88
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
88
                                                         "AsyncWriterDependency", true);
774
88
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
88
                             _finish_dependency));
776
777
88
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
88
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
88
    return Status::OK();
780
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
44.9k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
44.9k
    RETURN_IF_ERROR(Base::init(state, info));
772
44.9k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
44.9k
                                                         "AsyncWriterDependency", true);
774
44.9k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
44.9k
                             _finish_dependency));
776
777
44.9k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
44.9k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
44.9k
    return Status::OK();
780
44.9k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
8.96k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
8.96k
    RETURN_IF_ERROR(Base::init(state, info));
772
8.96k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
8.96k
                                                         "AsyncWriterDependency", true);
774
8.96k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
8.96k
                             _finish_dependency));
776
777
8.96k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
8.96k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
8.96k
    return Status::OK();
780
8.96k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
5.15k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
5.15k
    RETURN_IF_ERROR(Base::init(state, info));
772
5.15k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
5.15k
                                                         "AsyncWriterDependency", true);
774
5.15k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
5.15k
                             _finish_dependency));
776
777
5.15k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
5.15k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
5.15k
    return Status::OK();
780
5.15k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
3.37k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
3.37k
    RETURN_IF_ERROR(Base::init(state, info));
772
3.37k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
3.37k
                                                         "AsyncWriterDependency", true);
774
3.37k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
3.37k
                             _finish_dependency));
776
777
3.37k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
3.37k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
3.37k
    return Status::OK();
780
3.37k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
160
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
160
    RETURN_IF_ERROR(Base::init(state, info));
772
160
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
160
                                                         "AsyncWriterDependency", true);
774
160
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
160
                             _finish_dependency));
776
777
160
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
160
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
160
    return Status::OK();
780
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
640
    RETURN_IF_ERROR(Base::init(state, info));
772
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
640
                                                         "AsyncWriterDependency", true);
774
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
640
                             _finish_dependency));
776
777
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
640
    return Status::OK();
780
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
770
156
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
771
156
    RETURN_IF_ERROR(Base::init(state, info));
772
156
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
773
156
                                                         "AsyncWriterDependency", true);
774
156
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
775
156
                             _finish_dependency));
776
777
156
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
778
156
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
779
156
    return Status::OK();
780
156
}
781
782
template <typename Writer, typename Parent>
783
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
784
64.1k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
64.1k
    RETURN_IF_ERROR(Base::open(state));
786
64.1k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
571k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
507k
        RETURN_IF_ERROR(
789
507k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
507k
    }
791
64.1k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
64.1k
    return Status::OK();
793
64.1k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
542
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
542
    RETURN_IF_ERROR(Base::open(state));
786
542
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
2.85k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
2.31k
        RETURN_IF_ERROR(
789
2.31k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
2.31k
    }
791
542
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
542
    return Status::OK();
793
542
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
88
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
88
    RETURN_IF_ERROR(Base::open(state));
786
88
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
412
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
324
        RETURN_IF_ERROR(
789
324
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
324
    }
791
88
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
88
    return Status::OK();
793
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
45.1k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
45.1k
    RETURN_IF_ERROR(Base::open(state));
786
45.1k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
331k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
286k
        RETURN_IF_ERROR(
789
286k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
286k
    }
791
45.1k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
45.1k
    return Status::OK();
793
45.1k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
8.90k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
8.90k
    RETURN_IF_ERROR(Base::open(state));
786
8.90k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
55.0k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
46.1k
        RETURN_IF_ERROR(
789
46.1k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
46.1k
    }
791
8.90k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
8.90k
    return Status::OK();
793
8.90k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
5.14k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
5.14k
    RETURN_IF_ERROR(Base::open(state));
786
5.14k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
133k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
128k
        RETURN_IF_ERROR(
789
128k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
128k
    }
791
5.14k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
5.14k
    return Status::OK();
793
5.14k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
3.37k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
3.37k
    RETURN_IF_ERROR(Base::open(state));
786
3.37k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
42.1k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
38.8k
        RETURN_IF_ERROR(
789
38.8k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
38.8k
    }
791
3.37k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
3.37k
    return Status::OK();
793
3.37k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
160
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
160
    RETURN_IF_ERROR(Base::open(state));
786
160
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
480
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
320
        RETURN_IF_ERROR(
789
320
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
320
    }
791
160
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
160
    return Status::OK();
793
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
640
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
640
    RETURN_IF_ERROR(Base::open(state));
786
640
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
4.39k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
3.75k
        RETURN_IF_ERROR(
789
3.75k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
3.75k
    }
791
640
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
640
    return Status::OK();
793
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
784
156
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
785
156
    RETURN_IF_ERROR(Base::open(state));
786
156
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
787
786
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
788
630
        RETURN_IF_ERROR(
789
630
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
790
630
    }
791
156
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
792
156
    return Status::OK();
793
156
}
794
795
template <typename Writer, typename Parent>
796
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
797
87.0k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
87.0k
    return _writer->sink(block, eos);
799
87.0k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
2.21k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
2.21k
    return _writer->sink(block, eos);
799
2.21k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
112
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
112
    return _writer->sink(block, eos);
799
112
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
60.3k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
60.3k
    return _writer->sink(block, eos);
799
60.3k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
10.3k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
10.3k
    return _writer->sink(block, eos);
799
10.3k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
7.49k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
7.49k
    return _writer->sink(block, eos);
799
7.49k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
5.31k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
5.31k
    return _writer->sink(block, eos);
799
5.31k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
180
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
180
    return _writer->sink(block, eos);
799
180
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
792
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
792
    return _writer->sink(block, eos);
799
792
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
797
310
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
798
310
    return _writer->sink(block, eos);
799
310
}
800
801
template <typename Writer, typename Parent>
802
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
803
64.2k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
64.2k
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
64.2k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
64.2k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
64.3k
    if (_writer) {
811
64.3k
        Status st = _writer->get_writer_status();
812
64.3k
        if (exec_status.ok()) {
813
64.1k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
64.1k
                                                       : Status::Cancelled("force close"));
815
64.1k
        } else {
816
156
            _writer->force_close(exec_status);
817
156
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
64.3k
        RETURN_IF_ERROR(st);
822
64.3k
    }
823
64.2k
    return Base::close(state, exec_status);
824
64.2k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
530
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
530
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
530
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
530
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
530
    if (_writer) {
811
530
        Status st = _writer->get_writer_status();
812
530
        if (exec_status.ok()) {
813
530
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
530
                                                       : Status::Cancelled("force close"));
815
530
        } else {
816
0
            _writer->force_close(exec_status);
817
0
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
530
        RETURN_IF_ERROR(st);
822
530
    }
823
530
    return Base::close(state, exec_status);
824
530
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
88
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
88
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
88
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
88
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
88
    if (_writer) {
811
88
        Status st = _writer->get_writer_status();
812
88
        if (exec_status.ok()) {
813
88
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
88
                                                       : Status::Cancelled("force close"));
815
88
        } else {
816
0
            _writer->force_close(exec_status);
817
0
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
88
        RETURN_IF_ERROR(st);
822
88
    }
823
80
    return Base::close(state, exec_status);
824
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
45.2k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
45.2k
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
45.2k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
45.2k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
45.2k
    if (_writer) {
811
45.2k
        Status st = _writer->get_writer_status();
812
45.2k
        if (exec_status.ok()) {
813
45.2k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
45.2k
                                                       : Status::Cancelled("force close"));
815
45.2k
        } else {
816
60
            _writer->force_close(exec_status);
817
60
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
45.2k
        RETURN_IF_ERROR(st);
822
45.2k
    }
823
45.1k
    return Base::close(state, exec_status);
824
45.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
8.95k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
8.95k
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
8.95k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
8.95k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
8.96k
    if (_writer) {
811
8.96k
        Status st = _writer->get_writer_status();
812
8.96k
        if (exec_status.ok()) {
813
8.86k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
8.86k
                                                       : Status::Cancelled("force close"));
815
8.86k
        } else {
816
96
            _writer->force_close(exec_status);
817
96
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
8.96k
        RETURN_IF_ERROR(st);
822
8.96k
    }
823
8.95k
    return Base::close(state, exec_status);
824
8.95k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
5.14k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
5.14k
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
5.14k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
5.14k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
5.14k
    if (_writer) {
811
5.14k
        Status st = _writer->get_writer_status();
812
5.15k
        if (exec_status.ok()) {
813
5.15k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
5.15k
                                                       : Status::Cancelled("force close"));
815
18.4E
        } else {
816
18.4E
            _writer->force_close(exec_status);
817
18.4E
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
5.14k
        RETURN_IF_ERROR(st);
822
5.14k
    }
823
5.14k
    return Base::close(state, exec_status);
824
5.14k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
3.37k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
3.37k
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
3.37k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
3.37k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
3.38k
    if (_writer) {
811
3.38k
        Status st = _writer->get_writer_status();
812
3.38k
        if (exec_status.ok()) {
813
3.37k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
3.37k
                                                       : Status::Cancelled("force close"));
815
3.37k
        } else {
816
2
            _writer->force_close(exec_status);
817
2
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
3.38k
        RETURN_IF_ERROR(st);
822
3.38k
    }
823
3.37k
    return Base::close(state, exec_status);
824
3.37k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
160
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
160
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
160
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
160
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
160
    if (_writer) {
811
160
        Status st = _writer->get_writer_status();
812
160
        if (exec_status.ok()) {
813
160
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
160
                                                       : Status::Cancelled("force close"));
815
160
        } else {
816
0
            _writer->force_close(exec_status);
817
0
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
160
        RETURN_IF_ERROR(st);
822
160
    }
823
160
    return Base::close(state, exec_status);
824
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
640
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
640
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
640
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
640
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
640
    if (_writer) {
811
640
        Status st = _writer->get_writer_status();
812
640
        if (exec_status.ok()) {
813
640
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
640
                                                       : Status::Cancelled("force close"));
815
640
        } else {
816
0
            _writer->force_close(exec_status);
817
0
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
640
        RETURN_IF_ERROR(st);
822
640
    }
823
640
    return Base::close(state, exec_status);
824
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
803
156
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
804
156
    if (_closed) {
805
0
        return Status::OK();
806
0
    }
807
156
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
808
156
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
809
    // if the init failed, the _writer may be nullptr. so here need check
810
156
    if (_writer) {
811
156
        Status st = _writer->get_writer_status();
812
156
        if (exec_status.ok()) {
813
156
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
814
156
                                                       : Status::Cancelled("force close"));
815
156
        } else {
816
0
            _writer->force_close(exec_status);
817
0
        }
818
        // If there is an error in process_block thread, then we should get the writer
819
        // status before call force_close. For example, the thread may failed in commit
820
        // transaction.
821
156
        RETURN_IF_ERROR(st);
822
156
    }
823
156
    return Base::close(state, exec_status);
824
156
}
825
826
#define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>;
827
DECLARE_OPERATOR(HashJoinBuildSinkLocalState)
828
DECLARE_OPERATOR(ResultSinkLocalState)
829
DECLARE_OPERATOR(JdbcTableSinkLocalState)
830
DECLARE_OPERATOR(MemoryScratchSinkLocalState)
831
DECLARE_OPERATOR(ResultFileSinkLocalState)
832
DECLARE_OPERATOR(OlapTableSinkLocalState)
833
DECLARE_OPERATOR(OlapTableSinkV2LocalState)
834
DECLARE_OPERATOR(HiveTableSinkLocalState)
835
DECLARE_OPERATOR(TVFTableSinkLocalState)
836
DECLARE_OPERATOR(IcebergTableSinkLocalState)
837
DECLARE_OPERATOR(SpillIcebergTableSinkLocalState)
838
DECLARE_OPERATOR(IcebergDeleteSinkLocalState)
839
DECLARE_OPERATOR(IcebergMergeSinkLocalState)
840
DECLARE_OPERATOR(MCTableSinkLocalState)
841
DECLARE_OPERATOR(AnalyticSinkLocalState)
842
DECLARE_OPERATOR(BlackholeSinkLocalState)
843
DECLARE_OPERATOR(SortSinkLocalState)
844
DECLARE_OPERATOR(SpillSortSinkLocalState)
845
DECLARE_OPERATOR(LocalExchangeSinkLocalState)
846
DECLARE_OPERATOR(AggSinkLocalState)
847
DECLARE_OPERATOR(BucketedAggSinkLocalState)
848
DECLARE_OPERATOR(PartitionedAggSinkLocalState)
849
DECLARE_OPERATOR(ExchangeSinkLocalState)
850
DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState)
851
DECLARE_OPERATOR(UnionSinkLocalState)
852
DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState)
853
DECLARE_OPERATOR(PartitionSortSinkLocalState)
854
DECLARE_OPERATOR(SetProbeSinkLocalState<true>)
855
DECLARE_OPERATOR(SetProbeSinkLocalState<false>)
856
DECLARE_OPERATOR(SetSinkLocalState<true>)
857
DECLARE_OPERATOR(SetSinkLocalState<false>)
858
DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState)
859
DECLARE_OPERATOR(GroupCommitBlockSinkLocalState)
860
DECLARE_OPERATOR(CacheSinkLocalState)
861
DECLARE_OPERATOR(DictSinkLocalState)
862
DECLARE_OPERATOR(RecCTESinkLocalState)
863
DECLARE_OPERATOR(RecCTEAnchorSinkLocalState)
864
865
#undef DECLARE_OPERATOR
866
867
#define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>;
868
DECLARE_OPERATOR(HashJoinProbeLocalState)
869
DECLARE_OPERATOR(OlapScanLocalState)
870
DECLARE_OPERATOR(GroupCommitLocalState)
871
DECLARE_OPERATOR(JDBCScanLocalState)
872
DECLARE_OPERATOR(FileScanLocalState)
873
DECLARE_OPERATOR(AnalyticLocalState)
874
DECLARE_OPERATOR(SortLocalState)
875
DECLARE_OPERATOR(SpillSortLocalState)
876
DECLARE_OPERATOR(LocalMergeSortLocalState)
877
DECLARE_OPERATOR(AggLocalState)
878
DECLARE_OPERATOR(BucketedAggLocalState)
879
DECLARE_OPERATOR(PartitionedAggLocalState)
880
DECLARE_OPERATOR(TableFunctionLocalState)
881
DECLARE_OPERATOR(ExchangeLocalState)
882
DECLARE_OPERATOR(RepeatLocalState)
883
DECLARE_OPERATOR(NestedLoopJoinProbeLocalState)
884
DECLARE_OPERATOR(AssertNumRowsLocalState)
885
DECLARE_OPERATOR(EmptySetLocalState)
886
DECLARE_OPERATOR(UnionSourceLocalState)
887
DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState)
888
DECLARE_OPERATOR(PartitionSortSourceLocalState)
889
DECLARE_OPERATOR(SetSourceLocalState<true>)
890
DECLARE_OPERATOR(SetSourceLocalState<false>)
891
DECLARE_OPERATOR(DataGenLocalState)
892
DECLARE_OPERATOR(SchemaScanLocalState)
893
DECLARE_OPERATOR(MetaScanLocalState)
894
DECLARE_OPERATOR(LocalExchangeSourceLocalState)
895
DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState)
896
DECLARE_OPERATOR(CacheSourceLocalState)
897
DECLARE_OPERATOR(RecCTESourceLocalState)
898
DECLARE_OPERATOR(RecCTEScanLocalState)
899
900
#ifdef BE_TEST
901
DECLARE_OPERATOR(MockLocalState)
902
DECLARE_OPERATOR(MockScanLocalState)
903
#endif
904
#undef DECLARE_OPERATOR
905
906
template class StreamingOperatorX<AssertNumRowsLocalState>;
907
template class StreamingOperatorX<SelectLocalState>;
908
909
template class StatefulOperatorX<HashJoinProbeLocalState>;
910
template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>;
911
template class StatefulOperatorX<RepeatLocalState>;
912
template class StatefulOperatorX<MaterializationLocalState>;
913
template class StatefulOperatorX<StreamingAggLocalState>;
914
template class StatefulOperatorX<DistinctStreamingAggLocalState>;
915
template class StatefulOperatorX<NestedLoopJoinProbeLocalState>;
916
template class StatefulOperatorX<TableFunctionLocalState>;
917
918
template class PipelineXSinkLocalState<HashJoinSharedState>;
919
template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>;
920
template class PipelineXSinkLocalState<SortSharedState>;
921
template class PipelineXSinkLocalState<SpillSortSharedState>;
922
template class PipelineXSinkLocalState<NestedLoopJoinSharedState>;
923
template class PipelineXSinkLocalState<AnalyticSharedState>;
924
template class PipelineXSinkLocalState<AggSharedState>;
925
template class PipelineXSinkLocalState<BucketedAggSharedState>;
926
template class PipelineXSinkLocalState<PartitionedAggSharedState>;
927
template class PipelineXSinkLocalState<FakeSharedState>;
928
template class PipelineXSinkLocalState<UnionSharedState>;
929
template class PipelineXSinkLocalState<PartitionSortNodeSharedState>;
930
template class PipelineXSinkLocalState<MultiCastSharedState>;
931
template class PipelineXSinkLocalState<SetSharedState>;
932
template class PipelineXSinkLocalState<LocalExchangeSharedState>;
933
template class PipelineXSinkLocalState<BasicSharedState>;
934
template class PipelineXSinkLocalState<DataQueueSharedState>;
935
template class PipelineXSinkLocalState<RecCTESharedState>;
936
937
template class PipelineXLocalState<HashJoinSharedState>;
938
template class PipelineXLocalState<PartitionedHashJoinSharedState>;
939
template class PipelineXLocalState<SortSharedState>;
940
template class PipelineXLocalState<SpillSortSharedState>;
941
template class PipelineXLocalState<NestedLoopJoinSharedState>;
942
template class PipelineXLocalState<AnalyticSharedState>;
943
template class PipelineXLocalState<AggSharedState>;
944
template class PipelineXLocalState<BucketedAggSharedState>;
945
template class PipelineXLocalState<PartitionedAggSharedState>;
946
template class PipelineXLocalState<FakeSharedState>;
947
template class PipelineXLocalState<UnionSharedState>;
948
template class PipelineXLocalState<DataQueueSharedState>;
949
template class PipelineXLocalState<MultiCastSharedState>;
950
template class PipelineXLocalState<PartitionSortNodeSharedState>;
951
template class PipelineXLocalState<SetSharedState>;
952
template class PipelineXLocalState<LocalExchangeSharedState>;
953
template class PipelineXLocalState<BasicSharedState>;
954
template class PipelineXLocalState<RecCTESharedState>;
955
956
template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>;
957
template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>;
958
template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>;
959
template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>;
960
template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>;
961
template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>;
962
template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>;
963
template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>;
964
template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>;
965
template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>;
966
template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>;
967
968
#ifdef BE_TEST
969
template class OperatorX<DummyOperatorLocalState>;
970
template class DataSinkOperatorX<DummySinkLocalState>;
971
#endif
972
973
} // namespace doris