Coverage Report

Created: 2026-07-29 04:43

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