Coverage Report

Created: 2026-07-14 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exec/operator/operator.cpp
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#include "exec/operator/operator.h"
19
20
#include <algorithm>
21
22
#include "common/status.h"
23
#include "exec/common/util.hpp"
24
#include "exec/exchange/local_exchange_sink_operator.h"
25
#include "exec/exchange/local_exchange_source_operator.h"
26
#include "exec/operator/aggregation_sink_operator.h"
27
#include "exec/operator/aggregation_source_operator.h"
28
#include "exec/operator/analytic_sink_operator.h"
29
#include "exec/operator/analytic_source_operator.h"
30
#include "exec/operator/assert_num_rows_operator.h"
31
#include "exec/operator/blackhole_sink_operator.h"
32
#include "exec/operator/bucketed_aggregation_sink_operator.h"
33
#include "exec/operator/bucketed_aggregation_source_operator.h"
34
#include "exec/operator/cache_sink_operator.h"
35
#include "exec/operator/cache_source_operator.h"
36
#include "exec/operator/datagen_operator.h"
37
#include "exec/operator/dict_sink_operator.h"
38
#include "exec/operator/distinct_streaming_aggregation_operator.h"
39
#include "exec/operator/empty_set_operator.h"
40
#include "exec/operator/exchange_sink_operator.h"
41
#include "exec/operator/exchange_source_operator.h"
42
#include "exec/operator/file_scan_operator.h"
43
#include "exec/operator/group_commit_block_sink_operator.h"
44
#include "exec/operator/group_commit_scan_operator.h"
45
#include "exec/operator/hashjoin_build_sink.h"
46
#include "exec/operator/hashjoin_probe_operator.h"
47
#include "exec/operator/hive_table_sink_operator.h"
48
#include "exec/operator/iceberg_delete_sink_operator.h"
49
#include "exec/operator/iceberg_merge_sink_operator.h"
50
#include "exec/operator/iceberg_table_sink_operator.h"
51
#include "exec/operator/jdbc_scan_operator.h"
52
#include "exec/operator/jdbc_table_sink_operator.h"
53
#include "exec/operator/local_merge_sort_source_operator.h"
54
#include "exec/operator/materialization_opertor.h"
55
#include "exec/operator/maxcompute_table_sink_operator.h"
56
#include "exec/operator/memory_scratch_sink_operator.h"
57
#include "exec/operator/meta_scan_operator.h"
58
#include "exec/operator/mock_operator.h"
59
#include "exec/operator/mock_scan_operator.h"
60
#include "exec/operator/multi_cast_data_stream_sink.h"
61
#include "exec/operator/multi_cast_data_stream_source.h"
62
#include "exec/operator/nested_loop_join_build_operator.h"
63
#include "exec/operator/nested_loop_join_probe_operator.h"
64
#include "exec/operator/olap_scan_operator.h"
65
#include "exec/operator/olap_table_sink_operator.h"
66
#include "exec/operator/olap_table_sink_v2_operator.h"
67
#include "exec/operator/partition_sort_sink_operator.h"
68
#include "exec/operator/partition_sort_source_operator.h"
69
#include "exec/operator/partitioned_aggregation_sink_operator.h"
70
#include "exec/operator/partitioned_aggregation_source_operator.h"
71
#include "exec/operator/partitioned_hash_join_probe_operator.h"
72
#include "exec/operator/partitioned_hash_join_sink_operator.h"
73
#include "exec/operator/rec_cte_anchor_sink_operator.h"
74
#include "exec/operator/rec_cte_scan_operator.h"
75
#include "exec/operator/rec_cte_sink_operator.h"
76
#include "exec/operator/rec_cte_source_operator.h"
77
#include "exec/operator/repeat_operator.h"
78
#include "exec/operator/result_file_sink_operator.h"
79
#include "exec/operator/result_sink_operator.h"
80
#include "exec/operator/schema_scan_operator.h"
81
#include "exec/operator/select_operator.h"
82
#include "exec/operator/set_probe_sink_operator.h"
83
#include "exec/operator/set_sink_operator.h"
84
#include "exec/operator/set_source_operator.h"
85
#include "exec/operator/sort_sink_operator.h"
86
#include "exec/operator/sort_source_operator.h"
87
#include "exec/operator/spill_iceberg_table_sink_operator.h"
88
#include "exec/operator/spill_sort_sink_operator.h"
89
#include "exec/operator/spill_sort_source_operator.h"
90
#include "exec/operator/streaming_aggregation_operator.h"
91
#include "exec/operator/table_function_operator.h"
92
#include "exec/operator/tvf_table_sink_operator.h"
93
#include "exec/operator/union_sink_operator.h"
94
#include "exec/operator/union_source_operator.h"
95
#include "exec/pipeline/dependency.h"
96
#include "exec/pipeline/pipeline.h"
97
#include "exprs/vexpr.h"
98
#include "exprs/vexpr_context.h"
99
#include "runtime/runtime_profile.h"
100
#include "runtime/runtime_profile_counter_names.h"
101
#include "util/debug_util.h"
102
#include "util/string_util.h"
103
104
namespace doris {
105
class RowDescriptor;
106
class RuntimeState;
107
} // namespace doris
108
109
namespace doris {
110
111
0
Status OperatorBase::close(RuntimeState* state) {
112
0
    if (_is_closed) {
113
0
        return Status::OK();
114
0
    }
115
0
    _is_closed = true;
116
0
    return Status::OK();
117
0
}
118
119
template <typename SharedStateArg>
120
2.15M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.15M
    if (_parent->nereids_id() == -1) {
122
1.13M
        return fmt::format("(id={})", _parent->node_id());
123
1.13M
    } else {
124
1.01M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.01M
    }
126
2.15M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
70.8k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
70.8k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
70.8k
    } else {
124
70.8k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
70.8k
    }
126
70.8k
}
_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
247k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
247k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
247k
    } else {
124
247k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
247k
    }
126
247k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
26
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
26
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
26
    } else {
124
26
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
26
    }
126
26
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
10.4k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.4k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
10.4k
    } else {
124
10.4k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
10.4k
    }
126
10.4k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
7.84k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
7.84k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
7.83k
    } else {
124
7.83k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
7.83k
    }
126
7.84k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
151k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
151k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
151k
    } else {
124
151k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
151k
    }
126
151k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
462
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
462
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
462
    } else {
124
462
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
462
    }
126
462
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
116
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
116
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
116
    } else {
124
116
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
116
    }
126
116
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
842k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
842k
    if (_parent->nereids_id() == -1) {
122
377k
        return fmt::format("(id={})", _parent->node_id());
123
464k
    } else {
124
464k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
464k
    }
126
842k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
56.3k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
56.3k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
56.3k
    } else {
124
56.3k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
56.3k
    }
126
56.3k
}
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
17
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
17
    if (_parent->nereids_id() == -1) {
122
17
        return fmt::format("(id={})", _parent->node_id());
123
17
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
17
}
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.4k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.4k
    if (_parent->nereids_id() == -1) {
122
11.4k
        return fmt::format("(id={})", _parent->node_id());
123
11.4k
    } else {
124
2
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
2
    }
126
11.4k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
498
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
498
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
396
    } else {
124
396
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
396
    }
126
498
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
4.89k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
4.89k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
4.87k
    } else {
124
4.87k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
4.87k
    }
126
4.89k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
750k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
750k
    if (_parent->nereids_id() == -1) {
122
749k
        return fmt::format("(id={})", _parent->node_id());
123
749k
    } else {
124
120
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
120
    }
126
750k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
164
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
164
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
164
    } else {
124
164
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
164
    }
126
164
}
127
128
template <typename SharedStateArg>
129
1.34M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.34M
    if (_parent->nereids_id() == -1) {
131
802k
        return fmt::format("(id={})", _parent->node_id());
132
802k
    } else {
133
547k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
547k
    }
135
1.34M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
119k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
119k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
119k
    } else {
133
119k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
119k
    }
135
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_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
248k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
248k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
248k
    } else {
133
248k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
248k
    }
135
248k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
33
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
33
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
33
    } else {
133
33
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
33
    }
135
33
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
10.4k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
10.4k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
10.4k
    } else {
133
10.4k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
10.4k
    }
135
10.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.87k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.87k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
7.86k
    } else {
133
7.86k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.86k
    }
135
7.87k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
152k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
152k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
152k
    } else {
133
152k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
152k
    }
135
152k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
457
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
457
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
457
    } else {
133
457
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
457
    }
135
457
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
126
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
126
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
126
    } else {
133
126
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
126
    }
135
126
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
86
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
86
    if (_parent->nereids_id() == -1) {
131
86
        return fmt::format("(id={})", _parent->node_id());
132
86
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
86
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.71k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.71k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
7.71k
    } else {
133
7.71k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.71k
    }
135
7.71k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
499
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
499
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
397
    } else {
133
397
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
397
    }
135
499
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.1k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.1k
    if (_parent->nereids_id() == -1) {
131
12.1k
        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.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
289k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
290k
    if (_parent->nereids_id() == -1) {
131
290k
        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
289k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
499k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
499k
    if (_parent->nereids_id() == -1) {
131
499k
        return fmt::format("(id={})", _parent->node_id());
132
499k
    } else {
133
237
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
237
    }
135
499k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
17
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
17
    if (_parent->nereids_id() == -1) {
131
17
        return fmt::format("(id={})", _parent->node_id());
132
17
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
328
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
328
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
328
    } else {
133
328
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
328
    }
135
328
}
136
137
template <typename SharedStateArg>
138
29.7k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
29.7k
    if (_terminated) {
140
2
        return Status::OK();
141
2
    }
142
29.7k
    _terminated = true;
143
29.7k
    return Status::OK();
144
29.7k
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
24.0k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
24.0k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
24.0k
    _terminated = true;
143
24.0k
    return Status::OK();
144
24.0k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.26k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.26k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1.26k
    _terminated = true;
143
1.26k
    return Status::OK();
144
1.26k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
3
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
3
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
3
    _terminated = true;
143
3
    return Status::OK();
144
3
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.77k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.77k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.77k
    _terminated = true;
143
2.77k
    return Status::OK();
144
2.77k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
668
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
668
    if (_terminated) {
140
2
        return Status::OK();
141
2
    }
142
666
    _terminated = true;
143
666
    return Status::OK();
144
668
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
5
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
5
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
5
    _terminated = true;
143
5
    return Status::OK();
144
5
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2
    _terminated = true;
143
2
    return Status::OK();
144
2
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
721
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
721
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
721
    _terminated = true;
143
721
    return Status::OK();
144
721
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
162
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
162
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
162
    _terminated = true;
143
162
    return Status::OK();
144
162
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
142
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
142
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
142
    _terminated = true;
143
142
    return Status::OK();
144
142
}
145
146
428k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
428k
    return _child && _child->is_serial_operator() && !is_source()
148
428k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
428k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
428k
}
151
152
40.6k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
40.6k
    if (!_child) {
154
35.6k
        return false;
155
35.6k
    }
156
5.00k
    if (_child->is_serial_operator()) {
157
211
        return true;
158
211
    }
159
4.79k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.79k
    return child_distribution.need_local_exchange() &&
161
4.79k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.00k
}
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
20.8k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.8k
    fmt::memory_buffer debug_string_buffer;
171
20.8k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.8k
    return fmt::to_string(debug_string_buffer);
173
20.8k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
134
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
134
    fmt::memory_buffer debug_string_buffer;
171
134
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
134
    return fmt::to_string(debug_string_buffer);
173
134
}
_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
37
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
37
    fmt::memory_buffer debug_string_buffer;
171
37
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
37
    return fmt::to_string(debug_string_buffer);
173
37
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
21
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
21
    fmt::memory_buffer debug_string_buffer;
171
21
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
21
    return fmt::to_string(debug_string_buffer);
173
21
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
58
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
58
    fmt::memory_buffer debug_string_buffer;
171
58
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
58
    return fmt::to_string(debug_string_buffer);
173
58
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
20.3k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
20.3k
    fmt::memory_buffer debug_string_buffer;
171
20.3k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
20.3k
    return fmt::to_string(debug_string_buffer);
173
20.3k
}
_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
242
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
242
    fmt::memory_buffer debug_string_buffer;
171
242
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
242
    return fmt::to_string(debug_string_buffer);
173
242
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
20.7k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.7k
    fmt::memory_buffer debug_string_buffer;
178
20.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.7k
    return fmt::to_string(debug_string_buffer);
180
20.7k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
14
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
14
    fmt::memory_buffer debug_string_buffer;
178
14
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
14
    return fmt::to_string(debug_string_buffer);
180
14
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
37
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
37
    fmt::memory_buffer debug_string_buffer;
178
37
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
37
    return fmt::to_string(debug_string_buffer);
180
37
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
14
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
14
    fmt::memory_buffer debug_string_buffer;
178
14
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
14
    return fmt::to_string(debug_string_buffer);
180
14
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
58
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
58
    fmt::memory_buffer debug_string_buffer;
178
58
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
58
    return fmt::to_string(debug_string_buffer);
180
58
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
159
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
159
    fmt::memory_buffer debug_string_buffer;
178
159
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
159
    return fmt::to_string(debug_string_buffer);
180
159
}
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
134
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
134
    fmt::memory_buffer debug_string_buffer;
178
134
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
134
    return fmt::to_string(debug_string_buffer);
180
134
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
20.2k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
20.2k
    fmt::memory_buffer debug_string_buffer;
178
20.2k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
20.2k
    return fmt::to_string(debug_string_buffer);
180
20.2k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
20.9k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
20.9k
    fmt::memory_buffer debug_string_buffer;
184
20.9k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
20.9k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
20.9k
                   _is_serial_operator);
187
20.9k
    return fmt::to_string(debug_string_buffer);
188
20.9k
}
189
190
20.8k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
20.8k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
20.8k
}
193
194
832k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
832k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
832k
    _nereids_id = tnode.nereids_id;
197
832k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.02k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.02k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.02k
            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.02k
    }
210
832k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
832k
    _op_name = substr + "_OPERATOR";
212
213
832k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
832k
    } else if (tnode.__isset.conjuncts) {
216
446k
        for (const auto& conjunct : tnode.conjuncts) {
217
446k
            VExprContextSPtr context;
218
446k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
446k
            _conjuncts.emplace_back(context);
220
446k
        }
221
146k
    }
222
223
    // create the projections expr
224
832k
    if (tnode.__isset.projections) {
225
319k
        DCHECK(tnode.__isset.output_tuple_id);
226
319k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
319k
    }
228
832k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.03k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.03k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.10k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.10k
            VExprContextSPtrs projections;
233
8.10k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.10k
            _intermediate_projections.push_back(projections);
235
8.10k
        }
236
4.03k
    }
237
832k
    return Status::OK();
238
832k
}
239
240
864k
Status OperatorXBase::prepare(RuntimeState* state) {
241
864k
    for (auto& conjunct : _conjuncts) {
242
446k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
446k
    }
244
864k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
811k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
588k
            return a->execute_cost() < b->execute_cost();
247
588k
        });
248
811k
    };
249
250
872k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.10k
        RETURN_IF_ERROR(
252
8.10k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.10k
    }
254
864k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
864k
    if (has_output_row_desc()) {
257
319k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
319k
    }
259
260
864k
    for (auto& conjunct : _conjuncts) {
261
446k
        RETURN_IF_ERROR(conjunct->open(state));
262
446k
    }
263
864k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
864k
    for (auto& projections : _intermediate_projections) {
265
8.10k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.10k
    }
267
864k
    if (_child && !is_source()) {
268
136k
        RETURN_IF_ERROR(_child->prepare(state));
269
136k
    }
270
271
864k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
864k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
864k
    return Status::OK();
277
864k
}
278
279
6.96k
Status OperatorXBase::terminate(RuntimeState* state) {
280
6.96k
    if (_child && !is_source()) {
281
1.20k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.20k
    }
283
6.96k
    auto result = state->get_local_state_result(operator_id());
284
6.96k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
6.96k
    return result.value()->terminate(state);
288
6.96k
}
289
290
6.02M
Status OperatorXBase::close(RuntimeState* state) {
291
6.02M
    if (_child && !is_source()) {
292
1.07M
        RETURN_IF_ERROR(_child->close(state));
293
1.07M
    }
294
6.02M
    auto result = state->get_local_state_result(operator_id());
295
6.02M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.02M
    return result.value()->close(state);
299
6.02M
}
300
301
302k
void PipelineXLocalStateBase::clear_origin_block() {
302
302k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
302k
}
304
305
600k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
600k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
600k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
600k
    return Status::OK();
310
600k
}
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
302k
                                     Block* output_block) const {
319
302k
    auto* local_state = state->get_local_state(operator_id());
320
302k
    SCOPED_TIMER(local_state->exec_time_counter());
321
302k
    SCOPED_TIMER(local_state->_projection_timer);
322
302k
    const size_t rows = origin_block->rows();
323
302k
    if (rows == 0) {
324
157k
        return Status::OK();
325
157k
    }
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.64k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.64k
        new_columns.resize(projections.size());
336
11.2k
        for (int i = 0; i < projections.size(); i++) {
337
9.64k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
9.64k
            if (new_columns[i].column->size() != rows) {
339
0
                return Status::InternalError(
340
0
                        "intermediate projection result column size {} not equal input rows {}, "
341
0
                        "expr: {}",
342
0
                        new_columns[i].column->size(), rows,
343
0
                        projections[i]->root()->debug_string());
344
0
            }
345
9.64k
        }
346
1.64k
        Block tmp_block {new_columns};
347
1.64k
        bytes_usage += tmp_block.allocated_bytes();
348
1.64k
        input_block.swap(tmp_block);
349
1.64k
    }
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
691k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
691k
        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
691k
        } else {
368
691k
            if (_keep_origin || !from->is_exclusive()) {
369
691k
                to->insert_range_from(*from, 0, rows);
370
691k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
691k
        }
375
691k
    };
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
144k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
836k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
691k
            ColumnPtr column_ptr;
385
691k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
691k
            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
691k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
691k
            bytes_usage += column_ptr->allocated_bytes();
394
691k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
691k
        }
396
144k
        DCHECK(mutable_block.rows() == rows);
397
144k
    }
398
144k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
144k
    return Status::OK();
401
145k
}
402
403
4.70M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.70M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.70M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.70M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.70M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.70M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.70M
            if (_debug_point_count++ % 2 == 0) {
410
4.70M
                return Status::OK();
411
4.70M
            }
412
4.70M
        }
413
4.70M
    });
414
415
4.70M
    Status status;
416
4.70M
    auto* local_state = state->get_local_state(operator_id());
417
4.70M
    Defer defer([&]() {
418
4.70M
        if (status.ok()) {
419
4.70M
            local_state->update_output_block_counters(*block);
420
4.70M
        }
421
4.70M
    });
422
4.70M
    if (_output_row_descriptor) {
423
301k
        local_state->clear_origin_block();
424
301k
        status = get_block(state, &local_state->_origin_block, eos);
425
301k
        if (UNLIKELY(!status.ok())) {
426
26
            return status;
427
26
        }
428
301k
        status = do_projections(state, &local_state->_origin_block, block);
429
301k
        return status;
430
301k
    }
431
4.40M
    status = get_block(state, block, eos);
432
4.40M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.40M
    return status;
434
4.40M
}
435
436
3.16M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.16M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
6.93k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
6.93k
        *eos = true;
440
6.93k
    }
441
442
3.16M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.16M
        auto op_name = to_lower(_parent->_op_name);
444
3.16M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.16M
        arg_op_name = to_lower(arg_op_name);
446
447
3.16M
        if (op_name == arg_op_name) {
448
3.16M
            *eos = true;
449
3.16M
        }
450
3.16M
    });
451
452
3.16M
    if (auto rows = block->rows()) {
453
915k
        _num_rows_returned += rows;
454
915k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
915k
    }
456
3.16M
}
457
458
29.7k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
29.7k
    auto result = state->get_sink_local_state_result();
460
29.7k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
29.7k
    return result.value()->terminate(state);
464
29.7k
}
465
466
20.7k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
20.7k
    fmt::memory_buffer debug_string_buffer;
468
469
20.7k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
20.7k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
20.7k
    return fmt::to_string(debug_string_buffer);
472
20.7k
}
473
474
20.7k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
20.7k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
20.7k
}
477
478
458k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
458k
    std::string op_name = "UNKNOWN_SINK";
480
458k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
458k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
458k
        op_name = it->second;
484
458k
    }
485
458k
    _name = op_name + "_OPERATOR";
486
458k
    return Status::OK();
487
458k
}
488
489
315k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
315k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
315k
    _nereids_id = tnode.nereids_id;
492
315k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
315k
    _name = substr + "_SINK_OPERATOR";
494
315k
    return Status::OK();
495
315k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.03M
                                                            LocalSinkStateInfo& info) {
500
2.03M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.03M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.03M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.03M
    return Status::OK();
504
2.03M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
119k
                                                            LocalSinkStateInfo& info) {
500
119k
    auto local_state = LocalStateType::create_unique(this, state);
501
119k
    RETURN_IF_ERROR(local_state->init(state, info));
502
119k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
119k
    return Status::OK();
504
119k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
433k
                                                            LocalSinkStateInfo& info) {
500
433k
    auto local_state = LocalStateType::create_unique(this, state);
501
433k
    RETURN_IF_ERROR(local_state->init(state, info));
502
433k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
433k
    return Status::OK();
504
433k
}
_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
517
                                                            LocalSinkStateInfo& info) {
500
517
    auto local_state = LocalStateType::create_unique(this, state);
501
517
    RETURN_IF_ERROR(local_state->init(state, info));
502
517
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
517
    return Status::OK();
504
517
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
46.7k
                                                            LocalSinkStateInfo& info) {
500
46.7k
    auto local_state = LocalStateType::create_unique(this, state);
501
46.7k
    RETURN_IF_ERROR(local_state->init(state, info));
502
46.7k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
46.7k
    return Status::OK();
504
46.7k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.36k
                                                            LocalSinkStateInfo& info) {
500
9.36k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.36k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.36k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.36k
    return Status::OK();
504
9.36k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.17k
                                                            LocalSinkStateInfo& info) {
500
5.17k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.17k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.17k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.17k
    return Status::OK();
504
5.17k
}
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
156
                                                            LocalSinkStateInfo& info) {
500
156
    auto local_state = LocalStateType::create_unique(this, state);
501
156
    RETURN_IF_ERROR(local_state->init(state, info));
502
156
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
156
    return Status::OK();
504
156
}
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.40k
                                                            LocalSinkStateInfo& info) {
500
3.40k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.40k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.40k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.40k
    return Status::OK();
504
3.40k
}
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
32
                                                            LocalSinkStateInfo& info) {
500
32
    auto local_state = LocalStateType::create_unique(this, state);
501
32
    RETURN_IF_ERROR(local_state->init(state, info));
502
32
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
32
    return Status::OK();
504
32
}
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
176
                                                            LocalSinkStateInfo& info) {
500
176
    auto local_state = LocalStateType::create_unique(this, state);
501
176
    RETURN_IF_ERROR(local_state->init(state, info));
502
176
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
176
    return Status::OK();
504
176
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
640
                                                            LocalSinkStateInfo& info) {
500
640
    auto local_state = LocalStateType::create_unique(this, state);
501
640
    RETURN_IF_ERROR(local_state->init(state, info));
502
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
640
    return Status::OK();
504
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.86k
                                                            LocalSinkStateInfo& info) {
500
7.86k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.86k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.86k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.86k
    return Status::OK();
504
7.86k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
83
                                                            LocalSinkStateInfo& info) {
500
83
    auto local_state = LocalStateType::create_unique(this, state);
501
83
    RETURN_IF_ERROR(local_state->init(state, info));
502
83
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
83
    return Status::OK();
504
83
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
248k
                                                            LocalSinkStateInfo& info) {
500
248k
    auto local_state = LocalStateType::create_unique(this, state);
501
248k
    RETURN_IF_ERROR(local_state->init(state, info));
502
248k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
248k
    return Status::OK();
504
248k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
33
                                                            LocalSinkStateInfo& info) {
500
33
    auto local_state = LocalStateType::create_unique(this, state);
501
33
    RETURN_IF_ERROR(local_state->init(state, info));
502
33
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
33
    return Status::OK();
504
33
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
290k
                                                            LocalSinkStateInfo& info) {
500
290k
    auto local_state = LocalStateType::create_unique(this, state);
501
290k
    RETURN_IF_ERROR(local_state->init(state, info));
502
290k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
290k
    return Status::OK();
504
290k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
152k
                                                            LocalSinkStateInfo& info) {
500
152k
    auto local_state = LocalStateType::create_unique(this, state);
501
152k
    RETURN_IF_ERROR(local_state->init(state, info));
502
152k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
152k
    return Status::OK();
504
152k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
457
                                                            LocalSinkStateInfo& info) {
500
457
    auto local_state = LocalStateType::create_unique(this, state);
501
457
    RETURN_IF_ERROR(local_state->init(state, info));
502
457
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
457
    return Status::OK();
504
457
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
126
                                                            LocalSinkStateInfo& info) {
500
126
    auto local_state = LocalStateType::create_unique(this, state);
501
126
    RETURN_IF_ERROR(local_state->init(state, info));
502
126
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
126
    return Status::OK();
504
126
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
682k
                                                            LocalSinkStateInfo& info) {
500
682k
    auto local_state = LocalStateType::create_unique(this, state);
501
682k
    RETURN_IF_ERROR(local_state->init(state, info));
502
682k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
682k
    return Status::OK();
504
682k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
10.4k
                                                            LocalSinkStateInfo& info) {
500
10.4k
    auto local_state = LocalStateType::create_unique(this, state);
501
10.4k
    RETURN_IF_ERROR(local_state->init(state, info));
502
10.4k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
10.4k
    return Status::OK();
504
10.4k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.71k
                                                            LocalSinkStateInfo& info) {
500
7.71k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.71k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.71k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.71k
    return Status::OK();
504
7.71k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.98k
                                                            LocalSinkStateInfo& info) {
500
3.98k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.98k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.98k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.98k
    return Status::OK();
504
3.98k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
396
                                                            LocalSinkStateInfo& info) {
500
396
    auto local_state = LocalStateType::create_unique(this, state);
501
396
    RETURN_IF_ERROR(local_state->init(state, info));
502
396
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
396
    return Status::OK();
504
396
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.63k
                                                            LocalSinkStateInfo& info) {
500
4.63k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.63k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.63k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.63k
    return Status::OK();
504
4.63k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.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_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.49k
                                                            LocalSinkStateInfo& info) {
500
2.49k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.49k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.49k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.49k
    return Status::OK();
504
2.49k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.47k
                                                            LocalSinkStateInfo& info) {
500
2.47k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.47k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.47k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.47k
    return Status::OK();
504
2.47k
}
_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
105
                                                            LocalSinkStateInfo& info) {
500
105
    auto local_state = LocalStateType::create_unique(this, state);
501
105
    RETURN_IF_ERROR(local_state->init(state, info));
502
105
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
105
    return Status::OK();
504
105
}
_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.70M
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.70M
    } else {
515
1.70M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.70M
        ss->id = operator_id();
517
1.70M
        for (auto& dest : dests_id()) {
518
1.70M
            ss->related_op_ids.insert(dest);
519
1.70M
        }
520
1.70M
        return ss;
521
1.70M
    }
522
1.70M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
99.2k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
99.2k
    } else {
515
99.2k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
99.2k
        ss->id = operator_id();
517
99.2k
        for (auto& dest : dests_id()) {
518
99.1k
            ss->related_op_ids.insert(dest);
519
99.1k
        }
520
99.2k
        return ss;
521
99.2k
    }
522
99.2k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
433k
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
433k
    } else {
515
433k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
433k
        ss->id = operator_id();
517
433k
        for (auto& dest : dests_id()) {
518
433k
            ss->related_op_ids.insert(dest);
519
433k
        }
520
433k
        return ss;
521
433k
    }
522
433k
}
_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
517
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
517
    } else {
515
517
        auto ss = LocalStateType::SharedStateType::create_shared();
516
517
        ss->id = operator_id();
517
517
        for (auto& dest : dests_id()) {
518
517
            ss->related_op_ids.insert(dest);
519
517
        }
520
517
        return ss;
521
517
    }
522
517
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
46.7k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
46.7k
    } else {
515
46.7k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
46.7k
        ss->id = operator_id();
517
46.7k
        for (auto& dest : dests_id()) {
518
46.6k
            ss->related_op_ids.insert(dest);
519
46.6k
        }
520
46.7k
        return ss;
521
46.7k
    }
522
46.7k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.36k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
9.36k
    } else {
515
9.36k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.36k
        ss->id = operator_id();
517
9.36k
        for (auto& dest : dests_id()) {
518
9.36k
            ss->related_op_ids.insert(dest);
519
9.36k
        }
520
9.36k
        return ss;
521
9.36k
    }
522
9.36k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
5.17k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
5.17k
    } else {
515
5.17k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
5.17k
        ss->id = operator_id();
517
5.17k
        for (auto& dest : dests_id()) {
518
5.17k
            ss->related_op_ids.insert(dest);
519
5.17k
        }
520
5.17k
        return ss;
521
5.17k
    }
522
5.17k
}
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
156
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
156
    } else {
515
156
        auto ss = LocalStateType::SharedStateType::create_shared();
516
156
        ss->id = operator_id();
517
156
        for (auto& dest : dests_id()) {
518
156
            ss->related_op_ids.insert(dest);
519
156
        }
520
156
        return ss;
521
156
    }
522
156
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
3.40k
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.40k
    } else {
515
3.40k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.40k
        ss->id = operator_id();
517
3.40k
        for (auto& dest : dests_id()) {
518
3.39k
            ss->related_op_ids.insert(dest);
519
3.39k
        }
520
3.40k
        return ss;
521
3.40k
    }
522
3.40k
}
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
32
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
32
    } else {
515
32
        auto ss = LocalStateType::SharedStateType::create_shared();
516
32
        ss->id = operator_id();
517
32
        for (auto& dest : dests_id()) {
518
32
            ss->related_op_ids.insert(dest);
519
32
        }
520
32
        return ss;
521
32
    }
522
32
}
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
176
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
176
    } else {
515
176
        auto ss = LocalStateType::SharedStateType::create_shared();
516
176
        ss->id = operator_id();
517
176
        for (auto& dest : dests_id()) {
518
176
            ss->related_op_ids.insert(dest);
519
176
        }
520
176
        return ss;
521
176
    }
522
176
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
640
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
640
    } else {
515
640
        auto ss = LocalStateType::SharedStateType::create_shared();
516
640
        ss->id = operator_id();
517
640
        for (auto& dest : dests_id()) {
518
640
            ss->related_op_ids.insert(dest);
519
640
        }
520
640
        return ss;
521
640
    }
522
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
7.88k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
7.88k
    } else {
515
7.88k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
7.88k
        ss->id = operator_id();
517
7.88k
        for (auto& dest : dests_id()) {
518
7.88k
            ss->related_op_ids.insert(dest);
519
7.88k
        }
520
7.88k
        return ss;
521
7.88k
    }
522
7.88k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
83
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
83
    } else {
515
83
        auto ss = LocalStateType::SharedStateType::create_shared();
516
83
        ss->id = operator_id();
517
83
        for (auto& dest : dests_id()) {
518
83
            ss->related_op_ids.insert(dest);
519
83
        }
520
83
        return ss;
521
83
    }
522
83
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
249k
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
249k
    } else {
515
249k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
249k
        ss->id = operator_id();
517
249k
        for (auto& dest : dests_id()) {
518
249k
            ss->related_op_ids.insert(dest);
519
249k
        }
520
249k
        return ss;
521
249k
    }
522
249k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
35
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
35
    } else {
515
35
        auto ss = LocalStateType::SharedStateType::create_shared();
516
35
        ss->id = operator_id();
517
35
        for (auto& dest : dests_id()) {
518
35
            ss->related_op_ids.insert(dest);
519
35
        }
520
35
        return ss;
521
35
    }
522
35
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
152k
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
152k
    } else {
515
152k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
152k
        ss->id = operator_id();
517
152k
        for (auto& dest : dests_id()) {
518
152k
            ss->related_op_ids.insert(dest);
519
152k
        }
520
152k
        return ss;
521
152k
    }
522
152k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
125
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
125
    } else {
515
125
        auto ss = LocalStateType::SharedStateType::create_shared();
516
125
        ss->id = operator_id();
517
125
        for (auto& dest : dests_id()) {
518
125
            ss->related_op_ids.insert(dest);
519
125
        }
520
125
        return ss;
521
125
    }
522
125
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
682k
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
682k
    } else {
515
682k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
682k
        ss->id = operator_id();
517
682k
        for (auto& dest : dests_id()) {
518
680k
            ss->related_op_ids.insert(dest);
519
680k
        }
520
682k
        return ss;
521
682k
    }
522
682k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
10.4k
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
10.4k
    } else {
515
10.4k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
10.4k
        ss->id = operator_id();
517
10.4k
        for (auto& dest : dests_id()) {
518
10.4k
            ss->related_op_ids.insert(dest);
519
10.4k
        }
520
10.4k
        return ss;
521
10.4k
    }
522
10.4k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
501
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
501
    } else {
515
501
        auto ss = LocalStateType::SharedStateType::create_shared();
516
501
        ss->id = operator_id();
517
502
        for (auto& dest : dests_id()) {
518
502
            ss->related_op_ids.insert(dest);
519
502
        }
520
501
        return ss;
521
501
    }
522
501
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.51k
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.51k
    } else {
515
2.51k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.51k
        ss->id = operator_id();
517
2.51k
        for (auto& dest : dests_id()) {
518
2.49k
            ss->related_op_ids.insert(dest);
519
2.49k
        }
520
2.51k
        return ss;
521
2.51k
    }
522
2.51k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.49k
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.49k
    } else {
515
2.49k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.49k
        ss->id = operator_id();
517
2.49k
        for (auto& dest : dests_id()) {
518
2.47k
            ss->related_op_ids.insert(dest);
519
2.47k
        }
520
2.49k
        return ss;
521
2.49k
    }
522
2.49k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
568
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
568
    } else {
515
568
        auto ss = LocalStateType::SharedStateType::create_shared();
516
568
        ss->id = operator_id();
517
568
        for (auto& dest : dests_id()) {
518
563
            ss->related_op_ids.insert(dest);
519
563
        }
520
568
        return ss;
521
568
    }
522
568
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
103
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
103
    } else {
515
103
        auto ss = LocalStateType::SharedStateType::create_shared();
516
103
        ss->id = operator_id();
517
105
        for (auto& dest : dests_id()) {
518
105
            ss->related_op_ids.insert(dest);
519
105
        }
520
103
        return ss;
521
103
    }
522
103
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.49M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.49M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.49M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.49M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.49M
    return Status::OK();
530
2.49M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
70.8k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
70.8k
    auto local_state = LocalStateType::create_unique(state, this);
527
70.8k
    RETURN_IF_ERROR(local_state->init(state, info));
528
70.8k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
70.8k
    return Status::OK();
530
70.8k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
304k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
304k
    auto local_state = LocalStateType::create_unique(state, this);
527
304k
    RETURN_IF_ERROR(local_state->init(state, info));
528
304k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
304k
    return Status::OK();
530
304k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
133
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
133
    auto local_state = LocalStateType::create_unique(state, this);
527
133
    RETURN_IF_ERROR(local_state->init(state, info));
528
133
    state->emplace_local_state(operator_id(), std::move(local_state));
529
133
    return Status::OK();
530
133
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
34.4k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
34.4k
    auto local_state = LocalStateType::create_unique(state, this);
527
34.4k
    RETURN_IF_ERROR(local_state->init(state, info));
528
34.4k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
34.4k
    return Status::OK();
530
34.4k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.82k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.82k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.82k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.82k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.82k
    return Status::OK();
530
7.82k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.97k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.97k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.97k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.97k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.97k
    return Status::OK();
530
7.97k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
26
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
26
    auto local_state = LocalStateType::create_unique(state, this);
527
26
    RETURN_IF_ERROR(local_state->init(state, info));
528
26
    state->emplace_local_state(operator_id(), std::move(local_state));
529
26
    return Status::OK();
530
26
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
239k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
239k
    auto local_state = LocalStateType::create_unique(state, this);
527
239k
    RETURN_IF_ERROR(local_state->init(state, info));
528
239k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
239k
    return Status::OK();
530
239k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
151k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
151k
    auto local_state = LocalStateType::create_unique(state, this);
527
151k
    RETURN_IF_ERROR(local_state->init(state, info));
528
151k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
151k
    return Status::OK();
530
151k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
458
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
458
    auto local_state = LocalStateType::create_unique(state, this);
527
458
    RETURN_IF_ERROR(local_state->init(state, info));
528
458
    state->emplace_local_state(operator_id(), std::move(local_state));
529
458
    return Status::OK();
530
458
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
116
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
116
    auto local_state = LocalStateType::create_unique(state, this);
527
116
    RETURN_IF_ERROR(local_state->init(state, info));
528
116
    state->emplace_local_state(operator_id(), std::move(local_state));
529
116
    return Status::OK();
530
116
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
4.48k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
4.48k
    auto local_state = LocalStateType::create_unique(state, this);
527
4.48k
    RETURN_IF_ERROR(local_state->init(state, info));
528
4.48k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
4.48k
    return Status::OK();
530
4.48k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
377k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
377k
    auto local_state = LocalStateType::create_unique(state, this);
527
377k
    RETURN_IF_ERROR(local_state->init(state, info));
528
377k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
377k
    return Status::OK();
530
377k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.18k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.18k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.18k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.18k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.18k
    return Status::OK();
530
1.18k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.3k
    return Status::OK();
530
10.3k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
221
    auto local_state = LocalStateType::create_unique(state, this);
527
221
    RETURN_IF_ERROR(local_state->init(state, info));
528
221
    state->emplace_local_state(operator_id(), std::move(local_state));
529
221
    return Status::OK();
530
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.68k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.68k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.68k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.68k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.68k
    return Status::OK();
530
1.68k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
56.4k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.4k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.4k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.4k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.4k
    return Status::OK();
530
56.4k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.4k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.4k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.4k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.4k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.4k
    return Status::OK();
530
11.4k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
396
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
396
    auto local_state = LocalStateType::create_unique(state, this);
527
396
    RETURN_IF_ERROR(local_state->init(state, info));
528
396
    state->emplace_local_state(operator_id(), std::move(local_state));
529
396
    return Status::OK();
530
396
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.48k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.48k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.48k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.48k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.48k
    return Status::OK();
530
2.48k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.49k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.49k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.49k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.49k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.49k
    return Status::OK();
530
2.49k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
499
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
499
    auto local_state = LocalStateType::create_unique(state, this);
527
499
    RETURN_IF_ERROR(local_state->init(state, info));
528
499
    state->emplace_local_state(operator_id(), std::move(local_state));
529
499
    return Status::OK();
530
499
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.20k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.20k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.20k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.20k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.20k
    return Status::OK();
530
2.20k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
6.54k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
6.54k
    auto local_state = LocalStateType::create_unique(state, this);
527
6.54k
    RETURN_IF_ERROR(local_state->init(state, info));
528
6.54k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
6.54k
    return Status::OK();
530
6.54k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
752k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
752k
    auto local_state = LocalStateType::create_unique(state, this);
527
752k
    RETURN_IF_ERROR(local_state->init(state, info));
528
752k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
752k
    return Status::OK();
530
752k
}
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.74k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.74k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.74k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.74k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.74k
    return Status::OK();
530
1.74k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.86k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.86k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.86k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.86k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.86k
    return Status::OK();
530
2.86k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.3k
    return Status::OK();
530
11.3k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
433k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
433k
    auto local_state = LocalStateType::create_unique(state, this);
527
433k
    RETURN_IF_ERROR(local_state->init(state, info));
528
433k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
433k
    return Status::OK();
530
433k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.03M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.49M
        : _num_rows_returned(0),
538
2.49M
          _rows_returned_counter(nullptr),
539
2.49M
          _parent(parent),
540
2.49M
          _state(state),
541
2.49M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.50M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.50M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.50M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.50M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.50M
    _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.50M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.50M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.50M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.50M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.50M
    if constexpr (!is_fake_shared) {
556
1.32M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
767k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
767k
                                    .first.get()
559
767k
                                    ->template cast<SharedStateArg>();
560
561
767k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
767k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
767k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
767k
        } else if (info.shared_state) {
565
483k
            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
483k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
483k
            _dependency = _shared_state->create_source_dependency(
572
483k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
483k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
483k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
483k
        } else {
576
69.8k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
8.22k
                DCHECK(false);
578
8.22k
            }
579
69.8k
        }
580
1.32M
    }
581
582
2.50M
    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.50M
    _rows_returned_counter =
587
2.50M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.50M
    _blocks_returned_counter =
589
2.50M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.50M
    _output_block_bytes_counter =
591
2.50M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.50M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.50M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.50M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.50M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.50M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.50M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.50M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.50M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.50M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.50M
    _memory_used_counter =
602
2.50M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.50M
    _common_profile->add_info_string("IsColocate",
604
2.50M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.50M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.50M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.50M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.50M
    return Status::OK();
609
2.50M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
71.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
71.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
71.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
71.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
71.0k
    _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
71.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
71.0k
    _operator_profile->add_child(_common_profile.get(), true);
553
71.0k
    _operator_profile->add_child(_custom_profile.get(), true);
554
71.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
71.0k
    if constexpr (!is_fake_shared) {
556
71.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
19.7k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
19.7k
                                    .first.get()
559
19.7k
                                    ->template cast<SharedStateArg>();
560
561
19.7k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
19.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
19.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
51.3k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
50.7k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
50.7k
            _dependency = _shared_state->create_source_dependency(
572
50.7k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
50.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
50.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
50.7k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
509
        }
580
71.0k
    }
581
582
71.0k
    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
71.0k
    _rows_returned_counter =
587
71.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
71.0k
    _blocks_returned_counter =
589
71.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
71.0k
    _output_block_bytes_counter =
591
71.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
71.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
71.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
71.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
71.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
71.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
71.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
71.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
71.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
71.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
71.0k
    _memory_used_counter =
602
71.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
71.0k
    _common_profile->add_info_string("IsColocate",
604
71.0k
                                     std::to_string(_parent->is_colocated_operator()));
605
71.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
71.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
71.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
71.0k
    return Status::OK();
609
71.0k
}
_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
249k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
249k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
249k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
249k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
249k
    _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
249k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
249k
    _operator_profile->add_child(_common_profile.get(), true);
553
249k
    _operator_profile->add_child(_custom_profile.get(), true);
554
249k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
249k
    if constexpr (!is_fake_shared) {
556
249k
        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
249k
        } 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
243k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
243k
            _dependency = _shared_state->create_source_dependency(
572
243k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
243k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
243k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
243k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
6.17k
        }
580
249k
    }
581
582
249k
    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
249k
    _rows_returned_counter =
587
249k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
249k
    _blocks_returned_counter =
589
249k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
249k
    _output_block_bytes_counter =
591
249k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
249k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
249k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
249k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
249k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
249k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
249k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
249k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
249k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
249k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
249k
    _memory_used_counter =
602
249k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
249k
    _common_profile->add_info_string("IsColocate",
604
249k
                                     std::to_string(_parent->is_colocated_operator()));
605
249k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
249k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
249k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
249k
    return Status::OK();
609
249k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_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_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.4k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.4k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.4k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.4k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.4k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
10.4k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.4k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.4k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.4k
    if constexpr (!is_fake_shared) {
556
10.4k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
10.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
10.3k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.3k
            _dependency = _shared_state->create_source_dependency(
572
10.3k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.3k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
78
        }
580
10.4k
    }
581
582
10.4k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
10.4k
    _rows_returned_counter =
587
10.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.4k
    _blocks_returned_counter =
589
10.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.4k
    _output_block_bytes_counter =
591
10.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.4k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.4k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.4k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.4k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.4k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.4k
    _memory_used_counter =
602
10.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.4k
    _common_profile->add_info_string("IsColocate",
604
10.4k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.4k
    return Status::OK();
609
10.4k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
7.87k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
7.87k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
7.87k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
7.87k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
7.87k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
7.87k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
7.87k
    _operator_profile->add_child(_common_profile.get(), true);
553
7.87k
    _operator_profile->add_child(_custom_profile.get(), true);
554
7.87k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
7.87k
    if constexpr (!is_fake_shared) {
556
7.87k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
7.87k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
7.78k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
7.78k
            _dependency = _shared_state->create_source_dependency(
572
7.78k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
7.78k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
7.78k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
7.78k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
94
        }
580
7.87k
    }
581
582
7.87k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
7.87k
    _rows_returned_counter =
587
7.87k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
7.87k
    _blocks_returned_counter =
589
7.87k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
7.87k
    _output_block_bytes_counter =
591
7.87k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
7.87k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
7.87k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
7.87k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
7.87k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
7.87k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
7.87k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
7.87k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
7.87k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
7.87k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
7.87k
    _memory_used_counter =
602
7.87k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
7.87k
    _common_profile->add_info_string("IsColocate",
604
7.87k
                                     std::to_string(_parent->is_colocated_operator()));
605
7.87k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
7.87k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
7.87k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
7.87k
    return Status::OK();
609
7.87k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
152k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
152k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
152k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
152k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
152k
    _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
152k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
152k
    _operator_profile->add_child(_common_profile.get(), true);
553
152k
    _operator_profile->add_child(_custom_profile.get(), true);
554
152k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
152k
    if constexpr (!is_fake_shared) {
556
152k
        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
152k
        } 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
150k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
150k
            _dependency = _shared_state->create_source_dependency(
572
150k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
150k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
150k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
150k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1.37k
        }
580
152k
    }
581
582
152k
    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
152k
    _rows_returned_counter =
587
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
152k
    _blocks_returned_counter =
589
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
152k
    _output_block_bytes_counter =
591
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
152k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
152k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
152k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
152k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
152k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
152k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
152k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
152k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
152k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
152k
    _memory_used_counter =
602
152k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
152k
    _common_profile->add_info_string("IsColocate",
604
152k
                                     std::to_string(_parent->is_colocated_operator()));
605
152k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
152k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
152k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
152k
    return Status::OK();
609
152k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
461
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
461
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
461
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
461
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
461
    _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
461
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
461
    _operator_profile->add_child(_common_profile.get(), true);
553
461
    _operator_profile->add_child(_custom_profile.get(), true);
554
461
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
461
    if constexpr (!is_fake_shared) {
556
461
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
456
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
456
                                    .first.get()
559
456
                                    ->template cast<SharedStateArg>();
560
561
456
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
456
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
456
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
456
        } 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
5
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
5
        }
580
461
    }
581
582
461
    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
461
    _rows_returned_counter =
587
461
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
461
    _blocks_returned_counter =
589
461
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
461
    _output_block_bytes_counter =
591
461
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
461
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
461
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
461
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
461
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
461
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
461
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
461
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
461
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
461
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
461
    _memory_used_counter =
602
461
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
461
    _common_profile->add_info_string("IsColocate",
604
461
                                     std::to_string(_parent->is_colocated_operator()));
605
461
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
461
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
461
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
461
    return Status::OK();
609
461
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
116
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
116
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
116
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
116
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
116
    _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
116
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
116
    _operator_profile->add_child(_common_profile.get(), true);
553
116
    _operator_profile->add_child(_custom_profile.get(), true);
554
116
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
116
    if constexpr (!is_fake_shared) {
556
116
        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
116
        } 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
116
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
116
            _dependency = _shared_state->create_source_dependency(
572
116
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
116
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
116
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
116
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
116
    }
581
582
116
    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
116
    _rows_returned_counter =
587
116
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
116
    _blocks_returned_counter =
589
116
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
116
    _output_block_bytes_counter =
591
116
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
116
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
116
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
116
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
116
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
116
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
116
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
116
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
116
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
116
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
116
    _memory_used_counter =
602
116
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
116
    _common_profile->add_info_string("IsColocate",
604
116
                                     std::to_string(_parent->is_colocated_operator()));
605
116
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
116
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
116
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
116
    return Status::OK();
609
116
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.18M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.18M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.18M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.18M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.18M
    _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.18M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.18M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.18M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.18M
    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.18M
    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.18M
    _rows_returned_counter =
587
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.18M
    _blocks_returned_counter =
589
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.18M
    _output_block_bytes_counter =
591
1.18M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.18M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.18M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.18M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.18M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.18M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.18M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.18M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.18M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.18M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.18M
    _memory_used_counter =
602
1.18M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.18M
    _common_profile->add_info_string("IsColocate",
604
1.18M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.18M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.18M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.18M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.18M
    return Status::OK();
609
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
56.4k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.4k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.4k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.4k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.4k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
56.4k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.4k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.4k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.4k
    if constexpr (!is_fake_shared) {
556
56.4k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
56.4k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
3.41k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
3.41k
            _dependency = _shared_state->create_source_dependency(
572
3.41k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
3.41k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
3.41k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
53.0k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
53.0k
        }
580
56.4k
    }
581
582
56.4k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
56.4k
    _rows_returned_counter =
587
56.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.4k
    _blocks_returned_counter =
589
56.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.4k
    _output_block_bytes_counter =
591
56.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.4k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.4k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.4k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.4k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.4k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.4k
    _memory_used_counter =
602
56.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.4k
    _common_profile->add_info_string("IsColocate",
604
56.4k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.4k
    return Status::OK();
609
56.4k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
17
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
17
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
17
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
17
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
17
    _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
17
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
17
    _operator_profile->add_child(_common_profile.get(), true);
553
17
    _operator_profile->add_child(_custom_profile.get(), true);
554
17
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
17
    if constexpr (!is_fake_shared) {
556
17
        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
17
        } 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
17
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
17
            _dependency = _shared_state->create_source_dependency(
572
17
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
17
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
17
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
17
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
17
    }
581
582
17
    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
17
    _rows_returned_counter =
587
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
17
    _blocks_returned_counter =
589
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
17
    _output_block_bytes_counter =
591
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
17
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
17
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
17
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
17
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
17
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
17
    _memory_used_counter =
602
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
17
    _common_profile->add_info_string("IsColocate",
604
17
                                     std::to_string(_parent->is_colocated_operator()));
605
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
17
    return Status::OK();
609
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.4k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.4k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.4k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.4k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.4k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.4k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.4k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.4k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.4k
    if constexpr (!is_fake_shared) {
556
11.4k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.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
11.4k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.4k
            _dependency = _shared_state->create_source_dependency(
572
11.4k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.4k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.4k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.4k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
9
        }
580
11.4k
    }
581
582
11.4k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.4k
    _rows_returned_counter =
587
11.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.4k
    _blocks_returned_counter =
589
11.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.4k
    _output_block_bytes_counter =
591
11.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.4k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.4k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.4k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.4k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.4k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.4k
    _memory_used_counter =
602
11.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.4k
    _common_profile->add_info_string("IsColocate",
604
11.4k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.4k
    return Status::OK();
609
11.4k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
501
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
501
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
501
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
501
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
501
    _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
501
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
501
    _operator_profile->add_child(_common_profile.get(), true);
553
501
    _operator_profile->add_child(_custom_profile.get(), true);
554
501
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
501
    if constexpr (!is_fake_shared) {
556
501
        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
501
        } 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
491
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
491
            _dependency = _shared_state->create_source_dependency(
572
491
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
491
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
491
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
491
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
10
        }
580
501
    }
581
582
501
    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
501
    _rows_returned_counter =
587
501
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
501
    _blocks_returned_counter =
589
501
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
501
    _output_block_bytes_counter =
591
501
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
501
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
501
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
501
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
501
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
501
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
501
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
501
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
501
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
501
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
501
    _memory_used_counter =
602
501
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
501
    _common_profile->add_info_string("IsColocate",
604
501
                                     std::to_string(_parent->is_colocated_operator()));
605
501
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
501
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
501
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
501
    return Status::OK();
609
501
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.02k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.02k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.02k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.02k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.02k
    _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.02k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.02k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.02k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.02k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.02k
    if constexpr (!is_fake_shared) {
556
5.02k
        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.02k
        } 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.65k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
4.65k
            _dependency = _shared_state->create_source_dependency(
572
4.65k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
4.65k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
4.65k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
4.65k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
373
        }
580
5.02k
    }
581
582
5.02k
    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.02k
    _rows_returned_counter =
587
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.02k
    _blocks_returned_counter =
589
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.02k
    _output_block_bytes_counter =
591
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.02k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.02k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.02k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.02k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.02k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.02k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.02k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.02k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.02k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.02k
    _memory_used_counter =
602
5.02k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.02k
    _common_profile->add_info_string("IsColocate",
604
5.02k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.02k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.02k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.02k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.02k
    return Status::OK();
609
5.02k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
755k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
755k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
755k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
755k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
755k
    _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
755k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
755k
    _operator_profile->add_child(_common_profile.get(), true);
553
755k
    _operator_profile->add_child(_custom_profile.get(), true);
554
755k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
755k
    if constexpr (!is_fake_shared) {
556
755k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
747k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
747k
                                    .first.get()
559
747k
                                    ->template cast<SharedStateArg>();
560
561
747k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
747k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
747k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
747k
        } else if (info.shared_state) {
565
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
8.22k
        } else {
576
8.22k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
8.22k
                DCHECK(false);
578
8.22k
            }
579
8.22k
        }
580
755k
    }
581
582
755k
    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
755k
    _rows_returned_counter =
587
755k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
755k
    _blocks_returned_counter =
589
755k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
755k
    _output_block_bytes_counter =
591
755k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
755k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
755k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
755k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
755k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
755k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
755k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
755k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
755k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
755k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
755k
    _memory_used_counter =
602
755k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
755k
    _common_profile->add_info_string("IsColocate",
604
755k
                                     std::to_string(_parent->is_colocated_operator()));
605
755k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
755k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
755k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
755k
    return Status::OK();
609
755k
}
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.51M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.51M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.51M
    _projections.resize(_parent->_projections.size());
615
3.00M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
498k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
498k
    }
618
5.19M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.68M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.68M
    }
621
2.51M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.52M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
13.6k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
90.2k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
76.6k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
76.6k
                    state, _intermediate_projections[i][j]));
627
76.6k
        }
628
13.6k
    }
629
2.51M
    return Status::OK();
630
2.51M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
71.0k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
71.0k
    _conjuncts.resize(_parent->_conjuncts.size());
614
71.0k
    _projections.resize(_parent->_projections.size());
615
71.9k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
839
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
839
    }
618
358k
    for (size_t i = 0; i < _projections.size(); i++) {
619
287k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
287k
    }
621
71.0k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
72.8k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.80k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
19.0k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
17.2k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
17.2k
                    state, _intermediate_projections[i][j]));
627
17.2k
        }
628
1.80k
    }
629
71.0k
    return Status::OK();
630
71.0k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
3
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
3
    _conjuncts.resize(_parent->_conjuncts.size());
614
3
    _projections.resize(_parent->_projections.size());
615
3
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
3
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
3
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
3
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
3
    return Status::OK();
630
3
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
249k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
249k
    _conjuncts.resize(_parent->_conjuncts.size());
614
249k
    _projections.resize(_parent->_projections.size());
615
249k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
250k
    for (size_t i = 0; i < _projections.size(); i++) {
619
355
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
355
    }
621
249k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
249k
    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
249k
    return Status::OK();
630
249k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
26
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
26
    _conjuncts.resize(_parent->_conjuncts.size());
614
26
    _projections.resize(_parent->_projections.size());
615
26
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
26
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
26
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
26
    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
26
    return Status::OK();
630
26
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.4k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.4k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.4k
    _projections.resize(_parent->_projections.size());
615
10.5k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
65
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
65
    }
618
67.0k
    for (size_t i = 0; i < _projections.size(); i++) {
619
56.5k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
56.5k
    }
621
10.4k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
10.5k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
144
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
884
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
740
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
740
                    state, _intermediate_projections[i][j]));
627
740
        }
628
144
    }
629
10.4k
    return Status::OK();
630
10.4k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
7.89k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
7.89k
    _conjuncts.resize(_parent->_conjuncts.size());
614
7.89k
    _projections.resize(_parent->_projections.size());
615
8.65k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
758
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
758
    }
618
21.3k
    for (size_t i = 0; i < _projections.size(); i++) {
619
13.4k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
13.4k
    }
621
7.89k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
7.98k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
92
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
705
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
613
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
613
                    state, _intermediate_projections[i][j]));
627
613
        }
628
92
    }
629
7.89k
    return Status::OK();
630
7.89k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
152k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
152k
    _conjuncts.resize(_parent->_conjuncts.size());
614
152k
    _projections.resize(_parent->_projections.size());
615
156k
    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
415k
    for (size_t i = 0; i < _projections.size(); i++) {
619
262k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
262k
    }
621
152k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
152k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
260
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.87k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.61k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.61k
                    state, _intermediate_projections[i][j]));
627
1.61k
        }
628
260
    }
629
152k
    return Status::OK();
630
152k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
464
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
464
    _conjuncts.resize(_parent->_conjuncts.size());
614
464
    _projections.resize(_parent->_projections.size());
615
471
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
7
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
7
    }
618
1.65k
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.19k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.19k
    }
621
464
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
464
    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
464
    return Status::OK();
630
464
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
120
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
120
    _conjuncts.resize(_parent->_conjuncts.size());
614
120
    _projections.resize(_parent->_projections.size());
615
120
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
312
    for (size_t i = 0; i < _projections.size(); i++) {
619
192
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
192
    }
621
120
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
120
    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
120
    return Status::OK();
630
120
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.18M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.18M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.18M
    _projections.resize(_parent->_projections.size());
615
1.67M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
488k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
488k
    }
618
3.15M
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.96M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.96M
    }
621
1.18M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.19M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
11.3k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
67.7k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
56.3k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
56.3k
                    state, _intermediate_projections[i][j]));
627
56.3k
        }
628
11.3k
    }
629
1.18M
    return Status::OK();
630
1.18M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.5k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.5k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.5k
    _projections.resize(_parent->_projections.size());
615
56.5k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
151k
    for (size_t i = 0; i < _projections.size(); i++) {
619
95.4k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
95.4k
    }
621
56.5k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.5k
    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.5k
    return Status::OK();
630
56.5k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
17
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
17
    _conjuncts.resize(_parent->_conjuncts.size());
614
17
    _projections.resize(_parent->_projections.size());
615
17
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
17
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
17
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
17
    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
17
    return Status::OK();
630
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.4k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.4k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.4k
    _projections.resize(_parent->_projections.size());
615
15.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.25k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.25k
    }
618
11.4k
    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.4k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.4k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
11.4k
    return Status::OK();
630
11.4k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
502
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
502
    _conjuncts.resize(_parent->_conjuncts.size());
614
502
    _projections.resize(_parent->_projections.size());
615
502
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
502
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
502
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
502
    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
502
    return Status::OK();
630
502
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.08k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.08k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.08k
    _projections.resize(_parent->_projections.size());
615
5.08k
    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.26k
    for (size_t i = 0; i < _projections.size(); i++) {
619
180
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
180
    }
621
5.08k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.08k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
5.08k
    return Status::OK();
630
5.08k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
756k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
756k
    _conjuncts.resize(_parent->_conjuncts.size());
614
756k
    _projections.resize(_parent->_projections.size());
615
756k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
756k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
756k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
756k
    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
756k
    return Status::OK();
630
756k
}
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.96k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6.96k
    if (_terminated) {
635
4
        return Status::OK();
636
4
    }
637
6.96k
    _terminated = true;
638
6.96k
    return Status::OK();
639
6.96k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
357
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
357
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
357
    _terminated = true;
638
357
    return Status::OK();
639
357
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
73
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
73
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
73
    _terminated = true;
638
73
    return Status::OK();
639
73
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
26
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
26
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
26
    _terminated = true;
638
26
    return Status::OK();
639
26
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
2
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
2
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
2
    _terminated = true;
638
2
    return Status::OK();
639
2
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
27
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
27
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
27
    _terminated = true;
638
27
    return Status::OK();
639
27
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5.64k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.64k
    if (_terminated) {
635
2
        return Status::OK();
636
2
    }
637
5.64k
    _terminated = true;
638
5.64k
    return Status::OK();
639
5.64k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
2
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
2
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
2
    _terminated = true;
638
2
    return Status::OK();
639
2
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
16
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
16
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
16
    _terminated = true;
638
16
    return Status::OK();
639
16
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
191
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
191
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
191
    _terminated = true;
638
191
    return Status::OK();
639
191
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
616
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
616
    if (_terminated) {
635
2
        return Status::OK();
636
2
    }
637
614
    _terminated = true;
638
614
    return Status::OK();
639
616
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
16
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
16
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
16
    _terminated = true;
638
16
    return Status::OK();
639
16
}
640
641
template <typename SharedStateArg>
642
2.79M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.79M
    if (_closed) {
644
281k
        return Status::OK();
645
281k
    }
646
2.51M
    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.51M
    _closed = true;
650
2.51M
    return Status::OK();
651
2.79M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
71.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
71.0k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
71.0k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
71.0k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
71.0k
    }
649
71.0k
    _closed = true;
650
71.0k
    return Status::OK();
651
71.0k
}
_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
496k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
496k
    if (_closed) {
644
248k
        return Status::OK();
645
248k
    }
646
248k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
248k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
248k
    }
649
248k
    _closed = true;
650
248k
    return Status::OK();
651
496k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
26
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
26
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
26
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
26
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
26
    }
649
26
    _closed = true;
650
26
    return Status::OK();
651
26
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.4k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.4k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.4k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.4k
    }
649
10.4k
    _closed = true;
650
10.4k
    return Status::OK();
651
10.4k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
15.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
15.9k
    if (_closed) {
644
8.07k
        return Status::OK();
645
8.07k
    }
646
7.87k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
7.87k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
7.87k
    }
649
7.87k
    _closed = true;
650
7.87k
    return Status::OK();
651
15.9k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
151k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
151k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
151k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
151k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
151k
    }
649
151k
    _closed = true;
650
151k
    return Status::OK();
651
151k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
461
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
461
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
461
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
461
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
461
    }
649
461
    _closed = true;
650
461
    return Status::OK();
651
461
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
115
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
115
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
115
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
115
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
115
    }
649
115
    _closed = true;
650
115
    return Status::OK();
651
115
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.20M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.20M
    if (_closed) {
644
18.9k
        return Status::OK();
645
18.9k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.18M
    _closed = true;
650
1.18M
    return Status::OK();
651
1.20M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.5k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.5k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.5k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.5k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.5k
    }
649
56.5k
    _closed = true;
650
56.5k
    return Status::OK();
651
56.5k
}
_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.4k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.4k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.4k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.4k
    }
649
11.4k
    _closed = true;
650
11.4k
    return Status::OK();
651
11.4k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
798
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
798
    if (_closed) {
644
400
        return Status::OK();
645
400
    }
646
398
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
398
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
398
    }
649
398
    _closed = true;
650
398
    return Status::OK();
651
798
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.2k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.2k
    if (_closed) {
644
5.22k
        return Status::OK();
645
5.22k
    }
646
5.07k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.07k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.07k
    }
649
5.07k
    _closed = true;
650
5.07k
    return Status::OK();
651
10.2k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
759k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
759k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
759k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
759k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
759k
    }
649
759k
    _closed = true;
650
759k
    return Status::OK();
651
759k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
328
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
328
    if (_closed) {
644
173
        return Status::OK();
645
173
    }
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
328
}
652
653
template <typename SharedState>
654
2.03M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.03M
    _operator_profile =
657
2.03M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.03M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.03M
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
2.03M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.03M
    _operator_profile->add_child(_common_profile, true);
666
2.03M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.03M
    _operator_profile->set_metadata(_parent->node_id());
669
2.03M
    _wait_for_finish_dependency_timer =
670
2.03M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.03M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.03M
    if constexpr (!is_fake_shared) {
673
1.35M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.35M
            info.shared_state_map.end()) {
675
310k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
290k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
290k
            }
678
310k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
310k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
310k
                                                  ? 0
681
310k
                                                  : info.task_idx]
682
310k
                                  .get();
683
310k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.04M
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
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.35M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.35M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.35M
    }
695
696
2.03M
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
2.03M
    _rows_input_counter =
701
2.03M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.03M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.03M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.03M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.03M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.03M
    _memory_used_counter =
707
2.03M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.03M
    _common_profile->add_info_string("IsColocate",
709
2.03M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.03M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.03M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.03M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.03M
    return Status::OK();
714
2.03M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
119k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
119k
    _operator_profile =
657
119k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
119k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
119k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
119k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
119k
    _operator_profile->add_child(_common_profile, true);
666
119k
    _operator_profile->add_child(_custom_profile, true);
667
668
119k
    _operator_profile->set_metadata(_parent->node_id());
669
119k
    _wait_for_finish_dependency_timer =
670
119k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
119k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
119k
    if constexpr (!is_fake_shared) {
673
119k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
119k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
19.8k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
19.8k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
19.8k
                                                  ? 0
681
19.8k
                                                  : info.task_idx]
682
19.8k
                                  .get();
683
19.8k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
99.2k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
99.2k
            _shared_state = info.shared_state->template cast<SharedState>();
689
99.2k
            _dependency = _shared_state->create_sink_dependency(
690
99.2k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
99.2k
        }
692
119k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
119k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
119k
    }
695
696
119k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
119k
    _rows_input_counter =
701
119k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
119k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
119k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
119k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
119k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
119k
    _memory_used_counter =
707
119k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
119k
    _common_profile->add_info_string("IsColocate",
709
119k
                                     std::to_string(_parent->is_colocated_operator()));
710
119k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
119k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
119k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
119k
    return Status::OK();
714
119k
}
_ZN5doris23PipelineXSinkLocalStateINS_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
249k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
249k
    _operator_profile =
657
249k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
249k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
249k
    _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
249k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
249k
    _operator_profile->add_child(_common_profile, true);
666
249k
    _operator_profile->add_child(_custom_profile, true);
667
668
249k
    _operator_profile->set_metadata(_parent->node_id());
669
249k
    _wait_for_finish_dependency_timer =
670
249k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
249k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
249k
    if constexpr (!is_fake_shared) {
673
249k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
249k
            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
249k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
249k
            _shared_state = info.shared_state->template cast<SharedState>();
689
249k
            _dependency = _shared_state->create_sink_dependency(
690
249k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
249k
        }
692
249k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
249k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
249k
    }
695
696
249k
    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
249k
    _rows_input_counter =
701
249k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
249k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
249k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
249k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
249k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
249k
    _memory_used_counter =
707
249k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
249k
    _common_profile->add_info_string("IsColocate",
709
249k
                                     std::to_string(_parent->is_colocated_operator()));
710
249k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
249k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
249k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
249k
    return Status::OK();
714
249k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
33
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
33
    _operator_profile =
657
33
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
33
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
33
    _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
33
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
33
    _operator_profile->add_child(_common_profile, true);
666
33
    _operator_profile->add_child(_custom_profile, true);
667
668
33
    _operator_profile->set_metadata(_parent->node_id());
669
33
    _wait_for_finish_dependency_timer =
670
33
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
33
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
33
    if constexpr (!is_fake_shared) {
673
33
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
33
            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
33
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
33
            _shared_state = info.shared_state->template cast<SharedState>();
689
33
            _dependency = _shared_state->create_sink_dependency(
690
33
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
33
        }
692
33
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
33
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
33
    }
695
696
33
    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
33
    _rows_input_counter =
701
33
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
33
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
33
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
33
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
33
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
33
    _memory_used_counter =
707
33
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
33
    _common_profile->add_info_string("IsColocate",
709
33
                                     std::to_string(_parent->is_colocated_operator()));
710
33
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
33
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
33
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
33
    return Status::OK();
714
33
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
10.4k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
10.4k
    _operator_profile =
657
10.4k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
10.4k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
10.4k
    _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
10.4k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
10.4k
    _operator_profile->add_child(_common_profile, true);
666
10.4k
    _operator_profile->add_child(_custom_profile, true);
667
668
10.4k
    _operator_profile->set_metadata(_parent->node_id());
669
10.4k
    _wait_for_finish_dependency_timer =
670
10.4k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
10.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
10.4k
    if constexpr (!is_fake_shared) {
673
10.4k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
10.4k
            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
10.4k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
10.4k
            _shared_state = info.shared_state->template cast<SharedState>();
689
10.4k
            _dependency = _shared_state->create_sink_dependency(
690
10.4k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
10.4k
        }
692
10.4k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
10.4k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
10.4k
    }
695
696
10.4k
    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
10.4k
    _rows_input_counter =
701
10.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
10.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
10.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
10.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
10.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
10.4k
    _memory_used_counter =
707
10.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
10.4k
    _common_profile->add_info_string("IsColocate",
709
10.4k
                                     std::to_string(_parent->is_colocated_operator()));
710
10.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
10.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
10.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
10.4k
    return Status::OK();
714
10.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.88k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.88k
    _operator_profile =
657
7.88k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.88k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.88k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
7.88k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.88k
    _operator_profile->add_child(_common_profile, true);
666
7.88k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.88k
    _operator_profile->set_metadata(_parent->node_id());
669
7.88k
    _wait_for_finish_dependency_timer =
670
7.88k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.88k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.88k
    if constexpr (!is_fake_shared) {
673
7.88k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.88k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
7.88k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.88k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.88k
            _dependency = _shared_state->create_sink_dependency(
690
7.88k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.88k
        }
692
7.88k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.88k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.88k
    }
695
696
7.88k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
7.88k
    _rows_input_counter =
701
7.88k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.88k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.88k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.88k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.88k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.88k
    _memory_used_counter =
707
7.88k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.88k
    _common_profile->add_info_string("IsColocate",
709
7.88k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.88k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.88k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.88k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.88k
    return Status::OK();
714
7.88k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
152k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
152k
    _operator_profile =
657
152k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
152k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
152k
    _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
152k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
152k
    _operator_profile->add_child(_common_profile, true);
666
152k
    _operator_profile->add_child(_custom_profile, true);
667
668
152k
    _operator_profile->set_metadata(_parent->node_id());
669
152k
    _wait_for_finish_dependency_timer =
670
152k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
152k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
152k
    if constexpr (!is_fake_shared) {
673
152k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
152k
            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
152k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
152k
            _shared_state = info.shared_state->template cast<SharedState>();
689
152k
            _dependency = _shared_state->create_sink_dependency(
690
152k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
152k
        }
692
152k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
152k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
152k
    }
695
696
152k
    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
152k
    _rows_input_counter =
701
152k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
152k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
152k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
152k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
152k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
152k
    _memory_used_counter =
707
152k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
152k
    _common_profile->add_info_string("IsColocate",
709
152k
                                     std::to_string(_parent->is_colocated_operator()));
710
152k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
152k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
152k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
152k
    return Status::OK();
714
152k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
458
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
458
    _operator_profile =
657
458
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
458
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
458
    _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
458
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
458
    _operator_profile->add_child(_common_profile, true);
666
458
    _operator_profile->add_child(_custom_profile, true);
667
668
458
    _operator_profile->set_metadata(_parent->node_id());
669
458
    _wait_for_finish_dependency_timer =
670
458
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
458
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
458
    if constexpr (!is_fake_shared) {
673
458
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
458
            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
455
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
455
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
455
                                                  ? 0
681
455
                                                  : info.task_idx]
682
455
                                  .get();
683
455
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
455
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3
            _shared_state = info.shared_state->template cast<SharedState>();
689
3
            _dependency = _shared_state->create_sink_dependency(
690
3
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3
        }
692
458
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
458
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
458
    }
695
696
458
    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
458
    _rows_input_counter =
701
458
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
458
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
458
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
458
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
458
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
458
    _memory_used_counter =
707
458
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
458
    _common_profile->add_info_string("IsColocate",
709
458
                                     std::to_string(_parent->is_colocated_operator()));
710
458
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
458
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
458
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
458
    return Status::OK();
714
458
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
126
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
126
    _operator_profile =
657
126
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
126
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
126
    _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
126
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
126
    _operator_profile->add_child(_common_profile, true);
666
126
    _operator_profile->add_child(_custom_profile, true);
667
668
126
    _operator_profile->set_metadata(_parent->node_id());
669
126
    _wait_for_finish_dependency_timer =
670
126
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
126
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
126
    if constexpr (!is_fake_shared) {
673
126
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
126
            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
126
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
126
            _shared_state = info.shared_state->template cast<SharedState>();
689
126
            _dependency = _shared_state->create_sink_dependency(
690
126
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
126
        }
692
126
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
126
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
126
    }
695
696
126
    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
126
    _rows_input_counter =
701
126
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
126
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
126
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
126
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
126
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
126
    _memory_used_counter =
707
126
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
126
    _common_profile->add_info_string("IsColocate",
709
126
                                     std::to_string(_parent->is_colocated_operator()));
710
126
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
126
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
126
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
126
    return Status::OK();
714
126
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
684k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
684k
    _operator_profile =
657
684k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
684k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
684k
    _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
684k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
684k
    _operator_profile->add_child(_common_profile, true);
666
684k
    _operator_profile->add_child(_custom_profile, true);
667
668
684k
    _operator_profile->set_metadata(_parent->node_id());
669
684k
    _wait_for_finish_dependency_timer =
670
684k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
684k
    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
684k
    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
684k
    _rows_input_counter =
701
684k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
684k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
684k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
684k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
684k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
684k
    _memory_used_counter =
707
684k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
684k
    _common_profile->add_info_string("IsColocate",
709
684k
                                     std::to_string(_parent->is_colocated_operator()));
710
684k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
684k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
684k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
684k
    return Status::OK();
714
684k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.72k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.72k
    _operator_profile =
657
7.72k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.72k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.72k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
7.72k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.72k
    _operator_profile->add_child(_common_profile, true);
666
7.72k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.72k
    _operator_profile->set_metadata(_parent->node_id());
669
7.72k
    _wait_for_finish_dependency_timer =
670
7.72k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.72k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.72k
    if constexpr (!is_fake_shared) {
673
7.72k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.72k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
7.72k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.72k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.72k
            _dependency = _shared_state->create_sink_dependency(
690
7.72k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.72k
        }
692
7.72k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.72k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.72k
    }
695
696
7.72k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
7.72k
    _rows_input_counter =
701
7.72k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.72k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.72k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.72k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.72k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.72k
    _memory_used_counter =
707
7.72k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.72k
    _common_profile->add_info_string("IsColocate",
709
7.72k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.72k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.72k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.72k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.72k
    return Status::OK();
714
7.72k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
498
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
498
    _operator_profile =
657
498
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
498
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
498
    _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
498
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
498
    _operator_profile->add_child(_common_profile, true);
666
498
    _operator_profile->add_child(_custom_profile, true);
667
668
498
    _operator_profile->set_metadata(_parent->node_id());
669
498
    _wait_for_finish_dependency_timer =
670
498
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
498
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
498
    if constexpr (!is_fake_shared) {
673
498
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
498
            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
498
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
498
            _shared_state = info.shared_state->template cast<SharedState>();
689
498
            _dependency = _shared_state->create_sink_dependency(
690
498
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
498
        }
692
498
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
498
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
498
    }
695
696
498
    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
498
    _rows_input_counter =
701
498
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
498
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
498
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
498
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
498
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
498
    _memory_used_counter =
707
498
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
498
    _common_profile->add_info_string("IsColocate",
709
498
                                     std::to_string(_parent->is_colocated_operator()));
710
498
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
498
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
498
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
498
    return Status::OK();
714
498
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
3.98k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
3.98k
    _operator_profile =
657
3.98k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
3.98k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
3.98k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
3.98k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
3.98k
    _operator_profile->add_child(_common_profile, true);
666
3.98k
    _operator_profile->add_child(_custom_profile, true);
667
668
3.98k
    _operator_profile->set_metadata(_parent->node_id());
669
3.98k
    _wait_for_finish_dependency_timer =
670
3.98k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
3.98k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
3.98k
    if constexpr (!is_fake_shared) {
673
3.98k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
3.98k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
3.98k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3.98k
            _shared_state = info.shared_state->template cast<SharedState>();
689
3.98k
            _dependency = _shared_state->create_sink_dependency(
690
3.98k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3.98k
        }
692
3.98k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
3.98k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
3.98k
    }
695
696
3.98k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
3.98k
    _rows_input_counter =
701
3.98k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
3.98k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
3.98k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
3.98k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
3.98k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
3.98k
    _memory_used_counter =
707
3.98k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
3.98k
    _common_profile->add_info_string("IsColocate",
709
3.98k
                                     std::to_string(_parent->is_colocated_operator()));
710
3.98k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
3.98k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
3.98k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
3.98k
    return Status::OK();
714
3.98k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.1k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.1k
    _operator_profile =
657
12.1k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.1k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.1k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
12.1k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.1k
    _operator_profile->add_child(_common_profile, true);
666
12.1k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.1k
    _operator_profile->set_metadata(_parent->node_id());
669
12.1k
    _wait_for_finish_dependency_timer =
670
12.1k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.1k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.1k
    if constexpr (!is_fake_shared) {
673
12.1k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.1k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
12.1k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.1k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.1k
            _dependency = _shared_state->create_sink_dependency(
690
12.1k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.1k
        }
692
12.1k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.1k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.1k
    }
695
696
12.1k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
12.1k
    _rows_input_counter =
701
12.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.1k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.1k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.1k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.1k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.1k
    _memory_used_counter =
707
12.1k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.1k
    _common_profile->add_info_string("IsColocate",
709
12.1k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.1k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.1k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.1k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.1k
    return Status::OK();
714
12.1k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
290k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
290k
    _operator_profile =
657
290k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
290k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
290k
    _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
290k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
290k
    _operator_profile->add_child(_common_profile, true);
666
290k
    _operator_profile->add_child(_custom_profile, true);
667
668
290k
    _operator_profile->set_metadata(_parent->node_id());
669
290k
    _wait_for_finish_dependency_timer =
670
290k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
290k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
290k
    if constexpr (!is_fake_shared) {
673
290k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
290k
            info.shared_state_map.end()) {
675
290k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
290k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
290k
            }
678
290k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
290k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
290k
                                                  ? 0
681
290k
                                                  : info.task_idx]
682
290k
                                  .get();
683
290k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
18.4E
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
18.4E
            _shared_state = info.shared_state->template cast<SharedState>();
689
18.4E
            _dependency = _shared_state->create_sink_dependency(
690
18.4E
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
18.4E
        }
692
290k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
290k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
290k
    }
695
696
290k
    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
290k
    _rows_input_counter =
701
290k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
290k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
290k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
290k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
290k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
290k
    _memory_used_counter =
707
290k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
290k
    _common_profile->add_info_string("IsColocate",
709
290k
                                     std::to_string(_parent->is_colocated_operator()));
710
290k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
290k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
290k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
290k
    return Status::OK();
714
290k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
501k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
501k
    _operator_profile =
657
501k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
501k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
501k
    _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
501k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
501k
    _operator_profile->add_child(_common_profile, true);
666
501k
    _operator_profile->add_child(_custom_profile, true);
667
668
501k
    _operator_profile->set_metadata(_parent->node_id());
669
501k
    _wait_for_finish_dependency_timer =
670
501k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
501k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
501k
    if constexpr (!is_fake_shared) {
673
501k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
501k
            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
501k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
501k
            _shared_state = info.shared_state->template cast<SharedState>();
689
501k
            _dependency = _shared_state->create_sink_dependency(
690
501k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
501k
        }
692
501k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
501k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
501k
    }
695
696
501k
    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
501k
    _rows_input_counter =
701
501k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
501k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
501k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
501k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
501k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
501k
    _memory_used_counter =
707
501k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
501k
    _common_profile->add_info_string("IsColocate",
709
501k
                                     std::to_string(_parent->is_colocated_operator()));
710
501k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
501k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
501k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
501k
    return Status::OK();
714
501k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
17
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
17
    _operator_profile =
657
17
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
17
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
17
    _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
17
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
17
    _operator_profile->add_child(_common_profile, true);
666
17
    _operator_profile->add_child(_custom_profile, true);
667
668
17
    _operator_profile->set_metadata(_parent->node_id());
669
17
    _wait_for_finish_dependency_timer =
670
17
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
17
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
17
    if constexpr (!is_fake_shared) {
673
17
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
17
            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
17
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
17
            _shared_state = info.shared_state->template cast<SharedState>();
689
17
            _dependency = _shared_state->create_sink_dependency(
690
17
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
17
        }
692
17
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
17
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
17
    }
695
696
17
    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
17
    _rows_input_counter =
701
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
17
    _memory_used_counter =
707
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
17
    _common_profile->add_info_string("IsColocate",
709
17
                                     std::to_string(_parent->is_colocated_operator()));
710
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
17
    return Status::OK();
714
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
328
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
328
    _operator_profile =
657
328
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
328
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
328
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
328
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
328
    _operator_profile->add_child(_common_profile, true);
666
328
    _operator_profile->add_child(_custom_profile, true);
667
668
328
    _operator_profile->set_metadata(_parent->node_id());
669
328
    _wait_for_finish_dependency_timer =
670
328
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
328
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
328
    if constexpr (!is_fake_shared) {
673
328
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
328
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
328
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
328
            _shared_state = info.shared_state->template cast<SharedState>();
689
328
            _dependency = _shared_state->create_sink_dependency(
690
328
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
328
        }
692
328
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
328
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
328
    }
695
696
328
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
328
    _rows_input_counter =
701
328
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
328
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
328
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
328
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
328
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
328
    _memory_used_counter =
707
328
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
328
    _common_profile->add_info_string("IsColocate",
709
328
                                     std::to_string(_parent->is_colocated_operator()));
710
328
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
328
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
328
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
328
    return Status::OK();
714
328
}
715
716
template <typename SharedState>
717
2.04M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.04M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.04M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.35M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.35M
    }
724
2.04M
    _closed = true;
725
2.04M
    return Status::OK();
726
2.04M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
118k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
118k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
118k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
118k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
118k
    }
724
118k
    _closed = true;
725
118k
    return Status::OK();
726
118k
}
_ZN5doris23PipelineXSinkLocalStateINS_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
249k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
249k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
249k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
249k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
249k
    }
724
249k
    _closed = true;
725
249k
    return Status::OK();
726
249k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
24
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
24
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
22
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
22
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
22
    }
724
22
    _closed = true;
725
22
    return Status::OK();
726
24
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
10.4k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
10.4k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
10.4k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
10.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
10.4k
    }
724
10.4k
    _closed = true;
725
10.4k
    return Status::OK();
726
10.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.87k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.87k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.87k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.87k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.87k
    }
724
7.87k
    _closed = true;
725
7.87k
    return Status::OK();
726
7.87k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
151k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
151k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
151k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
151k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
151k
    }
724
151k
    _closed = true;
725
151k
    return Status::OK();
726
151k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
458
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
458
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
458
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
458
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
458
    }
724
458
    _closed = true;
725
458
    return Status::OK();
726
458
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
115
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
115
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
115
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
115
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
115
    }
724
115
    _closed = true;
725
115
    return Status::OK();
726
115
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
684k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
684k
    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
684k
    _closed = true;
725
684k
    return Status::OK();
726
684k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.74k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.74k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.74k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.74k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.74k
    }
724
7.74k
    _closed = true;
725
7.74k
    return Status::OK();
726
7.74k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
399
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
399
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
399
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
399
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
399
    }
724
399
    _closed = true;
725
399
    return Status::OK();
726
399
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
3.98k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
3.98k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
3.98k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
3.98k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
3.98k
    }
724
3.98k
    _closed = true;
725
3.98k
    return Status::OK();
726
3.98k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.3k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.3k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.3k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.3k
    }
724
12.3k
    _closed = true;
725
12.3k
    return Status::OK();
726
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
291k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
291k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
291k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
291k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
291k
    }
724
291k
    _closed = true;
725
291k
    return Status::OK();
726
291k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
502k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
502k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
502k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
502k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
502k
    }
724
502k
    _closed = true;
725
502k
    return Status::OK();
726
502k
}
_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
14.9k
                                                          bool* eos) {
731
14.9k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.9k
    return pull(state, block, eos);
733
14.9k
}
_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
14.5k
                                                          bool* eos) {
731
14.5k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
14.5k
    return pull(state, block, eos);
733
14.5k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
722k
                                                         bool* eos) {
738
722k
    auto& local_state = get_local_state(state);
739
722k
    if (need_more_input_data(state)) {
740
692k
        local_state._child_block->clear_column_data(
741
692k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
692k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
692k
                state, local_state._child_block.get(), &local_state._child_eos));
744
692k
        *eos = local_state._child_eos;
745
692k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
72.8k
            return Status::OK();
747
72.8k
        }
748
619k
        {
749
619k
            SCOPED_TIMER(local_state.exec_time_counter());
750
619k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
619k
        }
752
619k
    }
753
754
649k
    if (!need_more_input_data(state)) {
755
596k
        SCOPED_TIMER(local_state.exec_time_counter());
756
596k
        bool new_eos = false;
757
596k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
596k
        if (new_eos) {
759
509k
            *eos = true;
760
509k
        } else if (!need_more_input_data(state)) {
761
24.3k
            *eos = false;
762
24.3k
        }
763
596k
    }
764
649k
    return Status::OK();
765
649k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
151k
                                                         bool* eos) {
738
151k
    auto& local_state = get_local_state(state);
739
151k
    if (need_more_input_data(state)) {
740
133k
        local_state._child_block->clear_column_data(
741
133k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
133k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
133k
                state, local_state._child_block.get(), &local_state._child_eos));
744
133k
        *eos = local_state._child_eos;
745
133k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
41.3k
            return Status::OK();
747
41.3k
        }
748
92.6k
        {
749
92.6k
            SCOPED_TIMER(local_state.exec_time_counter());
750
92.6k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
92.6k
        }
752
92.6k
    }
753
754
109k
    if (!need_more_input_data(state)) {
755
109k
        SCOPED_TIMER(local_state.exec_time_counter());
756
109k
        bool new_eos = false;
757
109k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
109k
        if (new_eos) {
759
46.7k
            *eos = true;
760
63.0k
        } else if (!need_more_input_data(state)) {
761
11.0k
            *eos = false;
762
11.0k
        }
763
109k
    }
764
109k
    return Status::OK();
765
109k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
3.86k
                                                         bool* eos) {
738
3.86k
    auto& local_state = get_local_state(state);
739
3.86k
    if (need_more_input_data(state)) {
740
2.01k
        local_state._child_block->clear_column_data(
741
2.01k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.01k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.01k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.01k
        *eos = local_state._child_eos;
745
2.01k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
287
            return Status::OK();
747
287
        }
748
1.72k
        {
749
1.72k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.72k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.72k
        }
752
1.72k
    }
753
754
3.58k
    if (!need_more_input_data(state)) {
755
3.58k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.58k
        bool new_eos = false;
757
3.58k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.58k
        if (new_eos) {
759
1.17k
            *eos = true;
760
2.40k
        } else if (!need_more_input_data(state)) {
761
1.85k
            *eos = false;
762
1.85k
        }
763
3.58k
    }
764
3.57k
    return Status::OK();
765
3.57k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.99k
                                                         bool* eos) {
738
4.99k
    auto& local_state = get_local_state(state);
739
4.99k
    if (need_more_input_data(state)) {
740
4.99k
        local_state._child_block->clear_column_data(
741
4.99k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.99k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.99k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.99k
        *eos = local_state._child_eos;
745
4.99k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.73k
            return Status::OK();
747
1.73k
        }
748
3.25k
        {
749
3.25k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.25k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.25k
        }
752
3.25k
    }
753
754
3.25k
    if (!need_more_input_data(state)) {
755
3.25k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.25k
        bool new_eos = false;
757
3.25k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.25k
        if (new_eos) {
759
1.74k
            *eos = true;
760
1.74k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.25k
    }
764
3.25k
    return Status::OK();
765
3.25k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
35.4k
                                                         bool* eos) {
738
35.4k
    auto& local_state = get_local_state(state);
739
35.4k
    if (need_more_input_data(state)) {
740
35.4k
        local_state._child_block->clear_column_data(
741
35.4k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
35.4k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
35.4k
                state, local_state._child_block.get(), &local_state._child_eos));
744
35.4k
        *eos = local_state._child_eos;
745
35.4k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
3.52k
            return Status::OK();
747
3.52k
        }
748
31.9k
        {
749
31.9k
            SCOPED_TIMER(local_state.exec_time_counter());
750
31.9k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
31.9k
        }
752
31.9k
    }
753
754
31.8k
    if (!need_more_input_data(state)) {
755
11.3k
        SCOPED_TIMER(local_state.exec_time_counter());
756
11.3k
        bool new_eos = false;
757
11.3k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
11.3k
        if (new_eos) {
759
11.2k
            *eos = true;
760
11.2k
        } else if (!need_more_input_data(state)) {
761
7
            *eos = false;
762
7
        }
763
11.3k
    }
764
31.8k
    return Status::OK();
765
31.8k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
489k
                                                         bool* eos) {
738
489k
    auto& local_state = get_local_state(state);
739
490k
    if (need_more_input_data(state)) {
740
490k
        local_state._child_block->clear_column_data(
741
490k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
490k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
490k
                state, local_state._child_block.get(), &local_state._child_eos));
744
490k
        *eos = local_state._child_eos;
745
490k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
22.9k
            return Status::OK();
747
22.9k
        }
748
467k
        {
749
467k
            SCOPED_TIMER(local_state.exec_time_counter());
750
467k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
467k
        }
752
467k
    }
753
754
466k
    if (!need_more_input_data(state)) {
755
434k
        SCOPED_TIMER(local_state.exec_time_counter());
756
434k
        bool new_eos = false;
757
434k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
434k
        if (new_eos) {
759
433k
            *eos = true;
760
433k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
434k
    }
764
466k
    return Status::OK();
765
466k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
30.3k
                                                         bool* eos) {
738
30.3k
    auto& local_state = get_local_state(state);
739
30.3k
    if (need_more_input_data(state)) {
740
19.2k
        local_state._child_block->clear_column_data(
741
19.2k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
19.2k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
19.2k
                state, local_state._child_block.get(), &local_state._child_eos));
744
19.2k
        *eos = local_state._child_eos;
745
19.2k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.56k
            return Status::OK();
747
2.56k
        }
748
16.6k
        {
749
16.6k
            SCOPED_TIMER(local_state.exec_time_counter());
750
16.6k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
16.6k
        }
752
16.6k
    }
753
754
27.7k
    if (!need_more_input_data(state)) {
755
27.1k
        SCOPED_TIMER(local_state.exec_time_counter());
756
27.1k
        bool new_eos = false;
757
27.1k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
27.1k
        if (new_eos) {
759
10.4k
            *eos = true;
760
16.7k
        } else if (!need_more_input_data(state)) {
761
11.0k
            *eos = false;
762
11.0k
        }
763
27.1k
    }
764
27.7k
    return Status::OK();
765
27.7k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
7.06k
                                                         bool* eos) {
738
7.06k
    auto& local_state = get_local_state(state);
739
7.06k
    if (need_more_input_data(state)) {
740
6.69k
        local_state._child_block->clear_column_data(
741
6.69k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
6.69k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
6.69k
                state, local_state._child_block.get(), &local_state._child_eos));
744
6.69k
        *eos = local_state._child_eos;
745
6.69k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
453
            return Status::OK();
747
453
        }
748
6.24k
        {
749
6.24k
            SCOPED_TIMER(local_state.exec_time_counter());
750
6.24k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
6.24k
        }
752
6.24k
    }
753
754
6.61k
    if (!need_more_input_data(state)) {
755
6.61k
        SCOPED_TIMER(local_state.exec_time_counter());
756
6.61k
        bool new_eos = false;
757
6.61k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
6.61k
        if (new_eos) {
759
4.50k
            *eos = true;
760
4.50k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
6.61k
    }
764
6.60k
    return Status::OK();
765
6.60k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
66.1k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
66.1k
    RETURN_IF_ERROR(Base::init(state, info));
771
66.1k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
66.1k
                                                         "AsyncWriterDependency", true);
773
66.1k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
66.1k
                             _finish_dependency));
775
776
66.1k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
66.1k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
66.1k
    return Status::OK();
779
66.1k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
517
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
517
    RETURN_IF_ERROR(Base::init(state, info));
771
517
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
517
                                                         "AsyncWriterDependency", true);
773
517
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
517
                             _finish_dependency));
775
776
517
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
517
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
517
    return Status::OK();
779
517
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
86
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
86
    RETURN_IF_ERROR(Base::init(state, info));
771
86
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
86
                                                         "AsyncWriterDependency", true);
773
86
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
86
                             _finish_dependency));
775
776
86
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
86
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
86
    return Status::OK();
779
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
46.5k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
46.5k
    RETURN_IF_ERROR(Base::init(state, info));
771
46.5k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
46.5k
                                                         "AsyncWriterDependency", true);
773
46.5k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
46.5k
                             _finish_dependency));
775
776
46.5k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
46.5k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
46.5k
    return Status::OK();
779
46.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.36k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.36k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.36k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.36k
                                                         "AsyncWriterDependency", true);
773
9.36k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.36k
                             _finish_dependency));
775
776
9.36k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.36k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.36k
    return Status::OK();
779
9.36k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
5.16k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.16k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.16k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.16k
                                                         "AsyncWriterDependency", true);
773
5.16k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.16k
                             _finish_dependency));
775
776
5.16k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.16k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.16k
    return Status::OK();
779
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
3.39k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.39k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.39k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.39k
                                                         "AsyncWriterDependency", true);
773
3.39k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.39k
                             _finish_dependency));
775
776
3.39k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.39k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.39k
    return Status::OK();
779
3.39k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
32
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
32
    RETURN_IF_ERROR(Base::init(state, info));
771
32
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
32
                                                         "AsyncWriterDependency", true);
773
32
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
32
                             _finish_dependency));
775
776
32
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
32
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
32
    return Status::OK();
779
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
176
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
176
    RETURN_IF_ERROR(Base::init(state, info));
771
176
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
176
                                                         "AsyncWriterDependency", true);
773
176
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
176
                             _finish_dependency));
775
776
176
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
176
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
176
    return Status::OK();
779
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
640
    RETURN_IF_ERROR(Base::init(state, info));
771
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
640
                                                         "AsyncWriterDependency", true);
773
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
640
                             _finish_dependency));
775
776
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
640
    return Status::OK();
779
640
}
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
66.3k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
66.3k
    RETURN_IF_ERROR(Base::open(state));
785
66.3k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
591k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
525k
        RETURN_IF_ERROR(
788
525k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
525k
    }
790
66.3k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
66.3k
    return Status::OK();
792
66.3k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
517
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
517
    RETURN_IF_ERROR(Base::open(state));
785
517
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.77k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
2.26k
        RETURN_IF_ERROR(
788
2.26k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
2.26k
    }
790
517
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
517
    return Status::OK();
792
517
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
86
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
86
    RETURN_IF_ERROR(Base::open(state));
785
86
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
402
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
316
        RETURN_IF_ERROR(
788
316
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
316
    }
790
86
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
86
    return Status::OK();
792
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
46.8k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
46.8k
    RETURN_IF_ERROR(Base::open(state));
785
46.8k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
349k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
302k
        RETURN_IF_ERROR(
788
302k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
302k
    }
790
46.8k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
46.8k
    return Status::OK();
792
46.8k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.31k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.31k
    RETURN_IF_ERROR(Base::open(state));
785
9.31k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
56.2k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
46.9k
        RETURN_IF_ERROR(
788
46.9k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
46.9k
    }
790
9.31k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.31k
    return Status::OK();
792
9.31k
}
_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.40k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.40k
    RETURN_IF_ERROR(Base::open(state));
785
3.40k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
42.0k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
38.6k
        RETURN_IF_ERROR(
788
38.6k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
38.6k
    }
790
3.40k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.40k
    return Status::OK();
792
3.40k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
32
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
32
    RETURN_IF_ERROR(Base::open(state));
785
32
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
128
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
96
        RETURN_IF_ERROR(
788
96
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
96
    }
790
32
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
32
    return Status::OK();
792
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
176
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
176
    RETURN_IF_ERROR(Base::open(state));
785
176
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
526
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
350
        RETURN_IF_ERROR(
788
350
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
350
    }
790
176
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
176
    return Status::OK();
792
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
640
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
640
    RETURN_IF_ERROR(Base::open(state));
785
640
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
4.40k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
3.76k
        RETURN_IF_ERROR(
788
3.76k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
3.76k
    }
790
640
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
640
    return Status::OK();
792
640
}
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
90.5k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
90.5k
    return _writer->sink(block, eos);
798
90.5k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.14k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.14k
    return _writer->sink(block, eos);
798
2.14k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
110
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
110
    return _writer->sink(block, eos);
798
110
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
63.1k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
63.1k
    return _writer->sink(block, eos);
798
63.1k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
10.8k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
10.8k
    return _writer->sink(block, eos);
798
10.8k
}
_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
5.38k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.38k
    return _writer->sink(block, eos);
798
5.38k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
40
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
40
    return _writer->sink(block, eos);
798
40
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
198
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
198
    return _writer->sink(block, eos);
798
198
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
796
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
796
    return _writer->sink(block, eos);
798
796
}
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
66.4k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
66.4k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
66.4k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
66.4k
    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
66.4k
    if (_writer) {
810
66.4k
        Status st = _writer->get_writer_status();
811
66.4k
        if (exec_status.ok()) {
812
66.3k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
66.3k
                                                       : Status::Cancelled("force close"));
814
66.3k
        } else {
815
117
            _writer->force_close(exec_status);
816
117
        }
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
66.4k
        RETURN_IF_ERROR(st);
821
66.4k
    }
822
66.3k
    return Base::close(state, exec_status);
823
66.4k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
505
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
505
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
505
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
505
    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
505
    if (_writer) {
810
505
        Status st = _writer->get_writer_status();
811
505
        if (exec_status.ok()) {
812
505
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
505
                                                       : Status::Cancelled("force close"));
814
505
        } 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
505
        RETURN_IF_ERROR(st);
821
505
    }
822
505
    return Base::close(state, exec_status);
823
505
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
86
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
86
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
86
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
86
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
86
    if (_writer) {
810
86
        Status st = _writer->get_writer_status();
811
86
        if (exec_status.ok()) {
812
86
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
86
                                                       : Status::Cancelled("force close"));
814
86
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
86
        RETURN_IF_ERROR(st);
821
86
    }
822
78
    return Base::close(state, exec_status);
823
86
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
46.9k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
46.9k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
46.9k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
46.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
46.9k
    if (_writer) {
810
46.9k
        Status st = _writer->get_writer_status();
811
46.9k
        if (exec_status.ok()) {
812
46.9k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
46.9k
                                                       : Status::Cancelled("force close"));
814
46.9k
        } else {
815
51
            _writer->force_close(exec_status);
816
51
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
46.9k
        RETURN_IF_ERROR(st);
821
46.9k
    }
822
46.8k
    return Base::close(state, exec_status);
823
46.9k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.34k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.34k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.34k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.34k
    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.36k
    if (_writer) {
810
9.36k
        Status st = _writer->get_writer_status();
811
9.36k
        if (exec_status.ok()) {
812
9.29k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.29k
                                                       : Status::Cancelled("force close"));
814
9.29k
        } else {
815
66
            _writer->force_close(exec_status);
816
66
        }
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.36k
        RETURN_IF_ERROR(st);
821
9.36k
    }
822
9.34k
    return Base::close(state, exec_status);
823
9.34k
}
_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.40k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.40k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.40k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.40k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
3.40k
    if (_writer) {
810
3.40k
        Status st = _writer->get_writer_status();
811
3.40k
        if (exec_status.ok()) {
812
3.40k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.40k
                                                       : Status::Cancelled("force close"));
814
3.40k
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
3.40k
        RETURN_IF_ERROR(st);
821
3.40k
    }
822
3.39k
    return Base::close(state, exec_status);
823
3.40k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
32
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
32
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
32
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
32
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
32
    if (_writer) {
810
32
        Status st = _writer->get_writer_status();
811
32
        if (exec_status.ok()) {
812
32
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
32
                                                       : Status::Cancelled("force close"));
814
32
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
32
        RETURN_IF_ERROR(st);
821
32
    }
822
32
    return Base::close(state, exec_status);
823
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
176
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
176
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
176
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
176
    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
176
    if (_writer) {
810
176
        Status st = _writer->get_writer_status();
811
176
        if (exec_status.ok()) {
812
176
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
176
                                                       : Status::Cancelled("force close"));
814
176
        } 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
176
        RETURN_IF_ERROR(st);
821
176
    }
822
176
    return Base::close(state, exec_status);
823
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
640
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
640
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
640
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
640
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
640
    if (_writer) {
810
640
        Status st = _writer->get_writer_status();
811
640
        if (exec_status.ok()) {
812
640
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
640
                                                       : Status::Cancelled("force close"));
814
640
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
640
        RETURN_IF_ERROR(st);
821
640
    }
822
640
    return Base::close(state, exec_status);
823
640
}
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