Coverage Report

Created: 2026-05-27 10:48

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.48M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
2.48M
    if (_parent->nereids_id() == -1) {
120
1.29M
        return fmt::format("(id={})", _parent->node_id());
121
1.29M
    } else {
122
1.19M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
1.19M
    }
124
2.48M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
66.1k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
66.1k
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
66.1k
    } else {
122
66.1k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
66.1k
    }
124
66.1k
}
_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
254k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
254k
    if (_parent->nereids_id() == -1) {
120
12
        return fmt::format("(id={})", _parent->node_id());
121
254k
    } else {
122
254k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
254k
    }
124
254k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
23
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
23
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
23
    } else {
122
23
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
23
    }
124
23
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
31.5k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
31.5k
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
31.5k
    } else {
122
31.5k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
31.5k
    }
124
31.5k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
6.44k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
6.44k
    if (_parent->nereids_id() == -1) {
120
9
        return fmt::format("(id={})", _parent->node_id());
121
6.43k
    } else {
122
6.43k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
6.43k
    }
124
6.44k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
212k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
212k
    if (_parent->nereids_id() == -1) {
120
29
        return fmt::format("(id={})", _parent->node_id());
121
212k
    } else {
122
212k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
212k
    }
124
212k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
452
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
452
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
452
    } else {
122
452
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
452
    }
124
452
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
134
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
134
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
134
    } else {
122
134
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
134
    }
124
134
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
1.05M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
1.05M
    if (_parent->nereids_id() == -1) {
120
499k
        return fmt::format("(id={})", _parent->node_id());
121
558k
    } else {
122
558k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
558k
    }
124
1.05M
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
54.5k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
54.5k
    if (_parent->nereids_id() == -1) {
120
2
        return fmt::format("(id={})", _parent->node_id());
121
54.5k
    } else {
122
54.5k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
54.5k
    }
124
54.5k
}
_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
42.0k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
42.0k
    if (_parent->nereids_id() == -1) {
120
42.0k
        return fmt::format("(id={})", _parent->node_id());
121
42.0k
    } else {
122
18
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
18
    }
124
42.0k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
352
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
352
    if (_parent->nereids_id() == -1) {
120
102
        return fmt::format("(id={})", _parent->node_id());
121
250
    } else {
122
250
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
250
    }
124
352
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
4.94k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
4.94k
    if (_parent->nereids_id() == -1) {
120
13
        return fmt::format("(id={})", _parent->node_id());
121
4.92k
    } else {
122
4.92k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
4.92k
    }
124
4.94k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
753k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
753k
    if (_parent->nereids_id() == -1) {
120
752k
        return fmt::format("(id={})", _parent->node_id());
121
752k
    } else {
122
255
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
255
    }
124
753k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
118
134
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
119
134
    if (_parent->nereids_id() == -1) {
120
0
        return fmt::format("(id={})", _parent->node_id());
121
134
    } else {
122
134
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
123
134
    }
124
134
}
125
126
template <typename SharedStateArg>
127
1.44M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
1.44M
    if (_parent->nereids_id() == -1) {
129
811k
        return fmt::format("(id={})", _parent->node_id());
130
811k
    } else {
131
628k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
628k
    }
133
1.44M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
114k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
114k
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
114k
    } else {
131
114k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
114k
    }
133
114k
}
_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
256k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
256k
    if (_parent->nereids_id() == -1) {
129
9
        return fmt::format("(id={})", _parent->node_id());
130
256k
    } else {
131
256k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
256k
    }
133
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
29
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
29
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
29
    } else {
131
29
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
29
    }
133
29
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
31.6k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
31.6k
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
31.6k
    } else {
131
31.6k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
31.6k
    }
133
31.6k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
6.51k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
6.51k
    if (_parent->nereids_id() == -1) {
129
9
        return fmt::format("(id={})", _parent->node_id());
130
6.50k
    } else {
131
6.50k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
6.50k
    }
133
6.51k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
212k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
212k
    if (_parent->nereids_id() == -1) {
129
29
        return fmt::format("(id={})", _parent->node_id());
130
212k
    } else {
131
212k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
212k
    }
133
212k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
404
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
404
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
404
    } else {
131
404
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
404
    }
133
404
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
144
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
144
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
144
    } else {
131
144
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
144
    }
133
144
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
89
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
89
    if (_parent->nereids_id() == -1) {
129
89
        return fmt::format("(id={})", _parent->node_id());
130
89
    } else {
131
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
0
    }
133
89
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
5.83k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
5.83k
    if (_parent->nereids_id() == -1) {
129
3
        return fmt::format("(id={})", _parent->node_id());
130
5.83k
    } else {
131
5.83k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
5.83k
    }
133
5.83k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
354
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
354
    if (_parent->nereids_id() == -1) {
129
102
        return fmt::format("(id={})", _parent->node_id());
130
252
    } else {
131
252
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
252
    }
133
354
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
12.1k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
12.1k
    if (_parent->nereids_id() == -1) {
129
12.1k
        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
12.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
274k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
274k
    if (_parent->nereids_id() == -1) {
129
274k
        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
274k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
127
524k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
524k
    if (_parent->nereids_id() == -1) {
129
524k
        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
524k
}
_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
268
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
128
268
    if (_parent->nereids_id() == -1) {
129
0
        return fmt::format("(id={})", _parent->node_id());
130
268
    } else {
131
268
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
132
268
    }
133
268
}
134
135
template <typename SharedStateArg>
136
35.1k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
35.1k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
35.1k
    _terminated = true;
141
35.1k
    return Status::OK();
142
35.1k
}
_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
1.57k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
1.57k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
1.57k
    _terminated = true;
141
1.57k
    return Status::OK();
142
1.57k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_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
4.36k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
4.36k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
4.36k
    _terminated = true;
141
4.36k
    return Status::OK();
142
4.36k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
13
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
13
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
13
    _terminated = true;
141
13
    return Status::OK();
142
13
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
715
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
715
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
715
    _terminated = true;
141
715
    return Status::OK();
142
715
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
18
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
18
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
18
    _terminated = true;
141
18
    return Status::OK();
142
18
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
4.01k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
4.01k
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
4.01k
    _terminated = true;
141
4.01k
    return Status::OK();
142
4.01k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
257
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
257
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
257
    _terminated = true;
141
257
    return Status::OK();
142
257
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
136
124
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
137
124
    if (_terminated) {
138
0
        return Status::OK();
139
0
    }
140
124
    _terminated = true;
141
124
    return Status::OK();
142
124
}
143
144
1.13M
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
145
1.13M
    return _child && _child->is_serial_operator() && !is_source()
146
1.13M
                   ? DataDistribution(ExchangeType::PASSTHROUGH)
147
1.13M
                   : DataDistribution(ExchangeType::NOOP);
148
1.13M
}
149
150
81.8k
const RowDescriptor& OperatorBase::row_desc() const {
151
81.8k
    return _child->row_desc();
152
81.8k
}
153
154
template <typename SharedStateArg>
155
20.7k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
20.7k
    fmt::memory_buffer debug_string_buffer;
157
20.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
20.7k
    return fmt::to_string(debug_string_buffer);
159
20.7k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
105
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
105
    fmt::memory_buffer debug_string_buffer;
157
105
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
105
    return fmt::to_string(debug_string_buffer);
159
105
}
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
3
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
3
    fmt::memory_buffer debug_string_buffer;
157
3
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
3
    return fmt::to_string(debug_string_buffer);
159
3
}
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
48
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
48
    fmt::memory_buffer debug_string_buffer;
157
48
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
48
    return fmt::to_string(debug_string_buffer);
159
48
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
12
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
12
    fmt::memory_buffer debug_string_buffer;
157
12
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
12
    return fmt::to_string(debug_string_buffer);
159
12
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
15
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
15
    fmt::memory_buffer debug_string_buffer;
157
15
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
15
    return fmt::to_string(debug_string_buffer);
159
15
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
12
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
12
    fmt::memory_buffer debug_string_buffer;
157
12
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
12
    return fmt::to_string(debug_string_buffer);
159
12
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
20.3k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
20.3k
    fmt::memory_buffer debug_string_buffer;
157
20.3k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
20.3k
    return fmt::to_string(debug_string_buffer);
159
20.3k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
1
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
1
    fmt::memory_buffer debug_string_buffer;
157
1
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
1
    return fmt::to_string(debug_string_buffer);
159
1
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
19
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
19
    fmt::memory_buffer debug_string_buffer;
157
19
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
19
    return fmt::to_string(debug_string_buffer);
159
19
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
169
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
169
    fmt::memory_buffer debug_string_buffer;
157
169
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
169
    return fmt::to_string(debug_string_buffer);
159
169
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
155
20
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
156
20
    fmt::memory_buffer debug_string_buffer;
157
20
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
158
20
    return fmt::to_string(debug_string_buffer);
159
20
}
160
161
template <typename SharedStateArg>
162
20.6k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
20.6k
    fmt::memory_buffer debug_string_buffer;
164
20.6k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
20.6k
    return fmt::to_string(debug_string_buffer);
166
20.6k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
8
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
8
    fmt::memory_buffer debug_string_buffer;
164
8
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
8
    return fmt::to_string(debug_string_buffer);
166
8
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
46
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
46
    fmt::memory_buffer debug_string_buffer;
164
46
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
46
    return fmt::to_string(debug_string_buffer);
166
46
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
16
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
16
    fmt::memory_buffer debug_string_buffer;
164
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
16
    return fmt::to_string(debug_string_buffer);
166
16
}
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
12
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
12
    fmt::memory_buffer debug_string_buffer;
164
12
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
12
    return fmt::to_string(debug_string_buffer);
166
12
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
161
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
161
    fmt::memory_buffer debug_string_buffer;
164
161
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
161
    return fmt::to_string(debug_string_buffer);
166
161
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
20
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
20
    fmt::memory_buffer debug_string_buffer;
164
20
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
20
    return fmt::to_string(debug_string_buffer);
166
20
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
79
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
79
    fmt::memory_buffer debug_string_buffer;
164
79
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
79
    return fmt::to_string(debug_string_buffer);
166
79
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
20.2k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
20.2k
    fmt::memory_buffer debug_string_buffer;
164
20.2k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
20.2k
    return fmt::to_string(debug_string_buffer);
166
20.2k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
162
17
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
163
17
    fmt::memory_buffer debug_string_buffer;
164
17
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
165
17
    return fmt::to_string(debug_string_buffer);
166
17
}
167
168
20.7k
std::string OperatorXBase::debug_string(int indentation_level) const {
169
20.7k
    fmt::memory_buffer debug_string_buffer;
170
20.7k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
171
20.7k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
172
20.7k
                   _is_serial_operator);
173
20.7k
    return fmt::to_string(debug_string_buffer);
174
20.7k
}
175
176
20.7k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
177
20.7k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
178
20.7k
}
179
180
901k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
181
901k
    std::string node_name = print_plan_node_type(tnode.node_type);
182
901k
    _nereids_id = tnode.nereids_id;
183
901k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
184
5.81k
        if (!tnode.__isset.output_tuple_id) {
185
0
            return Status::InternalError("no final output tuple id");
186
0
        }
187
5.81k
        if (tnode.intermediate_output_tuple_id_list.size() !=
188
5.81k
            tnode.intermediate_projections_list.size()) {
189
0
            return Status::InternalError(
190
0
                    "intermediate_output_tuple_id_list size:{} not match "
191
0
                    "intermediate_projections_list size:{}",
192
0
                    tnode.intermediate_output_tuple_id_list.size(),
193
0
                    tnode.intermediate_projections_list.size());
194
0
        }
195
5.81k
    }
196
901k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
197
901k
    _op_name = substr + "_OPERATOR";
198
199
901k
    if (tnode.__isset.vconjunct) {
200
0
        return Status::InternalError("vconjunct is not supported yet");
201
901k
    } else if (tnode.__isset.conjuncts) {
202
445k
        for (const auto& conjunct : tnode.conjuncts) {
203
445k
            VExprContextSPtr context;
204
445k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
205
445k
            _conjuncts.emplace_back(context);
206
445k
        }
207
144k
    }
208
209
    // create the projections expr
210
901k
    if (tnode.__isset.projections) {
211
357k
        DCHECK(tnode.__isset.output_tuple_id);
212
357k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
213
357k
    }
214
901k
    if (!tnode.intermediate_projections_list.empty()) {
215
5.81k
        DCHECK(tnode.__isset.projections) << "no final projections";
216
5.81k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
217
18.0k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
218
18.0k
            VExprContextSPtrs projections;
219
18.0k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
220
18.0k
            _intermediate_projections.push_back(projections);
221
18.0k
        }
222
5.81k
    }
223
901k
    return Status::OK();
224
901k
}
225
226
966k
Status OperatorXBase::prepare(RuntimeState* state) {
227
966k
    for (auto& conjunct : _conjuncts) {
228
444k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
229
444k
    }
230
966k
    if (state->enable_adjust_conjunct_order_by_cost()) {
231
914k
        std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) {
232
599k
            return a->execute_cost() < b->execute_cost();
233
599k
        });
234
914k
    };
235
236
984k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
237
18.0k
        RETURN_IF_ERROR(
238
18.0k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
239
18.0k
    }
240
966k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
241
242
966k
    if (has_output_row_desc()) {
243
357k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
244
357k
    }
245
246
966k
    for (auto& conjunct : _conjuncts) {
247
444k
        RETURN_IF_ERROR(conjunct->open(state));
248
444k
    }
249
966k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
250
966k
    for (auto& projections : _intermediate_projections) {
251
18.0k
        RETURN_IF_ERROR(VExpr::open(projections, state));
252
18.0k
    }
253
966k
    if (_child && !is_source()) {
254
177k
        RETURN_IF_ERROR(_child->prepare(state));
255
177k
    }
256
257
966k
    if (VExpr::contains_blockable_function(_conjuncts) ||
258
966k
        VExpr::contains_blockable_function(_projections)) {
259
0
        _blockable = true;
260
0
    }
261
262
966k
    return Status::OK();
263
966k
}
264
265
17.0k
Status OperatorXBase::terminate(RuntimeState* state) {
266
17.0k
    if (_child && !is_source()) {
267
5.88k
        RETURN_IF_ERROR(_child->terminate(state));
268
5.88k
    }
269
17.0k
    auto result = state->get_local_state_result(operator_id());
270
17.0k
    if (!result) {
271
0
        return result.error();
272
0
    }
273
17.0k
    return result.value()->terminate(state);
274
17.0k
}
275
276
6.87M
Status OperatorXBase::close(RuntimeState* state) {
277
6.87M
    if (_child && !is_source()) {
278
1.29M
        RETURN_IF_ERROR(_child->close(state));
279
1.29M
    }
280
6.87M
    auto result = state->get_local_state_result(operator_id());
281
6.87M
    if (!result) {
282
0
        return result.error();
283
0
    }
284
6.87M
    return result.value()->close(state);
285
6.87M
}
286
287
356k
void PipelineXLocalStateBase::clear_origin_block() {
288
356k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
289
356k
}
290
291
831k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
292
831k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
293
294
831k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
295
831k
    return Status::OK();
296
831k
}
297
298
0
bool PipelineXLocalStateBase::is_blockable() const {
299
0
    return std::any_of(_projections.begin(), _projections.end(),
300
0
                       [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); });
301
0
}
302
303
Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block,
304
356k
                                     Block* output_block) const {
305
356k
    auto* local_state = state->get_local_state(operator_id());
306
356k
    SCOPED_TIMER(local_state->exec_time_counter());
307
356k
    SCOPED_TIMER(local_state->_projection_timer);
308
356k
    const size_t rows = origin_block->rows();
309
356k
    if (rows == 0) {
310
170k
        return Status::OK();
311
170k
    }
312
185k
    Block input_block = *origin_block;
313
314
185k
    size_t bytes_usage = 0;
315
185k
    ColumnsWithTypeAndName new_columns;
316
185k
    for (const auto& projections : local_state->_intermediate_projections) {
317
1.09k
        if (projections.empty()) {
318
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
319
0
                                         node_id());
320
0
        }
321
1.09k
        new_columns.resize(projections.size());
322
8.16k
        for (int i = 0; i < projections.size(); i++) {
323
7.07k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
324
7.07k
            if (new_columns[i].column->size() != rows) {
325
0
                return Status::InternalError(
326
0
                        "intermediate projection result column size {} not equal input rows {}, "
327
0
                        "expr: {}",
328
0
                        new_columns[i].column->size(), rows,
329
0
                        projections[i]->root()->debug_string());
330
0
            }
331
7.07k
        }
332
1.09k
        Block tmp_block {new_columns};
333
1.09k
        bytes_usage += tmp_block.allocated_bytes();
334
1.09k
        input_block.swap(tmp_block);
335
1.09k
    }
336
337
185k
    if (input_block.rows() != rows) {
338
0
        return Status::InternalError(
339
0
                "after intermediate projections input block rows {} not equal origin rows {}, "
340
0
                "input_block: {}",
341
0
                input_block.rows(), rows, input_block.dump_structure());
342
0
    }
343
864k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
344
864k
        if (to->is_nullable() && !from->is_nullable()) {
345
0
            if (_keep_origin || !from->is_exclusive()) {
346
0
                auto& null_column = reinterpret_cast<ColumnNullable&>(*to);
347
0
                null_column.get_nested_column().insert_range_from(*from, 0, rows);
348
0
                null_column.get_null_map_column().get_data().resize_fill(rows, 0);
349
0
                bytes_usage += null_column.allocated_bytes();
350
0
            } else {
351
0
                to = make_nullable(from, false)->assert_mutable();
352
0
            }
353
864k
        } else {
354
864k
            if (_keep_origin || !from->is_exclusive()) {
355
842k
                to->insert_range_from(*from, 0, rows);
356
842k
                bytes_usage += from->allocated_bytes();
357
842k
            } else {
358
22.7k
                to = from->assert_mutable();
359
22.7k
            }
360
864k
        }
361
864k
    };
362
363
185k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
364
185k
            output_block, *_output_row_descriptor);
365
185k
    auto& mutable_block = scoped_mutable_block.mutable_block();
366
185k
    auto& mutable_columns = mutable_block.mutable_columns();
367
185k
    if (rows != 0) {
368
185k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
369
1.05M
        for (int i = 0; i < mutable_columns.size(); ++i) {
370
865k
            ColumnPtr column_ptr;
371
865k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
372
865k
            if (column_ptr->size() != rows) {
373
0
                return Status::InternalError(
374
0
                        "projection result column size {} not equal input rows {}, expr: {}",
375
0
                        column_ptr->size(), rows,
376
0
                        local_state->_projections[i]->root()->debug_string());
377
0
            }
378
865k
            column_ptr = column_ptr->convert_to_full_column_if_const();
379
865k
            bytes_usage += column_ptr->allocated_bytes();
380
865k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
381
865k
        }
382
185k
        DCHECK(mutable_block.rows() == rows);
383
185k
    }
384
185k
    local_state->_estimate_memory_usage += bytes_usage;
385
386
185k
    return Status::OK();
387
185k
}
388
389
5.39M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
390
5.39M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
391
5.39M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
392
5.39M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
393
5.39M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
394
5.39M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
395
5.39M
            if (_debug_point_count++ % 2 == 0) {
396
5.39M
                return Status::OK();
397
5.39M
            }
398
5.39M
        }
399
5.39M
    });
400
401
5.39M
    Status status;
402
5.39M
    auto* local_state = state->get_local_state(operator_id());
403
5.39M
    Defer defer([&]() {
404
5.39M
        if (status.ok()) {
405
5.39M
            local_state->update_output_block_counters(*block);
406
5.39M
        }
407
5.39M
    });
408
5.39M
    if (_output_row_descriptor) {
409
356k
        local_state->clear_origin_block();
410
356k
        status = get_block(state, &local_state->_origin_block, eos);
411
356k
        if (UNLIKELY(!status.ok())) {
412
25
            return status;
413
25
        }
414
356k
        status = do_projections(state, &local_state->_origin_block, block);
415
356k
        return status;
416
356k
    }
417
5.04M
    status = get_block(state, block, eos);
418
5.04M
    RETURN_IF_ERROR(block->check_type_and_column());
419
5.04M
    return status;
420
5.04M
}
421
422
3.23M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
423
3.23M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
424
7.08k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
425
7.08k
        *eos = true;
426
7.08k
    }
427
428
3.23M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
429
3.23M
        auto op_name = to_lower(_parent->_op_name);
430
3.23M
        auto arg_op_name = dp->param<std::string>("op_name");
431
3.23M
        arg_op_name = to_lower(arg_op_name);
432
433
3.23M
        if (op_name == arg_op_name) {
434
3.23M
            *eos = true;
435
3.23M
        }
436
3.23M
    });
437
438
3.23M
    if (auto rows = block->rows()) {
439
914k
        _num_rows_returned += rows;
440
914k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
441
914k
    }
442
3.23M
}
443
444
35.1k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
445
35.1k
    auto result = state->get_sink_local_state_result();
446
35.1k
    if (!result) {
447
0
        return result.error();
448
0
    }
449
35.1k
    return result.value()->terminate(state);
450
35.1k
}
451
452
20.6k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
453
20.6k
    fmt::memory_buffer debug_string_buffer;
454
455
20.6k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
456
20.6k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
457
20.6k
    return fmt::to_string(debug_string_buffer);
458
20.6k
}
459
460
20.6k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
461
20.6k
    return state->get_sink_local_state()->debug_string(indentation_level);
462
20.6k
}
463
464
546k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
465
546k
    std::string op_name = "UNKNOWN_SINK";
466
546k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
467
468
547k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
469
547k
        op_name = it->second;
470
547k
    }
471
546k
    _name = op_name + "_OPERATOR";
472
546k
    return Status::OK();
473
546k
}
474
475
286k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
476
286k
    std::string op_name = print_plan_node_type(tnode.node_type);
477
286k
    _nereids_id = tnode.nereids_id;
478
286k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
479
286k
    _name = substr + "_SINK_OPERATOR";
480
286k
    return Status::OK();
481
286k
}
482
483
template <typename LocalStateType>
484
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
485
2.24M
                                                            LocalSinkStateInfo& info) {
486
2.24M
    auto local_state = LocalStateType::create_unique(this, state);
487
2.24M
    RETURN_IF_ERROR(local_state->init(state, info));
488
2.24M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
2.24M
    return Status::OK();
490
2.24M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
114k
                                                            LocalSinkStateInfo& info) {
486
114k
    auto local_state = LocalStateType::create_unique(this, state);
487
114k
    RETURN_IF_ERROR(local_state->init(state, info));
488
114k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
114k
    return Status::OK();
490
114k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
462k
                                                            LocalSinkStateInfo& info) {
486
462k
    auto local_state = LocalStateType::create_unique(this, state);
487
462k
    RETURN_IF_ERROR(local_state->init(state, info));
488
462k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
462k
    return Status::OK();
490
462k
}
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
88
                                                            LocalSinkStateInfo& info) {
486
88
    auto local_state = LocalStateType::create_unique(this, state);
487
88
    RETURN_IF_ERROR(local_state->init(state, info));
488
88
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
88
    return Status::OK();
490
88
}
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
3
                                                            LocalSinkStateInfo& info) {
486
3
    auto local_state = LocalStateType::create_unique(this, state);
487
3
    RETURN_IF_ERROR(local_state->init(state, info));
488
3
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
3
    return Status::OK();
490
3
}
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
541
                                                            LocalSinkStateInfo& info) {
486
541
    auto local_state = LocalStateType::create_unique(this, state);
487
541
    RETURN_IF_ERROR(local_state->init(state, info));
488
541
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
541
    return Status::OK();
490
541
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
43.8k
                                                            LocalSinkStateInfo& info) {
486
43.8k
    auto local_state = LocalStateType::create_unique(this, state);
487
43.8k
    RETURN_IF_ERROR(local_state->init(state, info));
488
43.8k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
43.8k
    return Status::OK();
490
43.8k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
8.90k
                                                            LocalSinkStateInfo& info) {
486
8.90k
    auto local_state = LocalStateType::create_unique(this, state);
487
8.90k
    RETURN_IF_ERROR(local_state->init(state, info));
488
8.90k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
8.90k
    return Status::OK();
490
8.90k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
5.14k
                                                            LocalSinkStateInfo& info) {
486
5.14k
    auto local_state = LocalStateType::create_unique(this, state);
487
5.14k
    RETURN_IF_ERROR(local_state->init(state, info));
488
5.14k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
5.14k
    return Status::OK();
490
5.14k
}
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
156
                                                            LocalSinkStateInfo& info) {
486
156
    auto local_state = LocalStateType::create_unique(this, state);
487
156
    RETURN_IF_ERROR(local_state->init(state, info));
488
156
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
156
    return Status::OK();
490
156
}
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
3.38k
                                                            LocalSinkStateInfo& info) {
486
3.38k
    auto local_state = LocalStateType::create_unique(this, state);
487
3.38k
    RETURN_IF_ERROR(local_state->init(state, info));
488
3.38k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
3.38k
    return Status::OK();
490
3.38k
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
160
                                                            LocalSinkStateInfo& info) {
486
160
    auto local_state = LocalStateType::create_unique(this, state);
487
160
    RETURN_IF_ERROR(local_state->init(state, info));
488
160
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
160
    return Status::OK();
490
160
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
640
                                                            LocalSinkStateInfo& info) {
486
640
    auto local_state = LocalStateType::create_unique(this, state);
487
640
    RETURN_IF_ERROR(local_state->init(state, info));
488
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
640
    return Status::OK();
490
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
6.50k
                                                            LocalSinkStateInfo& info) {
486
6.50k
    auto local_state = LocalStateType::create_unique(this, state);
487
6.50k
    RETURN_IF_ERROR(local_state->init(state, info));
488
6.50k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
6.50k
    return Status::OK();
490
6.50k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
86
                                                            LocalSinkStateInfo& info) {
486
86
    auto local_state = LocalStateType::create_unique(this, state);
487
86
    RETURN_IF_ERROR(local_state->init(state, info));
488
86
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
86
    return Status::OK();
490
86
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
256k
                                                            LocalSinkStateInfo& info) {
486
256k
    auto local_state = LocalStateType::create_unique(this, state);
487
256k
    RETURN_IF_ERROR(local_state->init(state, info));
488
256k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
256k
    return Status::OK();
490
256k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
29
                                                            LocalSinkStateInfo& info) {
486
29
    auto local_state = LocalStateType::create_unique(this, state);
487
29
    RETURN_IF_ERROR(local_state->init(state, info));
488
29
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
29
    return Status::OK();
490
29
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
274k
                                                            LocalSinkStateInfo& info) {
486
274k
    auto local_state = LocalStateType::create_unique(this, state);
487
274k
    RETURN_IF_ERROR(local_state->init(state, info));
488
274k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
274k
    return Status::OK();
490
274k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
212k
                                                            LocalSinkStateInfo& info) {
486
212k
    auto local_state = LocalStateType::create_unique(this, state);
487
212k
    RETURN_IF_ERROR(local_state->init(state, info));
488
212k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
212k
    return Status::OK();
490
212k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
404
                                                            LocalSinkStateInfo& info) {
486
404
    auto local_state = LocalStateType::create_unique(this, state);
487
404
    RETURN_IF_ERROR(local_state->init(state, info));
488
404
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
404
    return Status::OK();
490
404
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
144
                                                            LocalSinkStateInfo& info) {
486
144
    auto local_state = LocalStateType::create_unique(this, state);
487
144
    RETURN_IF_ERROR(local_state->init(state, info));
488
144
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
144
    return Status::OK();
490
144
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
785k
                                                            LocalSinkStateInfo& info) {
486
785k
    auto local_state = LocalStateType::create_unique(this, state);
487
785k
    RETURN_IF_ERROR(local_state->init(state, info));
488
785k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
785k
    return Status::OK();
490
785k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
31.7k
                                                            LocalSinkStateInfo& info) {
486
31.7k
    auto local_state = LocalStateType::create_unique(this, state);
487
31.7k
    RETURN_IF_ERROR(local_state->init(state, info));
488
31.7k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
31.7k
    return Status::OK();
490
31.7k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
5.82k
                                                            LocalSinkStateInfo& info) {
486
5.82k
    auto local_state = LocalStateType::create_unique(this, state);
487
5.82k
    RETURN_IF_ERROR(local_state->init(state, info));
488
5.82k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
5.82k
    return Status::OK();
490
5.82k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
14.1k
                                                            LocalSinkStateInfo& info) {
486
14.1k
    auto local_state = LocalStateType::create_unique(this, state);
487
14.1k
    RETURN_IF_ERROR(local_state->init(state, info));
488
14.1k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
14.1k
    return Status::OK();
490
14.1k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
252
                                                            LocalSinkStateInfo& info) {
486
252
    auto local_state = LocalStateType::create_unique(this, state);
487
252
    RETURN_IF_ERROR(local_state->init(state, info));
488
252
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
252
    return Status::OK();
490
252
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
4.68k
                                                            LocalSinkStateInfo& info) {
486
4.68k
    auto local_state = LocalStateType::create_unique(this, state);
487
4.68k
    RETURN_IF_ERROR(local_state->init(state, info));
488
4.68k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
4.68k
    return Status::OK();
490
4.68k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
2.52k
                                                            LocalSinkStateInfo& info) {
486
2.52k
    auto local_state = LocalStateType::create_unique(this, state);
487
2.52k
    RETURN_IF_ERROR(local_state->init(state, info));
488
2.52k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
2.52k
    return Status::OK();
490
2.52k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
2.44k
                                                            LocalSinkStateInfo& info) {
486
2.44k
    auto local_state = LocalStateType::create_unique(this, state);
487
2.44k
    RETURN_IF_ERROR(local_state->init(state, info));
488
2.44k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
2.44k
    return Status::OK();
490
2.44k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
2.46k
                                                            LocalSinkStateInfo& info) {
486
2.46k
    auto local_state = LocalStateType::create_unique(this, state);
487
2.46k
    RETURN_IF_ERROR(local_state->init(state, info));
488
2.46k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
2.46k
    return Status::OK();
490
2.46k
}
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
1
                                                            LocalSinkStateInfo& info) {
486
1
    auto local_state = LocalStateType::create_unique(this, state);
487
1
    RETURN_IF_ERROR(local_state->init(state, info));
488
1
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
1
    return Status::OK();
490
1
}
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
165
                                                            LocalSinkStateInfo& info) {
486
165
    auto local_state = LocalStateType::create_unique(this, state);
487
165
    RETURN_IF_ERROR(local_state->init(state, info));
488
165
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
165
    return Status::OK();
490
165
}
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
14
                                                            LocalSinkStateInfo& info) {
486
14
    auto local_state = LocalStateType::create_unique(this, state);
487
14
    RETURN_IF_ERROR(local_state->init(state, info));
488
14
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
14
    return Status::OK();
490
14
}
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
104
                                                            LocalSinkStateInfo& info) {
486
104
    auto local_state = LocalStateType::create_unique(this, state);
487
104
    RETURN_IF_ERROR(local_state->init(state, info));
488
104
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
104
    return Status::OK();
490
104
}
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
134
                                                            LocalSinkStateInfo& info) {
486
134
    auto local_state = LocalStateType::create_unique(this, state);
487
134
    RETURN_IF_ERROR(local_state->init(state, info));
488
134
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
134
    return Status::OK();
490
134
}
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
485
134
                                                            LocalSinkStateInfo& info) {
486
134
    auto local_state = LocalStateType::create_unique(this, state);
487
134
    RETURN_IF_ERROR(local_state->init(state, info));
488
134
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
489
134
    return Status::OK();
490
134
}
491
492
template <typename LocalStateType>
493
1.92M
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
0
                                 LocalExchangeSharedState>) {
496
0
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
0
                                        MultiCastSharedState>) {
499
0
        throw Exception(Status::FatalError("should not reach here!"));
500
1.92M
    } else {
501
1.92M
        auto ss = LocalStateType::SharedStateType::create_shared();
502
1.92M
        ss->id = operator_id();
503
1.92M
        for (auto& dest : dests_id()) {
504
1.91M
            ss->related_op_ids.insert(dest);
505
1.91M
        }
506
1.92M
        return ss;
507
1.92M
    }
508
1.92M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
97.1k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
97.1k
    } else {
501
97.1k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
97.1k
        ss->id = operator_id();
503
97.1k
        for (auto& dest : dests_id()) {
504
96.9k
            ss->related_op_ids.insert(dest);
505
96.9k
        }
506
97.1k
        return ss;
507
97.1k
    }
508
97.1k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
462k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
462k
    } else {
501
462k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
462k
        ss->id = operator_id();
503
462k
        for (auto& dest : dests_id()) {
504
461k
            ss->related_op_ids.insert(dest);
505
461k
        }
506
462k
        return ss;
507
462k
    }
508
462k
}
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
88
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
88
    } else {
501
88
        auto ss = LocalStateType::SharedStateType::create_shared();
502
88
        ss->id = operator_id();
503
88
        for (auto& dest : dests_id()) {
504
88
            ss->related_op_ids.insert(dest);
505
88
        }
506
88
        return ss;
507
88
    }
508
88
}
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
3
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
3
    } else {
501
3
        auto ss = LocalStateType::SharedStateType::create_shared();
502
3
        ss->id = operator_id();
503
3
        for (auto& dest : dests_id()) {
504
3
            ss->related_op_ids.insert(dest);
505
3
        }
506
3
        return ss;
507
3
    }
508
3
}
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
542
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
542
    } else {
501
542
        auto ss = LocalStateType::SharedStateType::create_shared();
502
542
        ss->id = operator_id();
503
542
        for (auto& dest : dests_id()) {
504
541
            ss->related_op_ids.insert(dest);
505
541
        }
506
542
        return ss;
507
542
    }
508
542
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
43.7k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
43.7k
    } else {
501
43.7k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
43.7k
        ss->id = operator_id();
503
43.7k
        for (auto& dest : dests_id()) {
504
43.6k
            ss->related_op_ids.insert(dest);
505
43.6k
        }
506
43.7k
        return ss;
507
43.7k
    }
508
43.7k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
493
8.90k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
8.90k
    } else {
501
8.90k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
8.90k
        ss->id = operator_id();
503
8.90k
        for (auto& dest : dests_id()) {
504
8.90k
            ss->related_op_ids.insert(dest);
505
8.90k
        }
506
8.90k
        return ss;
507
8.90k
    }
508
8.90k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
5.14k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
5.14k
    } else {
501
5.14k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
5.14k
        ss->id = operator_id();
503
5.14k
        for (auto& dest : dests_id()) {
504
5.14k
            ss->related_op_ids.insert(dest);
505
5.14k
        }
506
5.14k
        return ss;
507
5.14k
    }
508
5.14k
}
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
156
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
156
    } else {
501
156
        auto ss = LocalStateType::SharedStateType::create_shared();
502
156
        ss->id = operator_id();
503
156
        for (auto& dest : dests_id()) {
504
156
            ss->related_op_ids.insert(dest);
505
156
        }
506
156
        return ss;
507
156
    }
508
156
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
3.38k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
3.38k
    } else {
501
3.38k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
3.38k
        ss->id = operator_id();
503
3.38k
        for (auto& dest : dests_id()) {
504
3.38k
            ss->related_op_ids.insert(dest);
505
3.38k
        }
506
3.38k
        return ss;
507
3.38k
    }
508
3.38k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
160
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
160
    } else {
501
160
        auto ss = LocalStateType::SharedStateType::create_shared();
502
160
        ss->id = operator_id();
503
160
        for (auto& dest : dests_id()) {
504
160
            ss->related_op_ids.insert(dest);
505
160
        }
506
160
        return ss;
507
160
    }
508
160
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
640
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
640
    } else {
501
640
        auto ss = LocalStateType::SharedStateType::create_shared();
502
640
        ss->id = operator_id();
503
640
        for (auto& dest : dests_id()) {
504
640
            ss->related_op_ids.insert(dest);
505
640
        }
506
640
        return ss;
507
640
    }
508
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
6.53k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
6.53k
    } else {
501
6.53k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
6.53k
        ss->id = operator_id();
503
6.53k
        for (auto& dest : dests_id()) {
504
6.50k
            ss->related_op_ids.insert(dest);
505
6.50k
        }
506
6.53k
        return ss;
507
6.53k
    }
508
6.53k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
86
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
86
    } else {
501
86
        auto ss = LocalStateType::SharedStateType::create_shared();
502
86
        ss->id = operator_id();
503
86
        for (auto& dest : dests_id()) {
504
86
            ss->related_op_ids.insert(dest);
505
86
        }
506
86
        return ss;
507
86
    }
508
86
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
257k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
257k
    } else {
501
257k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
257k
        ss->id = operator_id();
503
257k
        for (auto& dest : dests_id()) {
504
256k
            ss->related_op_ids.insert(dest);
505
256k
        }
506
257k
        return ss;
507
257k
    }
508
257k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
31
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
31
    } else {
501
31
        auto ss = LocalStateType::SharedStateType::create_shared();
502
31
        ss->id = operator_id();
503
31
        for (auto& dest : dests_id()) {
504
31
            ss->related_op_ids.insert(dest);
505
31
        }
506
31
        return ss;
507
31
    }
508
31
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
212k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
212k
    } else {
501
212k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
212k
        ss->id = operator_id();
503
212k
        for (auto& dest : dests_id()) {
504
212k
            ss->related_op_ids.insert(dest);
505
212k
        }
506
212k
        return ss;
507
212k
    }
508
212k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
143
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
143
    } else {
501
143
        auto ss = LocalStateType::SharedStateType::create_shared();
502
143
        ss->id = operator_id();
503
143
        for (auto& dest : dests_id()) {
504
143
            ss->related_op_ids.insert(dest);
505
143
        }
506
143
        return ss;
507
143
    }
508
143
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
783k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
783k
    } else {
501
783k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
783k
        ss->id = operator_id();
503
784k
        for (auto& dest : dests_id()) {
504
784k
            ss->related_op_ids.insert(dest);
505
784k
        }
506
783k
        return ss;
507
783k
    }
508
783k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
31.8k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
31.8k
    } else {
501
31.8k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
31.8k
        ss->id = operator_id();
503
31.8k
        for (auto& dest : dests_id()) {
504
31.7k
            ss->related_op_ids.insert(dest);
505
31.7k
        }
506
31.8k
        return ss;
507
31.8k
    }
508
31.8k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
354
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
354
    } else {
501
354
        auto ss = LocalStateType::SharedStateType::create_shared();
502
354
        ss->id = operator_id();
503
354
        for (auto& dest : dests_id()) {
504
354
            ss->related_op_ids.insert(dest);
505
354
        }
506
354
        return ss;
507
354
    }
508
354
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
493
2.45k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
2.45k
    } else {
501
2.45k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
2.45k
        ss->id = operator_id();
503
2.45k
        for (auto& dest : dests_id()) {
504
2.44k
            ss->related_op_ids.insert(dest);
505
2.44k
        }
506
2.45k
        return ss;
507
2.45k
    }
508
2.45k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
493
2.45k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
2.45k
    } else {
501
2.45k
        auto ss = LocalStateType::SharedStateType::create_shared();
502
2.45k
        ss->id = operator_id();
503
2.45k
        for (auto& dest : dests_id()) {
504
2.44k
            ss->related_op_ids.insert(dest);
505
2.44k
        }
506
2.45k
        return ss;
507
2.45k
    }
508
2.45k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
165
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
165
    } else {
501
165
        auto ss = LocalStateType::SharedStateType::create_shared();
502
165
        ss->id = operator_id();
503
165
        for (auto& dest : dests_id()) {
504
165
            ss->related_op_ids.insert(dest);
505
165
        }
506
165
        return ss;
507
165
    }
508
165
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
493
105
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
494
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
495
                                 LocalExchangeSharedState>) {
496
        return nullptr;
497
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
498
                                        MultiCastSharedState>) {
499
        throw Exception(Status::FatalError("should not reach here!"));
500
105
    } else {
501
105
        auto ss = LocalStateType::SharedStateType::create_shared();
502
105
        ss->id = operator_id();
503
105
        for (auto& dest : dests_id()) {
504
105
            ss->related_op_ids.insert(dest);
505
105
        }
506
105
        return ss;
507
105
    }
508
105
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
509
510
template <typename LocalStateType>
511
2.81M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
2.81M
    auto local_state = LocalStateType::create_unique(state, this);
513
2.81M
    RETURN_IF_ERROR(local_state->init(state, info));
514
2.81M
    state->emplace_local_state(operator_id(), std::move(local_state));
515
2.81M
    return Status::OK();
516
2.81M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
66.5k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
66.5k
    auto local_state = LocalStateType::create_unique(state, this);
513
66.5k
    RETURN_IF_ERROR(local_state->init(state, info));
514
66.5k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
66.5k
    return Status::OK();
516
66.5k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
289k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
289k
    auto local_state = LocalStateType::create_unique(state, this);
513
289k
    RETURN_IF_ERROR(local_state->init(state, info));
514
289k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
289k
    return Status::OK();
516
289k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
75
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
75
    auto local_state = LocalStateType::create_unique(state, this);
513
75
    RETURN_IF_ERROR(local_state->init(state, info));
514
75
    state->emplace_local_state(operator_id(), std::move(local_state));
515
75
    return Status::OK();
516
75
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
33.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
33.3k
    auto local_state = LocalStateType::create_unique(state, this);
513
33.3k
    RETURN_IF_ERROR(local_state->init(state, info));
514
33.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
33.3k
    return Status::OK();
516
33.3k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
6.48k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
6.48k
    auto local_state = LocalStateType::create_unique(state, this);
513
6.48k
    RETURN_IF_ERROR(local_state->init(state, info));
514
6.48k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
6.48k
    return Status::OK();
516
6.48k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
7.07k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
7.07k
    auto local_state = LocalStateType::create_unique(state, this);
513
7.07k
    RETURN_IF_ERROR(local_state->init(state, info));
514
7.07k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
7.07k
    return Status::OK();
516
7.07k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
23
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
23
    auto local_state = LocalStateType::create_unique(state, this);
513
23
    RETURN_IF_ERROR(local_state->init(state, info));
514
23
    state->emplace_local_state(operator_id(), std::move(local_state));
515
23
    return Status::OK();
516
23
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
249k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
249k
    auto local_state = LocalStateType::create_unique(state, this);
513
249k
    RETURN_IF_ERROR(local_state->init(state, info));
514
249k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
249k
    return Status::OK();
516
249k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
212k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
212k
    auto local_state = LocalStateType::create_unique(state, this);
513
212k
    RETURN_IF_ERROR(local_state->init(state, info));
514
212k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
212k
    return Status::OK();
516
212k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
451
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
451
    auto local_state = LocalStateType::create_unique(state, this);
513
451
    RETURN_IF_ERROR(local_state->init(state, info));
514
451
    state->emplace_local_state(operator_id(), std::move(local_state));
515
451
    return Status::OK();
516
451
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
134
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
134
    auto local_state = LocalStateType::create_unique(state, this);
513
134
    RETURN_IF_ERROR(local_state->init(state, info));
514
134
    state->emplace_local_state(operator_id(), std::move(local_state));
515
134
    return Status::OK();
516
134
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
4.28k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
4.28k
    auto local_state = LocalStateType::create_unique(state, this);
513
4.28k
    RETURN_IF_ERROR(local_state->init(state, info));
514
4.28k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
4.28k
    return Status::OK();
516
4.28k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
500k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
500k
    auto local_state = LocalStateType::create_unique(state, this);
513
500k
    RETURN_IF_ERROR(local_state->init(state, info));
514
500k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
500k
    return Status::OK();
516
500k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
1.14k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
1.14k
    auto local_state = LocalStateType::create_unique(state, this);
513
1.14k
    RETURN_IF_ERROR(local_state->init(state, info));
514
1.14k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
1.14k
    return Status::OK();
516
1.14k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
31.6k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
31.6k
    auto local_state = LocalStateType::create_unique(state, this);
513
31.6k
    RETURN_IF_ERROR(local_state->init(state, info));
514
31.6k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
31.6k
    return Status::OK();
516
31.6k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
221
    auto local_state = LocalStateType::create_unique(state, this);
513
221
    RETURN_IF_ERROR(local_state->init(state, info));
514
221
    state->emplace_local_state(operator_id(), std::move(local_state));
515
221
    return Status::OK();
516
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
2.03k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
2.03k
    auto local_state = LocalStateType::create_unique(state, this);
513
2.03k
    RETURN_IF_ERROR(local_state->init(state, info));
514
2.03k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
2.03k
    return Status::OK();
516
2.03k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
54.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
54.7k
    auto local_state = LocalStateType::create_unique(state, this);
513
54.7k
    RETURN_IF_ERROR(local_state->init(state, info));
514
54.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
54.7k
    return Status::OK();
516
54.7k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
42.0k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
42.0k
    auto local_state = LocalStateType::create_unique(state, this);
513
42.0k
    RETURN_IF_ERROR(local_state->init(state, info));
514
42.0k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
42.0k
    return Status::OK();
516
42.0k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
251
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
251
    auto local_state = LocalStateType::create_unique(state, this);
513
251
    RETURN_IF_ERROR(local_state->init(state, info));
514
251
    state->emplace_local_state(operator_id(), std::move(local_state));
515
251
    return Status::OK();
516
251
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
2.46k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
2.46k
    auto local_state = LocalStateType::create_unique(state, this);
513
2.46k
    RETURN_IF_ERROR(local_state->init(state, info));
514
2.46k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
2.46k
    return Status::OK();
516
2.46k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
2.47k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
2.47k
    auto local_state = LocalStateType::create_unique(state, this);
513
2.47k
    RETURN_IF_ERROR(local_state->init(state, info));
514
2.47k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
2.47k
    return Status::OK();
516
2.47k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
467
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
467
    auto local_state = LocalStateType::create_unique(state, this);
513
467
    RETURN_IF_ERROR(local_state->init(state, info));
514
467
    state->emplace_local_state(operator_id(), std::move(local_state));
515
467
    return Status::OK();
516
467
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
2.02k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
2.02k
    auto local_state = LocalStateType::create_unique(state, this);
513
2.02k
    RETURN_IF_ERROR(local_state->init(state, info));
514
2.02k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
2.02k
    return Status::OK();
516
2.02k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
6.45k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
6.45k
    auto local_state = LocalStateType::create_unique(state, this);
513
6.45k
    RETURN_IF_ERROR(local_state->init(state, info));
514
6.45k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
6.45k
    return Status::OK();
516
6.45k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
756k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
756k
    auto local_state = LocalStateType::create_unique(state, this);
513
756k
    RETURN_IF_ERROR(local_state->init(state, info));
514
756k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
756k
    return Status::OK();
516
756k
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
14
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
14
    auto local_state = LocalStateType::create_unique(state, this);
513
14
    RETURN_IF_ERROR(local_state->init(state, info));
514
14
    state->emplace_local_state(operator_id(), std::move(local_state));
515
14
    return Status::OK();
516
14
}
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
134
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
134
    auto local_state = LocalStateType::create_unique(state, this);
513
134
    RETURN_IF_ERROR(local_state->init(state, info));
514
134
    state->emplace_local_state(operator_id(), std::move(local_state));
515
134
    return Status::OK();
516
134
}
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
1.85k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
1.85k
    auto local_state = LocalStateType::create_unique(state, this);
513
1.85k
    RETURN_IF_ERROR(local_state->init(state, info));
514
1.85k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
1.85k
    return Status::OK();
516
1.85k
}
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
1.61k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
1.61k
    auto local_state = LocalStateType::create_unique(state, this);
513
1.61k
    RETURN_IF_ERROR(local_state->init(state, info));
514
1.61k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
1.61k
    return Status::OK();
516
1.61k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
13.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
13.3k
    auto local_state = LocalStateType::create_unique(state, this);
513
13.3k
    RETURN_IF_ERROR(local_state->init(state, info));
514
13.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
13.3k
    return Status::OK();
516
13.3k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
16.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
16.7k
    auto local_state = LocalStateType::create_unique(state, this);
513
16.7k
    RETURN_IF_ERROR(local_state->init(state, info));
514
16.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
16.7k
    return Status::OK();
516
16.7k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
511
512k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
512
512k
    auto local_state = LocalStateType::create_unique(state, this);
513
512k
    RETURN_IF_ERROR(local_state->init(state, info));
514
512k
    state->emplace_local_state(operator_id(), std::move(local_state));
515
512k
    return Status::OK();
516
512k
}
517
518
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
519
                                                         RuntimeState* state)
520
2.24M
        : _parent(parent), _state(state) {}
521
522
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
523
2.81M
        : _num_rows_returned(0),
524
2.81M
          _rows_returned_counter(nullptr),
525
2.81M
          _parent(parent),
526
2.81M
          _state(state),
527
2.81M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
528
529
template <typename SharedStateArg>
530
2.81M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
2.81M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
2.81M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
2.81M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
2.81M
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
2.81M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
2.81M
    _operator_profile->add_child(_common_profile.get(), true);
539
2.81M
    _operator_profile->add_child(_custom_profile.get(), true);
540
2.81M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
2.81M
    if constexpr (!is_fake_shared) {
542
1.43M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
773k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
773k
                                    .first.get()
545
773k
                                    ->template cast<SharedStateArg>();
546
547
773k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
773k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
773k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
773k
        } else if (info.shared_state) {
551
600k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
0
                DCHECK(false);
553
0
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
600k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
600k
            _dependency = _shared_state->create_source_dependency(
558
600k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
600k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
600k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
600k
        } else {
562
61.1k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
2.75k
                DCHECK(false);
564
2.75k
            }
565
61.1k
        }
566
1.43M
    }
567
568
2.81M
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
2.81M
    _rows_returned_counter =
573
2.81M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
2.81M
    _blocks_returned_counter =
575
2.81M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
2.81M
    _output_block_bytes_counter =
577
2.81M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
2.81M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
2.81M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
2.81M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
2.81M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
2.81M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
2.81M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
2.81M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
2.81M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
2.81M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
2.81M
    _memory_used_counter =
588
2.81M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
2.81M
    _common_profile->add_info_string("IsColocate",
590
2.81M
                                     std::to_string(_parent->is_colocated_operator()));
591
2.81M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
2.81M
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
2.81M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
2.81M
    return Status::OK();
595
2.81M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
66.5k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
66.5k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
66.5k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
66.5k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
66.5k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
66.5k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
66.5k
    _operator_profile->add_child(_common_profile.get(), true);
539
66.5k
    _operator_profile->add_child(_custom_profile.get(), true);
540
66.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
66.5k
    if constexpr (!is_fake_shared) {
542
66.5k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
17.5k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
17.5k
                                    .first.get()
545
17.5k
                                    ->template cast<SharedStateArg>();
546
547
17.5k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
17.5k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
17.5k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
49.0k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
48.5k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
48.5k
            _dependency = _shared_state->create_source_dependency(
558
48.5k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
48.5k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
48.5k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
48.5k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
486
        }
566
66.5k
    }
567
568
66.5k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
66.5k
    _rows_returned_counter =
573
66.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
66.5k
    _blocks_returned_counter =
575
66.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
66.5k
    _output_block_bytes_counter =
577
66.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
66.5k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
66.5k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
66.5k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
66.5k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
66.5k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
66.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
66.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
66.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
66.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
66.5k
    _memory_used_counter =
588
66.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
66.5k
    _common_profile->add_info_string("IsColocate",
590
66.5k
                                     std::to_string(_parent->is_colocated_operator()));
591
66.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
66.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
66.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
66.5k
    return Status::OK();
595
66.5k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
1
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
1
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
1
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
1
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
1
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
1
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
1
    _operator_profile->add_child(_common_profile.get(), true);
539
1
    _operator_profile->add_child(_custom_profile.get(), true);
540
1
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
1
    if constexpr (!is_fake_shared) {
542
1
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
1
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
1
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
1
            _dependency = _shared_state->create_source_dependency(
558
1
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
1
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
1
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
1
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
0
        }
566
1
    }
567
568
1
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
1
    _rows_returned_counter =
573
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
1
    _blocks_returned_counter =
575
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
1
    _output_block_bytes_counter =
577
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
1
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
1
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
1
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
1
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
1
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
1
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
1
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
1
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
1
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
1
    _memory_used_counter =
588
1
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
1
    _common_profile->add_info_string("IsColocate",
590
1
                                     std::to_string(_parent->is_colocated_operator()));
591
1
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
1
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
1
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
1
    return Status::OK();
595
1
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
256k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
256k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
256k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
256k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
256k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
256k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
256k
    _operator_profile->add_child(_common_profile.get(), true);
539
256k
    _operator_profile->add_child(_custom_profile.get(), true);
540
256k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
256k
    if constexpr (!is_fake_shared) {
542
256k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
256k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
252k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
252k
            _dependency = _shared_state->create_source_dependency(
558
252k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
252k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
252k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
252k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
4.33k
        }
566
256k
    }
567
568
256k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
256k
    _rows_returned_counter =
573
256k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
256k
    _blocks_returned_counter =
575
256k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
256k
    _output_block_bytes_counter =
577
256k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
256k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
256k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
256k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
256k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
256k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
256k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
256k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
256k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
256k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
256k
    _memory_used_counter =
588
256k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
256k
    _common_profile->add_info_string("IsColocate",
590
256k
                                     std::to_string(_parent->is_colocated_operator()));
591
256k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
256k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
256k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
256k
    return Status::OK();
595
256k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
23
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
23
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
23
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
23
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
23
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
23
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
23
    _operator_profile->add_child(_common_profile.get(), true);
539
23
    _operator_profile->add_child(_custom_profile.get(), true);
540
23
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
23
    if constexpr (!is_fake_shared) {
542
23
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
23
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
23
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
23
            _dependency = _shared_state->create_source_dependency(
558
23
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
23
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
23
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
23
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
0
        }
566
23
    }
567
568
23
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
23
    _rows_returned_counter =
573
23
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
23
    _blocks_returned_counter =
575
23
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
23
    _output_block_bytes_counter =
577
23
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
23
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
23
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
23
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
23
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
23
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
23
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
23
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
23
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
23
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
23
    _memory_used_counter =
588
23
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
23
    _common_profile->add_info_string("IsColocate",
590
23
                                     std::to_string(_parent->is_colocated_operator()));
591
23
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
23
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
23
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
23
    return Status::OK();
595
23
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
31.5k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
31.5k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
31.5k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
31.5k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
31.5k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
31.5k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
31.5k
    _operator_profile->add_child(_common_profile.get(), true);
539
31.5k
    _operator_profile->add_child(_custom_profile.get(), true);
540
31.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
31.5k
    if constexpr (!is_fake_shared) {
542
31.5k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
31.5k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
31.2k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
31.2k
            _dependency = _shared_state->create_source_dependency(
558
31.2k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
31.2k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
31.2k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
31.2k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
264
        }
566
31.5k
    }
567
568
31.5k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
31.5k
    _rows_returned_counter =
573
31.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
31.5k
    _blocks_returned_counter =
575
31.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
31.5k
    _output_block_bytes_counter =
577
31.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
31.5k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
31.5k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
31.5k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
31.5k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
31.5k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
31.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
31.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
31.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
31.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
31.5k
    _memory_used_counter =
588
31.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
31.5k
    _common_profile->add_info_string("IsColocate",
590
31.5k
                                     std::to_string(_parent->is_colocated_operator()));
591
31.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
31.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
31.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
31.5k
    return Status::OK();
595
31.5k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
6.53k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
6.53k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
6.53k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
6.53k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
6.53k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
6.53k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
6.53k
    _operator_profile->add_child(_common_profile.get(), true);
539
6.53k
    _operator_profile->add_child(_custom_profile.get(), true);
540
6.53k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
6.53k
    if constexpr (!is_fake_shared) {
542
6.53k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
6.53k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
6.42k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
6.42k
            _dependency = _shared_state->create_source_dependency(
558
6.42k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
6.42k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
6.42k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
6.42k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
106
        }
566
6.53k
    }
567
568
6.53k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
6.53k
    _rows_returned_counter =
573
6.53k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
6.53k
    _blocks_returned_counter =
575
6.53k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
6.53k
    _output_block_bytes_counter =
577
6.53k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
6.53k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
6.53k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
6.53k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
6.53k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
6.53k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
6.53k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
6.53k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
6.53k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
6.53k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
6.53k
    _memory_used_counter =
588
6.53k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
6.53k
    _common_profile->add_info_string("IsColocate",
590
6.53k
                                     std::to_string(_parent->is_colocated_operator()));
591
6.53k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
6.53k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
6.53k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
6.53k
    return Status::OK();
595
6.53k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
212k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
212k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
212k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
212k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
212k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
212k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
212k
    _operator_profile->add_child(_common_profile.get(), true);
539
212k
    _operator_profile->add_child(_custom_profile.get(), true);
540
212k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
212k
    if constexpr (!is_fake_shared) {
542
212k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
212k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
211k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
211k
            _dependency = _shared_state->create_source_dependency(
558
211k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
211k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
211k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
211k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
1.00k
        }
566
212k
    }
567
568
212k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
212k
    _rows_returned_counter =
573
212k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
212k
    _blocks_returned_counter =
575
212k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
212k
    _output_block_bytes_counter =
577
212k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
212k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
212k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
212k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
212k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
212k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
212k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
212k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
212k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
212k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
212k
    _memory_used_counter =
588
212k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
212k
    _common_profile->add_info_string("IsColocate",
590
212k
                                     std::to_string(_parent->is_colocated_operator()));
591
212k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
212k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
212k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
212k
    return Status::OK();
595
212k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
452
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
452
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
452
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
452
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
452
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
452
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
452
    _operator_profile->add_child(_common_profile.get(), true);
539
452
    _operator_profile->add_child(_custom_profile.get(), true);
540
452
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
452
    if constexpr (!is_fake_shared) {
542
455
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
455
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
455
                                    .first.get()
545
455
                                    ->template cast<SharedStateArg>();
546
547
455
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
455
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
455
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
18.4E
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
0
            _dependency = _shared_state->create_source_dependency(
558
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
18.4E
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
18.4E
        }
566
452
    }
567
568
452
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
452
    _rows_returned_counter =
573
452
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
452
    _blocks_returned_counter =
575
452
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
452
    _output_block_bytes_counter =
577
452
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
452
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
452
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
452
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
452
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
452
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
452
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
452
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
452
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
452
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
452
    _memory_used_counter =
588
452
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
452
    _common_profile->add_info_string("IsColocate",
590
452
                                     std::to_string(_parent->is_colocated_operator()));
591
452
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
452
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
452
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
452
    return Status::OK();
595
452
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
134
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
134
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
134
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
134
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
134
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
134
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
134
    _operator_profile->add_child(_common_profile.get(), true);
539
134
    _operator_profile->add_child(_custom_profile.get(), true);
540
134
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
134
    if constexpr (!is_fake_shared) {
542
134
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
134
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
134
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
134
            _dependency = _shared_state->create_source_dependency(
558
134
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
134
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
134
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
134
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
0
        }
566
134
    }
567
568
134
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
134
    _rows_returned_counter =
573
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
134
    _blocks_returned_counter =
575
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
134
    _output_block_bytes_counter =
577
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
134
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
134
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
134
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
134
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
134
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
134
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
134
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
134
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
134
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
134
    _memory_used_counter =
588
134
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
134
    _common_profile->add_info_string("IsColocate",
590
134
                                     std::to_string(_parent->is_colocated_operator()));
591
134
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
134
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
134
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
134
    return Status::OK();
595
134
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
1.38M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
1.38M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
1.38M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
1.38M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
1.38M
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
1.38M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
1.38M
    _operator_profile->add_child(_common_profile.get(), true);
539
1.38M
    _operator_profile->add_child(_custom_profile.get(), true);
540
1.38M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
    if constexpr (!is_fake_shared) {
542
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
                                    .first.get()
545
                                    ->template cast<SharedStateArg>();
546
547
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
            _dependency = _shared_state->create_source_dependency(
558
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
        }
566
    }
567
568
1.38M
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
1.38M
    _rows_returned_counter =
573
1.38M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
1.38M
    _blocks_returned_counter =
575
1.38M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
1.38M
    _output_block_bytes_counter =
577
1.38M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
1.38M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
1.38M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
1.38M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
1.38M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
1.38M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
1.38M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
1.38M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
1.38M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
1.38M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
1.38M
    _memory_used_counter =
588
1.38M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
1.38M
    _common_profile->add_info_string("IsColocate",
590
1.38M
                                     std::to_string(_parent->is_colocated_operator()));
591
1.38M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
1.38M
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
1.38M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
1.38M
    return Status::OK();
595
1.38M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
54.7k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
54.7k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
54.7k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
54.7k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
54.7k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
54.7k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
54.7k
    _operator_profile->add_child(_common_profile.get(), true);
539
54.7k
    _operator_profile->add_child(_custom_profile.get(), true);
540
54.7k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
54.7k
    if constexpr (!is_fake_shared) {
542
54.7k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
54.7k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
2.77k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
2.77k
            _dependency = _shared_state->create_source_dependency(
558
2.77k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
2.77k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
2.77k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
52.0k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
52.0k
        }
566
54.7k
    }
567
568
54.7k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
54.7k
    _rows_returned_counter =
573
54.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
54.7k
    _blocks_returned_counter =
575
54.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
54.7k
    _output_block_bytes_counter =
577
54.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
54.7k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
54.7k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
54.7k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
54.7k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
54.7k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
54.7k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
54.7k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
54.7k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
54.7k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
54.7k
    _memory_used_counter =
588
54.7k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
54.7k
    _common_profile->add_info_string("IsColocate",
590
54.7k
                                     std::to_string(_parent->is_colocated_operator()));
591
54.7k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
54.7k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
54.7k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
54.7k
    return Status::OK();
595
54.7k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
17
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
17
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
17
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
17
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
17
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
17
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
17
    _operator_profile->add_child(_common_profile.get(), true);
539
17
    _operator_profile->add_child(_custom_profile.get(), true);
540
17
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
17
    if constexpr (!is_fake_shared) {
542
17
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
17
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
17
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
17
            _dependency = _shared_state->create_source_dependency(
558
17
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
17
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
17
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
17
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
0
        }
566
17
    }
567
568
17
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
17
    _rows_returned_counter =
573
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
17
    _blocks_returned_counter =
575
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
17
    _output_block_bytes_counter =
577
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
17
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
17
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
17
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
17
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
17
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
17
    _memory_used_counter =
588
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
17
    _common_profile->add_info_string("IsColocate",
590
17
                                     std::to_string(_parent->is_colocated_operator()));
591
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
17
    return Status::OK();
595
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
42.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
42.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
42.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
42.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
42.0k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
42.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
42.0k
    _operator_profile->add_child(_common_profile.get(), true);
539
42.0k
    _operator_profile->add_child(_custom_profile.get(), true);
540
42.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
42.0k
    if constexpr (!is_fake_shared) {
542
42.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
42.0k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
41.9k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
41.9k
            _dependency = _shared_state->create_source_dependency(
558
41.9k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
41.9k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
41.9k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
41.9k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
125
        }
566
42.0k
    }
567
568
42.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
42.0k
    _rows_returned_counter =
573
42.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
42.0k
    _blocks_returned_counter =
575
42.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
42.0k
    _output_block_bytes_counter =
577
42.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
42.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
42.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
42.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
42.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
42.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
42.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
42.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
42.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
42.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
42.0k
    _memory_used_counter =
588
42.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
42.0k
    _common_profile->add_info_string("IsColocate",
590
42.0k
                                     std::to_string(_parent->is_colocated_operator()));
591
42.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
42.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
42.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
42.0k
    return Status::OK();
595
42.0k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
353
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
353
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
353
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
353
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
353
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
353
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
353
    _operator_profile->add_child(_common_profile.get(), true);
539
353
    _operator_profile->add_child(_custom_profile.get(), true);
540
353
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
353
    if constexpr (!is_fake_shared) {
542
353
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
353
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
351
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
351
            _dependency = _shared_state->create_source_dependency(
558
351
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
351
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
351
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
351
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
2
        }
566
353
    }
567
568
353
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
353
    _rows_returned_counter =
573
353
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
353
    _blocks_returned_counter =
575
353
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
353
    _output_block_bytes_counter =
577
353
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
353
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
353
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
353
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
353
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
353
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
353
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
353
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
353
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
353
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
353
    _memory_used_counter =
588
353
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
353
    _common_profile->add_info_string("IsColocate",
590
353
                                     std::to_string(_parent->is_colocated_operator()));
591
353
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
353
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
353
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
353
    return Status::OK();
595
353
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
4.95k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
4.95k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
4.95k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
4.95k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
4.95k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
4.95k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
4.95k
    _operator_profile->add_child(_common_profile.get(), true);
539
4.95k
    _operator_profile->add_child(_custom_profile.get(), true);
540
4.95k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
4.95k
    if constexpr (!is_fake_shared) {
542
4.95k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
4.95k
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
4.92k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
4.92k
            _dependency = _shared_state->create_source_dependency(
558
4.92k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
4.92k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
4.92k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
4.92k
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
26
        }
566
4.95k
    }
567
568
4.95k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
4.95k
    _rows_returned_counter =
573
4.95k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
4.95k
    _blocks_returned_counter =
575
4.95k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
4.95k
    _output_block_bytes_counter =
577
4.95k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
4.95k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
4.95k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
4.95k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
4.95k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
4.95k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
4.95k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
4.95k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
4.95k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
4.95k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
4.95k
    _memory_used_counter =
588
4.95k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
4.95k
    _common_profile->add_info_string("IsColocate",
590
4.95k
                                     std::to_string(_parent->is_colocated_operator()));
591
4.95k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
4.95k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
4.95k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
4.95k
    return Status::OK();
595
4.95k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
758k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
758k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
758k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
758k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
758k
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
758k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
758k
    _operator_profile->add_child(_common_profile.get(), true);
539
758k
    _operator_profile->add_child(_custom_profile.get(), true);
540
758k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
758k
    if constexpr (!is_fake_shared) {
542
758k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
755k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
755k
                                    .first.get()
545
755k
                                    ->template cast<SharedStateArg>();
546
547
755k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
755k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
755k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
755k
        } else if (info.shared_state) {
551
0
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
0
                DCHECK(false);
553
0
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
0
            _dependency = _shared_state->create_source_dependency(
558
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
2.75k
        } else {
562
2.75k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
2.75k
                DCHECK(false);
564
2.75k
            }
565
2.75k
        }
566
758k
    }
567
568
758k
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
758k
    _rows_returned_counter =
573
758k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
758k
    _blocks_returned_counter =
575
758k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
758k
    _output_block_bytes_counter =
577
758k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
758k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
758k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
758k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
758k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
758k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
758k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
758k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
758k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
758k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
758k
    _memory_used_counter =
588
758k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
758k
    _common_profile->add_info_string("IsColocate",
590
758k
                                     std::to_string(_parent->is_colocated_operator()));
591
758k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
758k
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
758k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
758k
    return Status::OK();
595
758k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
530
134
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
531
134
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
532
134
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
533
134
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
534
134
    _operator_profile->set_metadata(_parent->node_id());
535
    // indent is false so that source operator will have same
536
    // indentation_level with its parent operator.
537
134
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
538
134
    _operator_profile->add_child(_common_profile.get(), true);
539
134
    _operator_profile->add_child(_custom_profile.get(), true);
540
134
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
541
134
    if constexpr (!is_fake_shared) {
542
134
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
543
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
544
0
                                    .first.get()
545
0
                                    ->template cast<SharedStateArg>();
546
547
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
548
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
549
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
550
134
        } else if (info.shared_state) {
551
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
552
                DCHECK(false);
553
            }
554
            // For UnionSourceOperator without children, there is no shared state.
555
134
            _shared_state = info.shared_state->template cast<SharedStateArg>();
556
557
134
            _dependency = _shared_state->create_source_dependency(
558
134
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
559
134
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
560
134
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
561
134
        } else {
562
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
563
                DCHECK(false);
564
            }
565
0
        }
566
134
    }
567
568
134
    if (must_set_shared_state() && _shared_state == nullptr) {
569
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
570
0
    }
571
572
134
    _rows_returned_counter =
573
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
574
134
    _blocks_returned_counter =
575
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
576
134
    _output_block_bytes_counter =
577
134
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
578
134
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
579
134
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
580
134
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
581
134
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
582
134
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
583
134
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
584
134
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
585
134
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
586
134
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
587
134
    _memory_used_counter =
588
134
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
589
134
    _common_profile->add_info_string("IsColocate",
590
134
                                     std::to_string(_parent->is_colocated_operator()));
591
134
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
592
134
    _common_profile->add_info_string("FollowedByShuffledOperator",
593
134
                                     std::to_string(_parent->followed_by_shuffled_operator()));
594
134
    return Status::OK();
595
134
}
596
597
template <typename SharedStateArg>
598
2.82M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
2.82M
    _conjuncts.resize(_parent->_conjuncts.size());
600
2.82M
    _projections.resize(_parent->_projections.size());
601
3.33M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
505k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
505k
    }
604
5.65M
    for (size_t i = 0; i < _projections.size(); i++) {
605
2.83M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
2.83M
    }
607
2.82M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
2.84M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
21.0k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
134k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
113k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
113k
                    state, _intermediate_projections[i][j]));
613
113k
        }
614
21.0k
    }
615
2.82M
    return Status::OK();
616
2.82M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
67.1k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
67.1k
    _conjuncts.resize(_parent->_conjuncts.size());
600
67.1k
    _projections.resize(_parent->_projections.size());
601
68.2k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
1.08k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
1.08k
    }
604
340k
    for (size_t i = 0; i < _projections.size(); i++) {
605
273k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
273k
    }
607
67.1k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
68.6k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
1.48k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
17.0k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
15.5k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
15.5k
                    state, _intermediate_projections[i][j]));
613
15.5k
        }
614
1.48k
    }
615
67.1k
    return Status::OK();
616
67.1k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
3
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
3
    _conjuncts.resize(_parent->_conjuncts.size());
600
3
    _projections.resize(_parent->_projections.size());
601
3
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
3
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
3
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
3
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
3
    return Status::OK();
616
3
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
257k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
257k
    _conjuncts.resize(_parent->_conjuncts.size());
600
257k
    _projections.resize(_parent->_projections.size());
601
257k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
257k
    for (size_t i = 0; i < _projections.size(); i++) {
605
355
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
355
    }
607
257k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
257k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
257k
    return Status::OK();
616
257k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
23
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
23
    _conjuncts.resize(_parent->_conjuncts.size());
600
23
    _projections.resize(_parent->_projections.size());
601
23
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
23
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
23
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
23
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
23
    return Status::OK();
616
23
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
31.8k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
31.8k
    _conjuncts.resize(_parent->_conjuncts.size());
600
31.8k
    _projections.resize(_parent->_projections.size());
601
31.9k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
71
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
71
    }
604
264k
    for (size_t i = 0; i < _projections.size(); i++) {
605
232k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
232k
    }
607
31.8k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
31.9k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
148
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
902
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
754
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
754
                    state, _intermediate_projections[i][j]));
613
754
        }
614
148
    }
615
31.8k
    return Status::OK();
616
31.8k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
6.54k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
6.54k
    _conjuncts.resize(_parent->_conjuncts.size());
600
6.54k
    _projections.resize(_parent->_projections.size());
601
7.21k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
663
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
663
    }
604
18.5k
    for (size_t i = 0; i < _projections.size(); i++) {
605
12.0k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
12.0k
    }
607
6.54k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
6.64k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
94
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
719
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
625
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
625
                    state, _intermediate_projections[i][j]));
613
625
        }
614
94
    }
615
6.54k
    return Status::OK();
616
6.54k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
212k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
212k
    _conjuncts.resize(_parent->_conjuncts.size());
600
212k
    _projections.resize(_parent->_projections.size());
601
217k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
4.14k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
4.14k
    }
604
494k
    for (size_t i = 0; i < _projections.size(); i++) {
605
281k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
281k
    }
607
212k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
213k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
272
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
2.01k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
1.74k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
1.74k
                    state, _intermediate_projections[i][j]));
613
1.74k
        }
614
272
    }
615
212k
    return Status::OK();
616
212k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
455
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
455
    _conjuncts.resize(_parent->_conjuncts.size());
600
455
    _projections.resize(_parent->_projections.size());
601
458
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
3
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
3
    }
604
1.33k
    for (size_t i = 0; i < _projections.size(); i++) {
605
879
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
879
    }
607
455
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
455
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
455
    return Status::OK();
616
455
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
138
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
138
    _conjuncts.resize(_parent->_conjuncts.size());
600
138
    _projections.resize(_parent->_projections.size());
601
138
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
302
    for (size_t i = 0; i < _projections.size(); i++) {
605
164
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
164
    }
607
138
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
138
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
138
    return Status::OK();
616
138
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
1.38M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
1.38M
    _conjuncts.resize(_parent->_conjuncts.size());
600
1.38M
    _projections.resize(_parent->_projections.size());
601
1.87M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
484k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
484k
    }
604
3.32M
    for (size_t i = 0; i < _projections.size(); i++) {
605
1.93M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
1.93M
    }
607
1.38M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
1.40M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
19.0k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
114k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
95.1k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
95.1k
                    state, _intermediate_projections[i][j]));
613
95.1k
        }
614
19.0k
    }
615
1.38M
    return Status::OK();
616
1.38M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
55.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
55.0k
    _conjuncts.resize(_parent->_conjuncts.size());
600
55.0k
    _projections.resize(_parent->_projections.size());
601
55.0k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
148k
    for (size_t i = 0; i < _projections.size(); i++) {
605
93.9k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
93.9k
    }
607
55.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
55.0k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
55.0k
    return Status::OK();
616
55.0k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
17
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
17
    _conjuncts.resize(_parent->_conjuncts.size());
600
17
    _projections.resize(_parent->_projections.size());
601
17
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
17
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
17
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
17
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
17
    return Status::OK();
616
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
42.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
42.0k
    _conjuncts.resize(_parent->_conjuncts.size());
600
42.0k
    _projections.resize(_parent->_projections.size());
601
57.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
15.0k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
15.0k
    }
604
42.0k
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
42.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
42.0k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
42.0k
    return Status::OK();
616
42.0k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
354
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
354
    _conjuncts.resize(_parent->_conjuncts.size());
600
354
    _projections.resize(_parent->_projections.size());
601
354
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
354
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
354
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
354
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
354
    return Status::OK();
616
354
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
4.95k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
4.95k
    _conjuncts.resize(_parent->_conjuncts.size());
600
4.95k
    _projections.resize(_parent->_projections.size());
601
4.95k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
4.95k
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
4.95k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
4.95k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
4.95k
    return Status::OK();
616
4.95k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
759k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
759k
    _conjuncts.resize(_parent->_conjuncts.size());
600
759k
    _projections.resize(_parent->_projections.size());
601
759k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
0
    }
604
759k
    for (size_t i = 0; i < _projections.size(); i++) {
605
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
0
    }
607
759k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
759k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
0
                    state, _intermediate_projections[i][j]));
613
0
        }
614
0
    }
615
759k
    return Status::OK();
616
759k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
598
134
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
599
134
    _conjuncts.resize(_parent->_conjuncts.size());
600
134
    _projections.resize(_parent->_projections.size());
601
140
    for (size_t i = 0; i < _conjuncts.size(); i++) {
602
6
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
603
6
    }
604
410
    for (size_t i = 0; i < _projections.size(); i++) {
605
276
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
606
276
    }
607
134
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
608
135
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
609
1
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
610
3
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
611
2
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
612
2
                    state, _intermediate_projections[i][j]));
613
2
        }
614
1
    }
615
134
    return Status::OK();
616
134
}
617
618
template <typename SharedStateArg>
619
17.0k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
17.0k
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
17.0k
    _terminated = true;
624
17.0k
    return Status::OK();
625
17.0k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
1.36k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
1.36k
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
1.36k
    _terminated = true;
624
1.36k
    return Status::OK();
625
1.36k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
68
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
68
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
68
    _terminated = true;
624
68
    return Status::OK();
625
68
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
270
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
270
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
270
    _terminated = true;
624
270
    return Status::OK();
625
270
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
227
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
227
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
227
    _terminated = true;
624
227
    return Status::OK();
625
227
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
13.7k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
13.7k
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
13.7k
    _terminated = true;
624
13.7k
    return Status::OK();
625
13.7k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
12
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
12
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
12
    _terminated = true;
624
12
    return Status::OK();
625
12
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
15
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
15
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
15
    _terminated = true;
624
15
    return Status::OK();
625
15
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
1
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
1
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
1
    _terminated = true;
624
1
    return Status::OK();
625
1
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
1.26k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
1.26k
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
1.26k
    _terminated = true;
624
1.26k
    return Status::OK();
625
1.26k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
619
14
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
620
14
    if (_terminated) {
621
0
        return Status::OK();
622
0
    }
623
14
    _terminated = true;
624
14
    return Status::OK();
625
14
}
626
627
template <typename SharedStateArg>
628
3.12M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
3.12M
    if (_closed) {
630
297k
        return Status::OK();
631
297k
    }
632
2.82M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
1.43M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
1.43M
    }
635
2.82M
    _closed = true;
636
2.82M
    return Status::OK();
637
3.12M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
67.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
67.0k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
67.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
67.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
67.0k
    }
635
67.0k
    _closed = true;
636
67.0k
    return Status::OK();
637
67.0k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
4
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
4
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
4
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
4
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
4
    }
635
4
    _closed = true;
636
4
    return Status::OK();
637
4
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
512k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
512k
    if (_closed) {
630
256k
        return Status::OK();
631
256k
    }
632
255k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
255k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
255k
    }
635
255k
    _closed = true;
636
255k
    return Status::OK();
637
512k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
23
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
23
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
23
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
23
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
23
    }
635
23
    _closed = true;
636
23
    return Status::OK();
637
23
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
31.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
31.8k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
31.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
31.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
31.8k
    }
635
31.8k
    _closed = true;
636
31.8k
    return Status::OK();
637
31.8k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
13.1k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
13.1k
    if (_closed) {
630
6.62k
        return Status::OK();
631
6.62k
    }
632
6.53k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
6.53k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
6.53k
    }
635
6.53k
    _closed = true;
636
6.53k
    return Status::OK();
637
13.1k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
212k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
212k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
212k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
212k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
212k
    }
635
212k
    _closed = true;
636
212k
    return Status::OK();
637
212k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
453
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
453
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
453
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
453
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
453
    }
635
453
    _closed = true;
636
453
    return Status::OK();
637
453
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
133
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
133
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
133
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
133
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
133
    }
635
133
    _closed = true;
636
133
    return Status::OK();
637
133
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
1.41M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
1.41M
    if (_closed) {
630
29.4k
        return Status::OK();
631
29.4k
    }
632
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
    }
635
1.38M
    _closed = true;
636
1.38M
    return Status::OK();
637
1.41M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
55.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
55.0k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
55.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
55.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
55.0k
    }
635
55.0k
    _closed = true;
636
55.0k
    return Status::OK();
637
55.0k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
28
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
28
    if (_closed) {
630
14
        return Status::OK();
631
14
    }
632
14
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
14
    }
635
14
    _closed = true;
636
14
    return Status::OK();
637
28
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
41.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
41.8k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
41.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
41.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
41.8k
    }
635
41.8k
    _closed = true;
636
41.8k
    return Status::OK();
637
41.8k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
502
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
502
    if (_closed) {
630
251
        return Status::OK();
631
251
    }
632
251
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
251
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
251
    }
635
251
    _closed = true;
636
251
    return Status::OK();
637
502
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
10.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
10.0k
    if (_closed) {
630
5.14k
        return Status::OK();
631
5.14k
    }
632
4.94k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
4.94k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
4.94k
    }
635
4.94k
    _closed = true;
636
4.94k
    return Status::OK();
637
10.0k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
761k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
761k
    if (_closed) {
630
0
        return Status::OK();
631
0
    }
632
761k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
761k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
761k
    }
635
761k
    _closed = true;
636
761k
    return Status::OK();
637
761k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
628
301
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
629
301
    if (_closed) {
630
174
        return Status::OK();
631
174
    }
632
127
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
633
127
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
634
127
    }
635
127
    _closed = true;
636
127
    return Status::OK();
637
301
}
638
639
template <typename SharedState>
640
2.24M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
2.24M
    _operator_profile =
643
2.24M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
2.24M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
2.24M
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
2.24M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
2.24M
    _operator_profile->add_child(_common_profile, true);
652
2.24M
    _operator_profile->add_child(_custom_profile, true);
653
654
2.24M
    _operator_profile->set_metadata(_parent->node_id());
655
2.24M
    _wait_for_finish_dependency_timer =
656
2.24M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
2.24M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
2.24M
    if constexpr (!is_fake_shared) {
659
1.45M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
1.45M
            info.shared_state_map.end()) {
661
293k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
274k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
274k
            }
664
293k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
293k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
293k
                                                  ? 0
667
293k
                                                  : info.task_idx]
668
293k
                                  .get();
669
293k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
1.16M
        } else {
671
1.16M
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
242
                DCHECK(false);
673
242
            }
674
1.16M
            _shared_state = info.shared_state->template cast<SharedState>();
675
1.16M
            _dependency = _shared_state->create_sink_dependency(
676
1.16M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
1.16M
        }
678
1.45M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
1.45M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
1.45M
    }
681
682
2.24M
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
2.24M
    _rows_input_counter =
687
2.24M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
2.24M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
2.24M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
2.24M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
2.24M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
2.24M
    _memory_used_counter =
693
2.24M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
2.24M
    _common_profile->add_info_string("IsColocate",
695
2.24M
                                     std::to_string(_parent->is_colocated_operator()));
696
2.24M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
2.24M
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
2.24M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
2.24M
    return Status::OK();
700
2.24M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
115k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
115k
    _operator_profile =
643
115k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
115k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
115k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
115k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
115k
    _operator_profile->add_child(_common_profile, true);
652
115k
    _operator_profile->add_child(_custom_profile, true);
653
654
115k
    _operator_profile->set_metadata(_parent->node_id());
655
115k
    _wait_for_finish_dependency_timer =
656
115k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
115k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
115k
    if constexpr (!is_fake_shared) {
659
115k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
115k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
17.9k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
17.9k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
17.9k
                                                  ? 0
667
17.9k
                                                  : info.task_idx]
668
17.9k
                                  .get();
669
17.9k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
97.1k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
97.1k
            _shared_state = info.shared_state->template cast<SharedState>();
675
97.1k
            _dependency = _shared_state->create_sink_dependency(
676
97.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
97.1k
        }
678
115k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
115k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
115k
    }
681
682
115k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
115k
    _rows_input_counter =
687
115k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
115k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
115k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
115k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
115k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
115k
    _memory_used_counter =
693
115k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
115k
    _common_profile->add_info_string("IsColocate",
695
115k
                                     std::to_string(_parent->is_colocated_operator()));
696
115k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
115k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
115k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
115k
    return Status::OK();
700
115k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
2
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
2
    _operator_profile =
643
2
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
2
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
2
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
2
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
2
    _operator_profile->add_child(_common_profile, true);
652
2
    _operator_profile->add_child(_custom_profile, true);
653
654
2
    _operator_profile->set_metadata(_parent->node_id());
655
2
    _wait_for_finish_dependency_timer =
656
2
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
2
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
2
    if constexpr (!is_fake_shared) {
659
2
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
2
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
2
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
2
            _shared_state = info.shared_state->template cast<SharedState>();
675
2
            _dependency = _shared_state->create_sink_dependency(
676
2
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
2
        }
678
2
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
2
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
2
    }
681
682
2
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
2
    _rows_input_counter =
687
2
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
2
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
2
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
2
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
2
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
2
    _memory_used_counter =
693
2
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
2
    _common_profile->add_info_string("IsColocate",
695
2
                                     std::to_string(_parent->is_colocated_operator()));
696
2
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
2
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
2
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
2
    return Status::OK();
700
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
256k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
256k
    _operator_profile =
643
256k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
256k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
256k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
256k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
256k
    _operator_profile->add_child(_common_profile, true);
652
256k
    _operator_profile->add_child(_custom_profile, true);
653
654
256k
    _operator_profile->set_metadata(_parent->node_id());
655
256k
    _wait_for_finish_dependency_timer =
656
256k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
256k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
256k
    if constexpr (!is_fake_shared) {
659
256k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
256k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
256k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
256k
            _shared_state = info.shared_state->template cast<SharedState>();
675
256k
            _dependency = _shared_state->create_sink_dependency(
676
256k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
256k
        }
678
256k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
256k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
256k
    }
681
682
256k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
256k
    _rows_input_counter =
687
256k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
256k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
256k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
256k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
256k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
256k
    _memory_used_counter =
693
256k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
256k
    _common_profile->add_info_string("IsColocate",
695
256k
                                     std::to_string(_parent->is_colocated_operator()));
696
256k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
256k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
256k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
256k
    return Status::OK();
700
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
29
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
29
    _operator_profile =
643
29
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
29
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
29
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
29
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
29
    _operator_profile->add_child(_common_profile, true);
652
29
    _operator_profile->add_child(_custom_profile, true);
653
654
29
    _operator_profile->set_metadata(_parent->node_id());
655
29
    _wait_for_finish_dependency_timer =
656
29
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
29
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
29
    if constexpr (!is_fake_shared) {
659
29
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
29
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
29
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
29
            _shared_state = info.shared_state->template cast<SharedState>();
675
29
            _dependency = _shared_state->create_sink_dependency(
676
29
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
29
        }
678
29
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
29
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
29
    }
681
682
29
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
29
    _rows_input_counter =
687
29
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
29
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
29
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
29
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
29
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
29
    _memory_used_counter =
693
29
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
29
    _common_profile->add_info_string("IsColocate",
695
29
                                     std::to_string(_parent->is_colocated_operator()));
696
29
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
29
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
29
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
29
    return Status::OK();
700
29
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
31.7k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
31.7k
    _operator_profile =
643
31.7k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
31.7k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
31.7k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
31.7k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
31.7k
    _operator_profile->add_child(_common_profile, true);
652
31.7k
    _operator_profile->add_child(_custom_profile, true);
653
654
31.7k
    _operator_profile->set_metadata(_parent->node_id());
655
31.7k
    _wait_for_finish_dependency_timer =
656
31.7k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
31.7k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
31.7k
    if constexpr (!is_fake_shared) {
659
31.7k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
31.7k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
31.7k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
31.7k
            _shared_state = info.shared_state->template cast<SharedState>();
675
31.7k
            _dependency = _shared_state->create_sink_dependency(
676
31.7k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
31.7k
        }
678
31.7k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
31.7k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
31.7k
    }
681
682
31.7k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
31.7k
    _rows_input_counter =
687
31.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
31.7k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
31.7k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
31.7k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
31.7k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
31.7k
    _memory_used_counter =
693
31.7k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
31.7k
    _common_profile->add_info_string("IsColocate",
695
31.7k
                                     std::to_string(_parent->is_colocated_operator()));
696
31.7k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
31.7k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
31.7k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
31.7k
    return Status::OK();
700
31.7k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
6.53k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
6.53k
    _operator_profile =
643
6.53k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
6.53k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
6.53k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
6.53k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
6.53k
    _operator_profile->add_child(_common_profile, true);
652
6.53k
    _operator_profile->add_child(_custom_profile, true);
653
654
6.53k
    _operator_profile->set_metadata(_parent->node_id());
655
6.53k
    _wait_for_finish_dependency_timer =
656
6.53k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
6.53k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
6.53k
    if constexpr (!is_fake_shared) {
659
6.53k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
6.53k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
6.53k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
6.53k
            _shared_state = info.shared_state->template cast<SharedState>();
675
6.53k
            _dependency = _shared_state->create_sink_dependency(
676
6.53k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
6.53k
        }
678
6.53k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
6.53k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
6.53k
    }
681
682
6.53k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
6.53k
    _rows_input_counter =
687
6.53k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
6.53k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
6.53k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
6.53k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
6.53k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
6.53k
    _memory_used_counter =
693
6.53k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
6.53k
    _common_profile->add_info_string("IsColocate",
695
6.53k
                                     std::to_string(_parent->is_colocated_operator()));
696
6.53k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
6.53k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
6.53k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
6.53k
    return Status::OK();
700
6.53k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
212k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
212k
    _operator_profile =
643
212k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
212k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
212k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
212k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
212k
    _operator_profile->add_child(_common_profile, true);
652
212k
    _operator_profile->add_child(_custom_profile, true);
653
654
212k
    _operator_profile->set_metadata(_parent->node_id());
655
212k
    _wait_for_finish_dependency_timer =
656
212k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
212k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
212k
    if constexpr (!is_fake_shared) {
659
212k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
212k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
212k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
212k
            _shared_state = info.shared_state->template cast<SharedState>();
675
212k
            _dependency = _shared_state->create_sink_dependency(
676
212k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
212k
        }
678
212k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
212k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
212k
    }
681
682
212k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
212k
    _rows_input_counter =
687
212k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
212k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
212k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
212k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
212k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
212k
    _memory_used_counter =
693
212k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
212k
    _common_profile->add_info_string("IsColocate",
695
212k
                                     std::to_string(_parent->is_colocated_operator()));
696
212k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
212k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
212k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
212k
    return Status::OK();
700
212k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
404
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
404
    _operator_profile =
643
404
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
404
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
404
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
404
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
404
    _operator_profile->add_child(_common_profile, true);
652
404
    _operator_profile->add_child(_custom_profile, true);
653
654
404
    _operator_profile->set_metadata(_parent->node_id());
655
404
    _wait_for_finish_dependency_timer =
656
404
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
404
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
404
    if constexpr (!is_fake_shared) {
659
404
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
404
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
403
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
403
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
403
                                                  ? 0
667
403
                                                  : info.task_idx]
668
403
                                  .get();
669
403
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
403
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
1
            _shared_state = info.shared_state->template cast<SharedState>();
675
1
            _dependency = _shared_state->create_sink_dependency(
676
1
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
1
        }
678
404
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
404
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
404
    }
681
682
404
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
404
    _rows_input_counter =
687
404
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
404
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
404
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
404
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
404
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
404
    _memory_used_counter =
693
404
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
404
    _common_profile->add_info_string("IsColocate",
695
404
                                     std::to_string(_parent->is_colocated_operator()));
696
404
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
404
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
404
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
404
    return Status::OK();
700
404
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
144
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
144
    _operator_profile =
643
144
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
144
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
144
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
144
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
144
    _operator_profile->add_child(_common_profile, true);
652
144
    _operator_profile->add_child(_custom_profile, true);
653
654
144
    _operator_profile->set_metadata(_parent->node_id());
655
144
    _wait_for_finish_dependency_timer =
656
144
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
144
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
144
    if constexpr (!is_fake_shared) {
659
144
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
144
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
144
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
144
            _shared_state = info.shared_state->template cast<SharedState>();
675
144
            _dependency = _shared_state->create_sink_dependency(
676
144
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
144
        }
678
144
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
144
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
144
    }
681
682
144
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
144
    _rows_input_counter =
687
144
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
144
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
144
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
144
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
144
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
144
    _memory_used_counter =
693
144
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
144
    _common_profile->add_info_string("IsColocate",
695
144
                                     std::to_string(_parent->is_colocated_operator()));
696
144
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
144
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
144
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
144
    return Status::OK();
700
144
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
786k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
786k
    _operator_profile =
643
786k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
786k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
786k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
786k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
786k
    _operator_profile->add_child(_common_profile, true);
652
786k
    _operator_profile->add_child(_custom_profile, true);
653
654
786k
    _operator_profile->set_metadata(_parent->node_id());
655
786k
    _wait_for_finish_dependency_timer =
656
786k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
786k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
    if constexpr (!is_fake_shared) {
659
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
                                                  ? 0
667
                                                  : info.task_idx]
668
                                  .get();
669
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
            _shared_state = info.shared_state->template cast<SharedState>();
675
            _dependency = _shared_state->create_sink_dependency(
676
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
        }
678
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
    }
681
682
786k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
786k
    _rows_input_counter =
687
786k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
786k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
786k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
786k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
786k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
786k
    _memory_used_counter =
693
786k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
786k
    _common_profile->add_info_string("IsColocate",
695
786k
                                     std::to_string(_parent->is_colocated_operator()));
696
786k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
786k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
786k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
786k
    return Status::OK();
700
786k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
5.84k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
5.84k
    _operator_profile =
643
5.84k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
5.84k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
5.84k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
5.84k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
5.84k
    _operator_profile->add_child(_common_profile, true);
652
5.84k
    _operator_profile->add_child(_custom_profile, true);
653
654
5.84k
    _operator_profile->set_metadata(_parent->node_id());
655
5.84k
    _wait_for_finish_dependency_timer =
656
5.84k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
5.84k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
5.84k
    if constexpr (!is_fake_shared) {
659
5.84k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
5.84k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
5.84k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
5.84k
            _shared_state = info.shared_state->template cast<SharedState>();
675
5.84k
            _dependency = _shared_state->create_sink_dependency(
676
5.84k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
5.84k
        }
678
5.84k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
5.84k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
5.84k
    }
681
682
5.84k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
5.84k
    _rows_input_counter =
687
5.84k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
5.84k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
5.84k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
5.84k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
5.84k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
5.84k
    _memory_used_counter =
693
5.84k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
5.84k
    _common_profile->add_info_string("IsColocate",
695
5.84k
                                     std::to_string(_parent->is_colocated_operator()));
696
5.84k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
5.84k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
5.84k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
5.84k
    return Status::OK();
700
5.84k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
354
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
354
    _operator_profile =
643
354
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
354
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
354
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
354
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
354
    _operator_profile->add_child(_common_profile, true);
652
354
    _operator_profile->add_child(_custom_profile, true);
653
654
354
    _operator_profile->set_metadata(_parent->node_id());
655
354
    _wait_for_finish_dependency_timer =
656
354
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
354
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
354
    if constexpr (!is_fake_shared) {
659
354
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
354
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
354
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
354
            _shared_state = info.shared_state->template cast<SharedState>();
675
354
            _dependency = _shared_state->create_sink_dependency(
676
354
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
354
        }
678
354
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
354
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
354
    }
681
682
354
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
354
    _rows_input_counter =
687
354
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
354
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
354
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
354
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
354
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
354
    _memory_used_counter =
693
354
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
354
    _common_profile->add_info_string("IsColocate",
695
354
                                     std::to_string(_parent->is_colocated_operator()));
696
354
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
354
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
354
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
354
    return Status::OK();
700
354
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
14.1k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
14.1k
    _operator_profile =
643
14.1k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
14.1k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
14.1k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
14.1k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
14.1k
    _operator_profile->add_child(_common_profile, true);
652
14.1k
    _operator_profile->add_child(_custom_profile, true);
653
654
14.1k
    _operator_profile->set_metadata(_parent->node_id());
655
14.1k
    _wait_for_finish_dependency_timer =
656
14.1k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
14.1k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
14.1k
    if constexpr (!is_fake_shared) {
659
14.1k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
14.1k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
14.1k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
14.1k
            _shared_state = info.shared_state->template cast<SharedState>();
675
14.1k
            _dependency = _shared_state->create_sink_dependency(
676
14.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
14.1k
        }
678
14.1k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
14.1k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
14.1k
    }
681
682
14.1k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
14.1k
    _rows_input_counter =
687
14.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
14.1k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
14.1k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
14.1k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
14.1k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
14.1k
    _memory_used_counter =
693
14.1k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
14.1k
    _common_profile->add_info_string("IsColocate",
695
14.1k
                                     std::to_string(_parent->is_colocated_operator()));
696
14.1k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
14.1k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
14.1k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
14.1k
    return Status::OK();
700
14.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
12.1k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
12.1k
    _operator_profile =
643
12.1k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
12.1k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
12.1k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
12.1k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
12.1k
    _operator_profile->add_child(_common_profile, true);
652
12.1k
    _operator_profile->add_child(_custom_profile, true);
653
654
12.1k
    _operator_profile->set_metadata(_parent->node_id());
655
12.1k
    _wait_for_finish_dependency_timer =
656
12.1k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
12.1k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
12.1k
    if constexpr (!is_fake_shared) {
659
12.1k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
12.1k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
12.1k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
12.1k
            _shared_state = info.shared_state->template cast<SharedState>();
675
12.1k
            _dependency = _shared_state->create_sink_dependency(
676
12.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
12.1k
        }
678
12.1k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
12.1k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
12.1k
    }
681
682
12.1k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
12.1k
    _rows_input_counter =
687
12.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
12.1k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
12.1k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
12.1k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
12.1k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
12.1k
    _memory_used_counter =
693
12.1k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
12.1k
    _common_profile->add_info_string("IsColocate",
695
12.1k
                                     std::to_string(_parent->is_colocated_operator()));
696
12.1k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
12.1k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
12.1k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
12.1k
    return Status::OK();
700
12.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
274k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
274k
    _operator_profile =
643
274k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
274k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
274k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
274k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
274k
    _operator_profile->add_child(_common_profile, true);
652
274k
    _operator_profile->add_child(_custom_profile, true);
653
654
274k
    _operator_profile->set_metadata(_parent->node_id());
655
274k
    _wait_for_finish_dependency_timer =
656
274k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
274k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
274k
    if constexpr (!is_fake_shared) {
659
274k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
274k
            info.shared_state_map.end()) {
661
274k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
274k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
274k
            }
664
274k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
274k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
274k
                                                  ? 0
667
274k
                                                  : info.task_idx]
668
274k
                                  .get();
669
274k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
274k
        } else {
671
242
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
242
                DCHECK(false);
673
242
            }
674
242
            _shared_state = info.shared_state->template cast<SharedState>();
675
242
            _dependency = _shared_state->create_sink_dependency(
676
242
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
242
        }
678
274k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
274k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
274k
    }
681
682
274k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
274k
    _rows_input_counter =
687
274k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
274k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
274k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
274k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
274k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
274k
    _memory_used_counter =
693
274k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
274k
    _common_profile->add_info_string("IsColocate",
695
274k
                                     std::to_string(_parent->is_colocated_operator()));
696
274k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
274k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
274k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
274k
    return Status::OK();
700
274k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
526k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
526k
    _operator_profile =
643
526k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
526k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
526k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
526k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
526k
    _operator_profile->add_child(_common_profile, true);
652
526k
    _operator_profile->add_child(_custom_profile, true);
653
654
526k
    _operator_profile->set_metadata(_parent->node_id());
655
526k
    _wait_for_finish_dependency_timer =
656
526k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
526k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
526k
    if constexpr (!is_fake_shared) {
659
526k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
526k
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
526k
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
526k
            _shared_state = info.shared_state->template cast<SharedState>();
675
526k
            _dependency = _shared_state->create_sink_dependency(
676
526k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
526k
        }
678
526k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
526k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
526k
    }
681
682
526k
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
526k
    _rows_input_counter =
687
526k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
526k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
526k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
526k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
526k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
526k
    _memory_used_counter =
693
526k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
526k
    _common_profile->add_info_string("IsColocate",
695
526k
                                     std::to_string(_parent->is_colocated_operator()));
696
526k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
526k
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
526k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
526k
    return Status::OK();
700
526k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
17
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
17
    _operator_profile =
643
17
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
17
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
17
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
17
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
17
    _operator_profile->add_child(_common_profile, true);
652
17
    _operator_profile->add_child(_custom_profile, true);
653
654
17
    _operator_profile->set_metadata(_parent->node_id());
655
17
    _wait_for_finish_dependency_timer =
656
17
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
17
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
17
    if constexpr (!is_fake_shared) {
659
17
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
17
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
17
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
17
            _shared_state = info.shared_state->template cast<SharedState>();
675
17
            _dependency = _shared_state->create_sink_dependency(
676
17
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
17
        }
678
17
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
17
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
17
    }
681
682
17
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
17
    _rows_input_counter =
687
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
17
    _memory_used_counter =
693
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
17
    _common_profile->add_info_string("IsColocate",
695
17
                                     std::to_string(_parent->is_colocated_operator()));
696
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
17
    return Status::OK();
700
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
640
268
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
641
    // create profile
642
268
    _operator_profile =
643
268
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
644
268
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
645
268
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
646
647
    // indentation is true
648
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
649
    // So we should set the indentation to true.
650
268
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
651
268
    _operator_profile->add_child(_common_profile, true);
652
268
    _operator_profile->add_child(_custom_profile, true);
653
654
268
    _operator_profile->set_metadata(_parent->node_id());
655
268
    _wait_for_finish_dependency_timer =
656
268
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
657
268
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
658
268
    if constexpr (!is_fake_shared) {
659
268
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
660
268
            info.shared_state_map.end()) {
661
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
662
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
663
            }
664
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
665
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
666
0
                                                  ? 0
667
0
                                                  : info.task_idx]
668
0
                                  .get();
669
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
670
268
        } else {
671
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
672
                DCHECK(false);
673
            }
674
268
            _shared_state = info.shared_state->template cast<SharedState>();
675
268
            _dependency = _shared_state->create_sink_dependency(
676
268
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
677
268
        }
678
268
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
679
268
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
680
268
    }
681
682
268
    if (must_set_shared_state() && _shared_state == nullptr) {
683
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
684
0
    }
685
686
268
    _rows_input_counter =
687
268
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
688
268
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
689
268
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
690
268
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
691
268
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
692
268
    _memory_used_counter =
693
268
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
694
268
    _common_profile->add_info_string("IsColocate",
695
268
                                     std::to_string(_parent->is_colocated_operator()));
696
268
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
697
268
    _common_profile->add_info_string("FollowedByShuffledOperator",
698
268
                                     std::to_string(_parent->followed_by_shuffled_operator()));
699
268
    return Status::OK();
700
268
}
701
702
template <typename SharedState>
703
2.24M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
2.24M
    if (_closed) {
705
2
        return Status::OK();
706
2
    }
707
2.24M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
1.45M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
1.45M
    }
710
2.24M
    _closed = true;
711
2.24M
    return Status::OK();
712
2.24M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
115k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
115k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
115k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
115k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
115k
    }
710
115k
    _closed = true;
711
115k
    return Status::OK();
712
115k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
1
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
1
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
1
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
1
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
1
    }
710
1
    _closed = true;
711
1
    return Status::OK();
712
1
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
256k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
256k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
256k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
256k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
256k
    }
710
256k
    _closed = true;
711
256k
    return Status::OK();
712
256k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
21
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
21
    if (_closed) {
705
2
        return Status::OK();
706
2
    }
707
19
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
19
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
19
    }
710
19
    _closed = true;
711
19
    return Status::OK();
712
21
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
31.8k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
31.8k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
31.8k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
31.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
31.8k
    }
710
31.8k
    _closed = true;
711
31.8k
    return Status::OK();
712
31.8k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
6.52k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
6.52k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
6.52k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
6.52k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
6.52k
    }
710
6.52k
    _closed = true;
711
6.52k
    return Status::OK();
712
6.52k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
212k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
212k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
212k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
212k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
212k
    }
710
212k
    _closed = true;
711
212k
    return Status::OK();
712
212k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
401
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
401
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
401
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
401
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
401
    }
710
401
    _closed = true;
711
401
    return Status::OK();
712
401
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
133
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
133
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
133
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
133
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
133
    }
710
133
    _closed = true;
711
133
    return Status::OK();
712
133
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
787k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
787k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
    }
710
787k
    _closed = true;
711
787k
    return Status::OK();
712
787k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
5.84k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
5.84k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
5.84k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
5.84k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
5.84k
    }
710
5.84k
    _closed = true;
711
5.84k
    return Status::OK();
712
5.84k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
251
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
251
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
251
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
251
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
251
    }
710
251
    _closed = true;
711
251
    return Status::OK();
712
251
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
14.1k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
14.1k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
14.1k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
14.1k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
14.1k
    }
710
14.1k
    _closed = true;
711
14.1k
    return Status::OK();
712
14.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
12.2k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
12.2k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
12.2k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
12.2k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
12.2k
    }
710
12.2k
    _closed = true;
711
12.2k
    return Status::OK();
712
12.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
275k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
275k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
275k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
275k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
275k
    }
710
275k
    _closed = true;
711
275k
    return Status::OK();
712
275k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
528k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
528k
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
528k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
528k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
528k
    }
710
528k
    _closed = true;
711
528k
    return Status::OK();
712
528k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
14
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
14
    }
710
14
    _closed = true;
711
14
    return Status::OK();
712
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
703
268
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
704
268
    if (_closed) {
705
0
        return Status::OK();
706
0
    }
707
268
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
708
268
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
709
268
    }
710
268
    _closed = true;
711
268
    return Status::OK();
712
268
}
713
714
template <typename LocalStateType>
715
86.4k
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
716
86.4k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
717
86.4k
    return pull(state, block, eos);
718
86.4k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
715
431
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
716
431
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
717
431
    return pull(state, block, eos);
718
431
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
715
86.0k
Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
716
86.0k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
717
86.0k
    return pull(state, block, eos);
718
86.0k
}
719
720
template <typename LocalStateType>
721
846k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
846k
    auto& local_state = get_local_state(state);
723
846k
    if (need_more_input_data(state)) {
724
820k
        local_state._child_block->clear_column_data(
725
820k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
820k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
820k
                state, local_state._child_block.get(), &local_state._child_eos));
728
820k
        *eos = local_state._child_eos;
729
820k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
84.1k
            return Status::OK();
731
84.1k
        }
732
736k
        {
733
736k
            SCOPED_TIMER(local_state.exec_time_counter());
734
736k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
736k
        }
736
736k
    }
737
738
762k
    if (!need_more_input_data(state)) {
739
698k
        SCOPED_TIMER(local_state.exec_time_counter());
740
698k
        bool new_eos = false;
741
698k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
698k
        if (new_eos) {
743
609k
            *eos = true;
744
609k
        } else if (!need_more_input_data(state)) {
745
21.3k
            *eos = false;
746
21.3k
        }
747
698k
    }
748
762k
    return Status::OK();
749
762k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
140k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
140k
    auto& local_state = get_local_state(state);
723
140k
    if (need_more_input_data(state)) {
724
126k
        local_state._child_block->clear_column_data(
725
126k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
126k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
126k
                state, local_state._child_block.get(), &local_state._child_eos));
728
126k
        *eos = local_state._child_eos;
729
126k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
43.3k
            return Status::OK();
731
43.3k
        }
732
82.7k
        {
733
82.7k
            SCOPED_TIMER(local_state.exec_time_counter());
734
82.7k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
82.7k
        }
736
82.7k
    }
737
738
97.5k
    if (!need_more_input_data(state)) {
739
97.5k
        SCOPED_TIMER(local_state.exec_time_counter());
740
97.5k
        bool new_eos = false;
741
97.5k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
97.5k
        if (new_eos) {
743
42.8k
            *eos = true;
744
54.6k
        } else if (!need_more_input_data(state)) {
745
8.44k
            *eos = false;
746
8.44k
        }
747
97.5k
    }
748
97.4k
    return Status::OK();
749
97.4k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
3.35k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
3.35k
    auto& local_state = get_local_state(state);
723
3.35k
    if (need_more_input_data(state)) {
724
2.03k
        local_state._child_block->clear_column_data(
725
2.03k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
2.03k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
2.03k
                state, local_state._child_block.get(), &local_state._child_eos));
728
2.03k
        *eos = local_state._child_eos;
729
2.03k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
545
            return Status::OK();
731
545
        }
732
1.48k
        {
733
1.48k
            SCOPED_TIMER(local_state.exec_time_counter());
734
1.48k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
1.48k
        }
736
1.48k
    }
737
738
2.81k
    if (!need_more_input_data(state)) {
739
2.81k
        SCOPED_TIMER(local_state.exec_time_counter());
740
2.81k
        bool new_eos = false;
741
2.81k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
2.81k
        if (new_eos) {
743
1.14k
            *eos = true;
744
1.67k
        } else if (!need_more_input_data(state)) {
745
1.32k
            *eos = false;
746
1.32k
        }
747
2.81k
    }
748
2.81k
    return Status::OK();
749
2.81k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
4.69k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
4.69k
    auto& local_state = get_local_state(state);
723
4.69k
    if (need_more_input_data(state)) {
724
4.69k
        local_state._child_block->clear_column_data(
725
4.69k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
4.69k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
4.69k
                state, local_state._child_block.get(), &local_state._child_eos));
728
4.69k
        *eos = local_state._child_eos;
729
4.69k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
1.57k
            return Status::OK();
731
1.57k
        }
732
3.12k
        {
733
3.12k
            SCOPED_TIMER(local_state.exec_time_counter());
734
3.12k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
3.12k
        }
736
3.12k
    }
737
738
3.12k
    if (!need_more_input_data(state)) {
739
3.12k
        SCOPED_TIMER(local_state.exec_time_counter());
740
3.12k
        bool new_eos = false;
741
3.12k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
3.12k
        if (new_eos) {
743
1.60k
            *eos = true;
744
1.60k
        } else if (!need_more_input_data(state)) {
745
0
            *eos = false;
746
0
        }
747
3.12k
    }
748
3.12k
    return Status::OK();
749
3.12k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
53.3k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
53.3k
    auto& local_state = get_local_state(state);
723
53.3k
    if (need_more_input_data(state)) {
724
53.3k
        local_state._child_block->clear_column_data(
725
53.3k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
53.3k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
53.3k
                state, local_state._child_block.get(), &local_state._child_eos));
728
53.3k
        *eos = local_state._child_eos;
729
53.3k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
5.71k
            return Status::OK();
731
5.71k
        }
732
47.6k
        {
733
47.6k
            SCOPED_TIMER(local_state.exec_time_counter());
734
47.6k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
47.6k
        }
736
47.6k
    }
737
738
47.6k
    if (!need_more_input_data(state)) {
739
16.8k
        SCOPED_TIMER(local_state.exec_time_counter());
740
16.8k
        bool new_eos = false;
741
16.8k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
16.8k
        if (new_eos) {
743
16.5k
            *eos = true;
744
16.5k
        } else if (!need_more_input_data(state)) {
745
57
            *eos = false;
746
57
        }
747
16.8k
    }
748
47.6k
    return Status::OK();
749
47.6k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
565k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
565k
    auto& local_state = get_local_state(state);
723
566k
    if (need_more_input_data(state)) {
724
566k
        local_state._child_block->clear_column_data(
725
566k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
566k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
566k
                state, local_state._child_block.get(), &local_state._child_eos));
728
566k
        *eos = local_state._child_eos;
729
566k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
18.9k
            return Status::OK();
731
18.9k
        }
732
547k
        {
733
547k
            SCOPED_TIMER(local_state.exec_time_counter());
734
547k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
547k
        }
736
547k
    }
737
738
546k
    if (!need_more_input_data(state)) {
739
512k
        SCOPED_TIMER(local_state.exec_time_counter());
740
512k
        bool new_eos = false;
741
512k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
512k
        if (new_eos) {
743
511k
            *eos = true;
744
511k
        } else if (!need_more_input_data(state)) {
745
0
            *eos = false;
746
0
        }
747
512k
    }
748
546k
    return Status::OK();
749
546k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
72.5k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
72.5k
    auto& local_state = get_local_state(state);
723
72.5k
    if (need_more_input_data(state)) {
724
61.3k
        local_state._child_block->clear_column_data(
725
61.3k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
61.3k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
61.3k
                state, local_state._child_block.get(), &local_state._child_eos));
728
61.3k
        *eos = local_state._child_eos;
729
61.3k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
13.4k
            return Status::OK();
731
13.4k
        }
732
47.8k
        {
733
47.8k
            SCOPED_TIMER(local_state.exec_time_counter());
734
47.8k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
47.8k
        }
736
47.8k
    }
737
738
59.0k
    if (!need_more_input_data(state)) {
739
58.6k
        SCOPED_TIMER(local_state.exec_time_counter());
740
58.6k
        bool new_eos = false;
741
58.6k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
58.6k
        if (new_eos) {
743
31.8k
            *eos = true;
744
31.8k
        } else if (!need_more_input_data(state)) {
745
11.1k
            *eos = false;
746
11.1k
        }
747
58.6k
    }
748
59.0k
    return Status::OK();
749
59.0k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
721
6.88k
Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) {
722
6.88k
    auto& local_state = get_local_state(state);
723
6.88k
    if (need_more_input_data(state)) {
724
6.52k
        local_state._child_block->clear_column_data(
725
6.52k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
726
6.52k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
727
6.52k
                state, local_state._child_block.get(), &local_state._child_eos));
728
6.52k
        *eos = local_state._child_eos;
729
6.52k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
730
598
            return Status::OK();
731
598
        }
732
5.92k
        {
733
5.92k
            SCOPED_TIMER(local_state.exec_time_counter());
734
5.92k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
735
5.92k
        }
736
5.92k
    }
737
738
6.28k
    if (!need_more_input_data(state)) {
739
6.28k
        SCOPED_TIMER(local_state.exec_time_counter());
740
6.28k
        bool new_eos = false;
741
6.28k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
742
6.28k
        if (new_eos) {
743
4.24k
            *eos = true;
744
4.24k
        } else if (!need_more_input_data(state)) {
745
366
            *eos = false;
746
366
        }
747
6.28k
    }
748
6.28k
    return Status::OK();
749
6.28k
}
750
751
template <typename Writer, typename Parent>
752
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
753
62.6k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
62.6k
    RETURN_IF_ERROR(Base::init(state, info));
755
62.6k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
62.6k
                                                         "AsyncWriterDependency", true);
757
62.6k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
62.6k
                             _finish_dependency));
759
760
62.6k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
62.6k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
62.6k
    return Status::OK();
763
62.6k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
542
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
542
    RETURN_IF_ERROR(Base::init(state, info));
755
542
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
542
                                                         "AsyncWriterDependency", true);
757
542
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
542
                             _finish_dependency));
759
760
542
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
542
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
542
    return Status::OK();
763
542
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
88
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
88
    RETURN_IF_ERROR(Base::init(state, info));
755
88
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
88
                                                         "AsyncWriterDependency", true);
757
88
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
88
                             _finish_dependency));
759
760
88
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
88
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
88
    return Status::OK();
763
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
43.5k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
43.5k
    RETURN_IF_ERROR(Base::init(state, info));
755
43.5k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
43.5k
                                                         "AsyncWriterDependency", true);
757
43.5k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
43.5k
                             _finish_dependency));
759
760
43.5k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
43.5k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
43.5k
    return Status::OK();
763
43.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
8.90k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
8.90k
    RETURN_IF_ERROR(Base::init(state, info));
755
8.90k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
8.90k
                                                         "AsyncWriterDependency", true);
757
8.90k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
8.90k
                             _finish_dependency));
759
760
8.90k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
8.90k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
8.90k
    return Status::OK();
763
8.90k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
5.15k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
5.15k
    RETURN_IF_ERROR(Base::init(state, info));
755
5.15k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
5.15k
                                                         "AsyncWriterDependency", true);
757
5.15k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
5.15k
                             _finish_dependency));
759
760
5.15k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
5.15k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
5.15k
    return Status::OK();
763
5.15k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
3.38k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
3.38k
    RETURN_IF_ERROR(Base::init(state, info));
755
3.38k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
3.38k
                                                         "AsyncWriterDependency", true);
757
3.38k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
3.38k
                             _finish_dependency));
759
760
3.38k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
3.38k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
3.38k
    return Status::OK();
763
3.38k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
160
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
160
    RETURN_IF_ERROR(Base::init(state, info));
755
160
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
160
                                                         "AsyncWriterDependency", true);
757
160
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
160
                             _finish_dependency));
759
760
160
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
160
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
160
    return Status::OK();
763
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
640
    RETURN_IF_ERROR(Base::init(state, info));
755
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
640
                                                         "AsyncWriterDependency", true);
757
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
640
                             _finish_dependency));
759
760
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
640
    return Status::OK();
763
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
753
156
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
754
156
    RETURN_IF_ERROR(Base::init(state, info));
755
156
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
756
156
                                                         "AsyncWriterDependency", true);
757
156
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
758
156
                             _finish_dependency));
759
760
156
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
761
156
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
762
156
    return Status::OK();
763
156
}
764
765
template <typename Writer, typename Parent>
766
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
767
62.9k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
62.9k
    RETURN_IF_ERROR(Base::open(state));
769
62.9k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
564k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
501k
        RETURN_IF_ERROR(
772
501k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
501k
    }
774
62.9k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
62.9k
    return Status::OK();
776
62.9k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
542
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
542
    RETURN_IF_ERROR(Base::open(state));
769
542
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
2.85k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
2.31k
        RETURN_IF_ERROR(
772
2.31k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
2.31k
    }
774
542
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
542
    return Status::OK();
776
542
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
88
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
88
    RETURN_IF_ERROR(Base::open(state));
769
88
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
412
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
324
        RETURN_IF_ERROR(
772
324
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
324
    }
774
88
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
88
    return Status::OK();
776
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
43.9k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
43.9k
    RETURN_IF_ERROR(Base::open(state));
769
43.9k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
324k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
280k
        RETURN_IF_ERROR(
772
280k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
280k
    }
774
43.9k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
43.9k
    return Status::OK();
776
43.9k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
8.88k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
8.88k
    RETURN_IF_ERROR(Base::open(state));
769
8.88k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
54.6k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
45.7k
        RETURN_IF_ERROR(
772
45.7k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
45.7k
    }
774
8.88k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
8.88k
    return Status::OK();
776
8.88k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
5.14k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
5.14k
    RETURN_IF_ERROR(Base::open(state));
769
5.14k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
135k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
129k
        RETURN_IF_ERROR(
772
129k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
129k
    }
774
5.14k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
5.14k
    return Status::OK();
776
5.14k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
3.38k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
3.38k
    RETURN_IF_ERROR(Base::open(state));
769
3.38k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
41.7k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
38.3k
        RETURN_IF_ERROR(
772
38.3k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
38.3k
    }
774
3.38k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
3.38k
    return Status::OK();
776
3.38k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
160
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
160
    RETURN_IF_ERROR(Base::open(state));
769
160
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
480
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
320
        RETURN_IF_ERROR(
772
320
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
320
    }
774
160
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
160
    return Status::OK();
776
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
640
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
640
    RETURN_IF_ERROR(Base::open(state));
769
640
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
4.39k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
3.75k
        RETURN_IF_ERROR(
772
3.75k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
3.75k
    }
774
640
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
640
    return Status::OK();
776
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
767
156
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
768
156
    RETURN_IF_ERROR(Base::open(state));
769
156
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
770
786
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
771
630
        RETURN_IF_ERROR(
772
630
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
773
630
    }
774
156
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
775
156
    return Status::OK();
776
156
}
777
778
template <typename Writer, typename Parent>
779
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
780
86.2k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
86.2k
    return _writer->sink(block, eos);
782
86.2k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
2.35k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
2.35k
    return _writer->sink(block, eos);
782
2.35k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
112
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
112
    return _writer->sink(block, eos);
782
112
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
59.3k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
59.3k
    return _writer->sink(block, eos);
782
59.3k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
10.3k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
10.3k
    return _writer->sink(block, eos);
782
10.3k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
7.50k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
7.50k
    return _writer->sink(block, eos);
782
7.50k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
5.36k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
5.36k
    return _writer->sink(block, eos);
782
5.36k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
180
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
180
    return _writer->sink(block, eos);
782
180
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
778
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
778
    return _writer->sink(block, eos);
782
778
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
780
310
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
781
310
    return _writer->sink(block, eos);
782
310
}
783
784
template <typename Writer, typename Parent>
785
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
786
62.9k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
62.9k
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
62.9k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
62.9k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
63.0k
    if (_writer) {
794
63.0k
        Status st = _writer->get_writer_status();
795
63.0k
        if (exec_status.ok()) {
796
62.9k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
62.9k
                                                       : Status::Cancelled("force close"));
798
62.9k
        } else {
799
110
            _writer->force_close(exec_status);
800
110
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
63.0k
        RETURN_IF_ERROR(st);
805
63.0k
    }
806
62.9k
    return Base::close(state, exec_status);
807
62.9k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
530
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
530
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
530
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
530
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
530
    if (_writer) {
794
530
        Status st = _writer->get_writer_status();
795
530
        if (exec_status.ok()) {
796
530
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
530
                                                       : Status::Cancelled("force close"));
798
530
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
530
        RETURN_IF_ERROR(st);
805
530
    }
806
530
    return Base::close(state, exec_status);
807
530
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
88
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
88
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
88
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
88
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
88
    if (_writer) {
794
88
        Status st = _writer->get_writer_status();
795
88
        if (exec_status.ok()) {
796
88
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
88
                                                       : Status::Cancelled("force close"));
798
88
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
88
        RETURN_IF_ERROR(st);
805
88
    }
806
80
    return Base::close(state, exec_status);
807
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
43.9k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
43.9k
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
43.9k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
43.9k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
44.0k
    if (_writer) {
794
44.0k
        Status st = _writer->get_writer_status();
795
44.0k
        if (exec_status.ok()) {
796
43.9k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
43.9k
                                                       : Status::Cancelled("force close"));
798
43.9k
        } else {
799
62
            _writer->force_close(exec_status);
800
62
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
44.0k
        RETURN_IF_ERROR(st);
805
44.0k
    }
806
43.9k
    return Base::close(state, exec_status);
807
43.9k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
8.90k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
8.90k
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
8.90k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
8.90k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
8.90k
    if (_writer) {
794
8.90k
        Status st = _writer->get_writer_status();
795
8.90k
        if (exec_status.ok()) {
796
8.85k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
8.85k
                                                       : Status::Cancelled("force close"));
798
8.85k
        } else {
799
46
            _writer->force_close(exec_status);
800
46
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
8.90k
        RETURN_IF_ERROR(st);
805
8.90k
    }
806
8.90k
    return Base::close(state, exec_status);
807
8.90k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
5.15k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
5.15k
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
5.15k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
5.15k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
5.15k
    if (_writer) {
794
5.15k
        Status st = _writer->get_writer_status();
795
5.15k
        if (exec_status.ok()) {
796
5.15k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
5.15k
                                                       : Status::Cancelled("force close"));
798
5.15k
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
5.15k
        RETURN_IF_ERROR(st);
805
5.15k
    }
806
5.15k
    return Base::close(state, exec_status);
807
5.15k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
3.38k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
3.38k
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
3.38k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
3.38k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
3.38k
    if (_writer) {
794
3.38k
        Status st = _writer->get_writer_status();
795
3.38k
        if (exec_status.ok()) {
796
3.38k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
3.38k
                                                       : Status::Cancelled("force close"));
798
3.38k
        } else {
799
2
            _writer->force_close(exec_status);
800
2
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
3.38k
        RETURN_IF_ERROR(st);
805
3.38k
    }
806
3.38k
    return Base::close(state, exec_status);
807
3.38k
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
160
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
160
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
160
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
160
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
160
    if (_writer) {
794
160
        Status st = _writer->get_writer_status();
795
160
        if (exec_status.ok()) {
796
160
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
160
                                                       : Status::Cancelled("force close"));
798
160
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
160
        RETURN_IF_ERROR(st);
805
160
    }
806
160
    return Base::close(state, exec_status);
807
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
640
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
640
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
640
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
640
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
640
    if (_writer) {
794
640
        Status st = _writer->get_writer_status();
795
640
        if (exec_status.ok()) {
796
640
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
640
                                                       : Status::Cancelled("force close"));
798
640
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
640
        RETURN_IF_ERROR(st);
805
640
    }
806
640
    return Base::close(state, exec_status);
807
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
786
156
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
787
156
    if (_closed) {
788
0
        return Status::OK();
789
0
    }
790
156
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
791
156
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
792
    // if the init failed, the _writer may be nullptr. so here need check
793
156
    if (_writer) {
794
156
        Status st = _writer->get_writer_status();
795
156
        if (exec_status.ok()) {
796
156
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
797
156
                                                       : Status::Cancelled("force close"));
798
156
        } else {
799
0
            _writer->force_close(exec_status);
800
0
        }
801
        // If there is an error in process_block thread, then we should get the writer
802
        // status before call force_close. For example, the thread may failed in commit
803
        // transaction.
804
156
        RETURN_IF_ERROR(st);
805
156
    }
806
156
    return Base::close(state, exec_status);
807
156
}
808
809
#define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>;
810
DECLARE_OPERATOR(HashJoinBuildSinkLocalState)
811
DECLARE_OPERATOR(ResultSinkLocalState)
812
DECLARE_OPERATOR(JdbcTableSinkLocalState)
813
DECLARE_OPERATOR(MemoryScratchSinkLocalState)
814
DECLARE_OPERATOR(ResultFileSinkLocalState)
815
DECLARE_OPERATOR(OlapTableSinkLocalState)
816
DECLARE_OPERATOR(OlapTableSinkV2LocalState)
817
DECLARE_OPERATOR(HiveTableSinkLocalState)
818
DECLARE_OPERATOR(TVFTableSinkLocalState)
819
DECLARE_OPERATOR(IcebergTableSinkLocalState)
820
DECLARE_OPERATOR(SpillIcebergTableSinkLocalState)
821
DECLARE_OPERATOR(IcebergDeleteSinkLocalState)
822
DECLARE_OPERATOR(IcebergMergeSinkLocalState)
823
DECLARE_OPERATOR(MCTableSinkLocalState)
824
DECLARE_OPERATOR(AnalyticSinkLocalState)
825
DECLARE_OPERATOR(BlackholeSinkLocalState)
826
DECLARE_OPERATOR(SortSinkLocalState)
827
DECLARE_OPERATOR(SpillSortSinkLocalState)
828
DECLARE_OPERATOR(LocalExchangeSinkLocalState)
829
DECLARE_OPERATOR(AggSinkLocalState)
830
DECLARE_OPERATOR(BucketedAggSinkLocalState)
831
DECLARE_OPERATOR(PartitionedAggSinkLocalState)
832
DECLARE_OPERATOR(ExchangeSinkLocalState)
833
DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState)
834
DECLARE_OPERATOR(UnionSinkLocalState)
835
DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState)
836
DECLARE_OPERATOR(PartitionSortSinkLocalState)
837
DECLARE_OPERATOR(SetProbeSinkLocalState<true>)
838
DECLARE_OPERATOR(SetProbeSinkLocalState<false>)
839
DECLARE_OPERATOR(SetSinkLocalState<true>)
840
DECLARE_OPERATOR(SetSinkLocalState<false>)
841
DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState)
842
DECLARE_OPERATOR(GroupCommitBlockSinkLocalState)
843
DECLARE_OPERATOR(CacheSinkLocalState)
844
DECLARE_OPERATOR(DictSinkLocalState)
845
DECLARE_OPERATOR(RecCTESinkLocalState)
846
DECLARE_OPERATOR(RecCTEAnchorSinkLocalState)
847
848
#undef DECLARE_OPERATOR
849
850
#define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>;
851
DECLARE_OPERATOR(HashJoinProbeLocalState)
852
DECLARE_OPERATOR(OlapScanLocalState)
853
DECLARE_OPERATOR(GroupCommitLocalState)
854
DECLARE_OPERATOR(JDBCScanLocalState)
855
DECLARE_OPERATOR(FileScanLocalState)
856
DECLARE_OPERATOR(AnalyticLocalState)
857
DECLARE_OPERATOR(SortLocalState)
858
DECLARE_OPERATOR(SpillSortLocalState)
859
DECLARE_OPERATOR(LocalMergeSortLocalState)
860
DECLARE_OPERATOR(AggLocalState)
861
DECLARE_OPERATOR(BucketedAggLocalState)
862
DECLARE_OPERATOR(PartitionedAggLocalState)
863
DECLARE_OPERATOR(TableFunctionLocalState)
864
DECLARE_OPERATOR(ExchangeLocalState)
865
DECLARE_OPERATOR(RepeatLocalState)
866
DECLARE_OPERATOR(NestedLoopJoinProbeLocalState)
867
DECLARE_OPERATOR(AssertNumRowsLocalState)
868
DECLARE_OPERATOR(EmptySetLocalState)
869
DECLARE_OPERATOR(UnionSourceLocalState)
870
DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState)
871
DECLARE_OPERATOR(PartitionSortSourceLocalState)
872
DECLARE_OPERATOR(SetSourceLocalState<true>)
873
DECLARE_OPERATOR(SetSourceLocalState<false>)
874
DECLARE_OPERATOR(DataGenLocalState)
875
DECLARE_OPERATOR(SchemaScanLocalState)
876
DECLARE_OPERATOR(MetaScanLocalState)
877
DECLARE_OPERATOR(LocalExchangeSourceLocalState)
878
DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState)
879
DECLARE_OPERATOR(CacheSourceLocalState)
880
DECLARE_OPERATOR(RecCTESourceLocalState)
881
DECLARE_OPERATOR(RecCTEScanLocalState)
882
883
#ifdef BE_TEST
884
DECLARE_OPERATOR(MockLocalState)
885
DECLARE_OPERATOR(MockScanLocalState)
886
#endif
887
#undef DECLARE_OPERATOR
888
889
template class StreamingOperatorX<AssertNumRowsLocalState>;
890
template class StreamingOperatorX<SelectLocalState>;
891
892
template class StatefulOperatorX<HashJoinProbeLocalState>;
893
template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>;
894
template class StatefulOperatorX<RepeatLocalState>;
895
template class StatefulOperatorX<MaterializationLocalState>;
896
template class StatefulOperatorX<StreamingAggLocalState>;
897
template class StatefulOperatorX<DistinctStreamingAggLocalState>;
898
template class StatefulOperatorX<NestedLoopJoinProbeLocalState>;
899
template class StatefulOperatorX<TableFunctionLocalState>;
900
901
template class PipelineXSinkLocalState<HashJoinSharedState>;
902
template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>;
903
template class PipelineXSinkLocalState<SortSharedState>;
904
template class PipelineXSinkLocalState<SpillSortSharedState>;
905
template class PipelineXSinkLocalState<NestedLoopJoinSharedState>;
906
template class PipelineXSinkLocalState<AnalyticSharedState>;
907
template class PipelineXSinkLocalState<AggSharedState>;
908
template class PipelineXSinkLocalState<BucketedAggSharedState>;
909
template class PipelineXSinkLocalState<PartitionedAggSharedState>;
910
template class PipelineXSinkLocalState<FakeSharedState>;
911
template class PipelineXSinkLocalState<UnionSharedState>;
912
template class PipelineXSinkLocalState<PartitionSortNodeSharedState>;
913
template class PipelineXSinkLocalState<MultiCastSharedState>;
914
template class PipelineXSinkLocalState<SetSharedState>;
915
template class PipelineXSinkLocalState<LocalExchangeSharedState>;
916
template class PipelineXSinkLocalState<BasicSharedState>;
917
template class PipelineXSinkLocalState<DataQueueSharedState>;
918
template class PipelineXSinkLocalState<RecCTESharedState>;
919
920
template class PipelineXLocalState<HashJoinSharedState>;
921
template class PipelineXLocalState<PartitionedHashJoinSharedState>;
922
template class PipelineXLocalState<SortSharedState>;
923
template class PipelineXLocalState<SpillSortSharedState>;
924
template class PipelineXLocalState<NestedLoopJoinSharedState>;
925
template class PipelineXLocalState<AnalyticSharedState>;
926
template class PipelineXLocalState<AggSharedState>;
927
template class PipelineXLocalState<BucketedAggSharedState>;
928
template class PipelineXLocalState<PartitionedAggSharedState>;
929
template class PipelineXLocalState<FakeSharedState>;
930
template class PipelineXLocalState<UnionSharedState>;
931
template class PipelineXLocalState<DataQueueSharedState>;
932
template class PipelineXLocalState<MultiCastSharedState>;
933
template class PipelineXLocalState<PartitionSortNodeSharedState>;
934
template class PipelineXLocalState<SetSharedState>;
935
template class PipelineXLocalState<LocalExchangeSharedState>;
936
template class PipelineXLocalState<BasicSharedState>;
937
template class PipelineXLocalState<RecCTESharedState>;
938
939
template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>;
940
template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>;
941
template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>;
942
template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>;
943
template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>;
944
template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>;
945
template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>;
946
template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>;
947
template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>;
948
template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>;
949
template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>;
950
951
#ifdef BE_TEST
952
template class OperatorX<DummyOperatorLocalState>;
953
template class DataSinkOperatorX<DummySinkLocalState>;
954
#endif
955
956
} // namespace doris