Coverage Report

Created: 2026-07-13 15:08

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exec/operator/operator.cpp
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#include "exec/operator/operator.h"
19
20
#include <algorithm>
21
22
#include "common/status.h"
23
#include "exec/common/util.hpp"
24
#include "exec/exchange/local_exchange_sink_operator.h"
25
#include "exec/exchange/local_exchange_source_operator.h"
26
#include "exec/operator/aggregation_sink_operator.h"
27
#include "exec/operator/aggregation_source_operator.h"
28
#include "exec/operator/analytic_sink_operator.h"
29
#include "exec/operator/analytic_source_operator.h"
30
#include "exec/operator/assert_num_rows_operator.h"
31
#include "exec/operator/blackhole_sink_operator.h"
32
#include "exec/operator/bucketed_aggregation_sink_operator.h"
33
#include "exec/operator/bucketed_aggregation_source_operator.h"
34
#include "exec/operator/cache_sink_operator.h"
35
#include "exec/operator/cache_source_operator.h"
36
#include "exec/operator/datagen_operator.h"
37
#include "exec/operator/dict_sink_operator.h"
38
#include "exec/operator/distinct_streaming_aggregation_operator.h"
39
#include "exec/operator/empty_set_operator.h"
40
#include "exec/operator/exchange_sink_operator.h"
41
#include "exec/operator/exchange_source_operator.h"
42
#include "exec/operator/file_scan_operator.h"
43
#include "exec/operator/group_commit_block_sink_operator.h"
44
#include "exec/operator/group_commit_scan_operator.h"
45
#include "exec/operator/hashjoin_build_sink.h"
46
#include "exec/operator/hashjoin_probe_operator.h"
47
#include "exec/operator/hive_table_sink_operator.h"
48
#include "exec/operator/iceberg_delete_sink_operator.h"
49
#include "exec/operator/iceberg_merge_sink_operator.h"
50
#include "exec/operator/iceberg_table_sink_operator.h"
51
#include "exec/operator/jdbc_scan_operator.h"
52
#include "exec/operator/jdbc_table_sink_operator.h"
53
#include "exec/operator/local_merge_sort_source_operator.h"
54
#include "exec/operator/materialization_opertor.h"
55
#include "exec/operator/maxcompute_table_sink_operator.h"
56
#include "exec/operator/memory_scratch_sink_operator.h"
57
#include "exec/operator/meta_scan_operator.h"
58
#include "exec/operator/mock_operator.h"
59
#include "exec/operator/mock_scan_operator.h"
60
#include "exec/operator/multi_cast_data_stream_sink.h"
61
#include "exec/operator/multi_cast_data_stream_source.h"
62
#include "exec/operator/nested_loop_join_build_operator.h"
63
#include "exec/operator/nested_loop_join_probe_operator.h"
64
#include "exec/operator/olap_scan_operator.h"
65
#include "exec/operator/olap_table_sink_operator.h"
66
#include "exec/operator/olap_table_sink_v2_operator.h"
67
#include "exec/operator/partition_sort_sink_operator.h"
68
#include "exec/operator/partition_sort_source_operator.h"
69
#include "exec/operator/partitioned_aggregation_sink_operator.h"
70
#include "exec/operator/partitioned_aggregation_source_operator.h"
71
#include "exec/operator/partitioned_hash_join_probe_operator.h"
72
#include "exec/operator/partitioned_hash_join_sink_operator.h"
73
#include "exec/operator/rec_cte_anchor_sink_operator.h"
74
#include "exec/operator/rec_cte_scan_operator.h"
75
#include "exec/operator/rec_cte_sink_operator.h"
76
#include "exec/operator/rec_cte_source_operator.h"
77
#include "exec/operator/repeat_operator.h"
78
#include "exec/operator/result_file_sink_operator.h"
79
#include "exec/operator/result_sink_operator.h"
80
#include "exec/operator/schema_scan_operator.h"
81
#include "exec/operator/select_operator.h"
82
#include "exec/operator/set_probe_sink_operator.h"
83
#include "exec/operator/set_sink_operator.h"
84
#include "exec/operator/set_source_operator.h"
85
#include "exec/operator/sort_sink_operator.h"
86
#include "exec/operator/sort_source_operator.h"
87
#include "exec/operator/spill_iceberg_table_sink_operator.h"
88
#include "exec/operator/spill_sort_sink_operator.h"
89
#include "exec/operator/spill_sort_source_operator.h"
90
#include "exec/operator/streaming_aggregation_operator.h"
91
#include "exec/operator/table_function_operator.h"
92
#include "exec/operator/tvf_table_sink_operator.h"
93
#include "exec/operator/union_sink_operator.h"
94
#include "exec/operator/union_source_operator.h"
95
#include "exec/pipeline/dependency.h"
96
#include "exec/pipeline/pipeline.h"
97
#include "exprs/vexpr.h"
98
#include "exprs/vexpr_context.h"
99
#include "runtime/runtime_profile.h"
100
#include "runtime/runtime_profile_counter_names.h"
101
#include "util/debug_util.h"
102
#include "util/string_util.h"
103
104
namespace doris {
105
class RowDescriptor;
106
class RuntimeState;
107
} // namespace doris
108
109
namespace doris {
110
111
0
Status OperatorBase::close(RuntimeState* state) {
112
0
    if (_is_closed) {
113
0
        return Status::OK();
114
0
    }
115
0
    _is_closed = true;
116
0
    return Status::OK();
117
0
}
118
119
template <typename SharedStateArg>
120
2.06M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.06M
    if (_parent->nereids_id() == -1) {
122
1.08M
        return fmt::format("(id={})", _parent->node_id());
123
1.08M
    } else {
124
974k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
974k
    }
126
2.06M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
72.0k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
72.0k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
72.0k
    } else {
124
72.0k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
72.0k
    }
126
72.0k
}
_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
273k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
273k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
273k
    } else {
124
273k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
273k
    }
126
273k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
24
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
24
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
24
    } else {
124
24
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
24
    }
126
24
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
10.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
10.9k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
10.9k
    } else {
124
10.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
10.9k
    }
126
10.9k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
8.32k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
8.32k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
8.31k
    } else {
124
8.31k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
8.31k
    }
126
8.32k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
154k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
154k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
154k
    } else {
124
154k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
154k
    }
126
154k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
766
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
766
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
766
    } else {
124
766
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
766
    }
126
766
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
111
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
111
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
111
    } else {
124
111
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
111
    }
126
111
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
747k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
747k
    if (_parent->nereids_id() == -1) {
122
356k
        return fmt::format("(id={})", _parent->node_id());
123
391k
    } else {
124
391k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
391k
    }
126
747k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
56.6k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
56.6k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
56.6k
    } else {
124
56.6k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
56.6k
    }
126
56.6k
}
_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.1k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.1k
    if (_parent->nereids_id() == -1) {
122
11.1k
        return fmt::format("(id={})", _parent->node_id());
123
11.1k
    } else {
124
2
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
2
    }
126
11.1k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
464
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
464
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
362
    } else {
124
362
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
362
    }
126
464
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
5.12k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
5.12k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
5.11k
    } else {
124
5.11k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
5.11k
    }
126
5.12k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
722k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
722k
    if (_parent->nereids_id() == -1) {
122
721k
        return fmt::format("(id={})", _parent->node_id());
123
721k
    } else {
124
1.80k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.80k
    }
126
722k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
164
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
164
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
164
    } else {
124
164
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
164
    }
126
164
}
127
128
template <typename SharedStateArg>
129
1.33M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.33M
    if (_parent->nereids_id() == -1) {
131
758k
        return fmt::format("(id={})", _parent->node_id());
132
758k
    } else {
133
580k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
580k
    }
135
1.33M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
120k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
120k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
120k
    } else {
133
120k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
120k
    }
135
120k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
2
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
2
    if (_parent->nereids_id() == -1) {
131
1
        return fmt::format("(id={})", _parent->node_id());
132
1
    } else {
133
1
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
1
    }
135
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
275k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
275k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
275k
    } else {
133
275k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
275k
    }
135
275k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
31
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
31
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
31
    } else {
133
31
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
31
    }
135
31
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
10.9k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
10.9k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
10.9k
    } else {
133
10.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
10.9k
    }
135
10.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
8.41k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
8.41k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
8.40k
    } else {
133
8.40k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
8.40k
    }
135
8.41k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
154k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
154k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
154k
    } else {
133
154k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
154k
    }
135
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
777
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
777
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
777
    } else {
133
777
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
777
    }
135
777
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
121
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
121
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
121
    } else {
133
121
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
121
    }
135
121
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
95
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
95
    if (_parent->nereids_id() == -1) {
131
95
        return fmt::format("(id={})", _parent->node_id());
132
95
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
95
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
8.13k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
8.13k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
8.13k
    } else {
133
8.13k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
8.13k
    }
135
8.13k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
464
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
464
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
362
    } else {
133
362
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
362
    }
135
464
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.3k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.3k
    if (_parent->nereids_id() == -1) {
131
12.3k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
280k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
280k
    if (_parent->nereids_id() == -1) {
131
280k
        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
280k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
466k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
466k
    if (_parent->nereids_id() == -1) {
131
465k
        return fmt::format("(id={})", _parent->node_id());
132
465k
    } else {
133
1.46k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
1.46k
    }
135
466k
}
_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.8k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
29.8k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
29.8k
    _terminated = true;
143
29.8k
    return Status::OK();
144
29.8k
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
24.0k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
24.0k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
24.0k
    _terminated = true;
143
24.0k
    return Status::OK();
144
24.0k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.15k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.15k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1.15k
    _terminated = true;
143
1.15k
    return Status::OK();
144
1.15k
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
4
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
4
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
4
    _terminated = true;
143
4
    return Status::OK();
144
4
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2
    _terminated = true;
143
2
    return Status::OK();
144
2
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.62k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.62k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.62k
    _terminated = true;
143
2.62k
    return Status::OK();
144
2.62k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
6
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
6
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
6
    _terminated = true;
143
6
    return Status::OK();
144
6
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
979
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
979
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
979
    _terminated = true;
143
979
    return Status::OK();
144
979
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
6
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
6
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
6
    _terminated = true;
143
6
    return Status::OK();
144
6
}
_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
677
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
677
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
677
    _terminated = true;
143
677
    return Status::OK();
144
677
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
228
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
228
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
228
    _terminated = true;
143
228
    return Status::OK();
144
228
}
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
416k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
416k
    return _child && _child->is_serial_operator() && !is_source()
148
416k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
416k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
416k
}
151
152
29.5k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
29.5k
    if (!_child) {
154
24.5k
        return false;
155
24.5k
    }
156
5.04k
    if (_child->is_serial_operator()) {
157
152
        return true;
158
152
    }
159
4.89k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.89k
    return child_distribution.need_local_exchange() &&
161
4.89k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.04k
}
163
164
82.6k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.6k
    return _child->row_desc();
166
82.6k
}
167
168
template <typename SharedStateArg>
169
17.9k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
17.9k
    fmt::memory_buffer debug_string_buffer;
171
17.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
17.9k
    return fmt::to_string(debug_string_buffer);
173
17.9k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
72
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
72
    fmt::memory_buffer debug_string_buffer;
171
72
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
72
    return fmt::to_string(debug_string_buffer);
173
72
}
_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
32
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
32
    fmt::memory_buffer debug_string_buffer;
171
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
32
    return fmt::to_string(debug_string_buffer);
173
32
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16
    fmt::memory_buffer debug_string_buffer;
171
16
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16
    return fmt::to_string(debug_string_buffer);
173
16
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
32
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
32
    fmt::memory_buffer debug_string_buffer;
171
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
32
    return fmt::to_string(debug_string_buffer);
173
32
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
17.7k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
17.7k
    fmt::memory_buffer debug_string_buffer;
171
17.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
17.7k
    return fmt::to_string(debug_string_buffer);
173
17.7k
}
_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
68
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
68
    fmt::memory_buffer debug_string_buffer;
171
68
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
68
    return fmt::to_string(debug_string_buffer);
173
68
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
17.8k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
17.8k
    fmt::memory_buffer debug_string_buffer;
178
17.8k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
17.8k
    return fmt::to_string(debug_string_buffer);
180
17.8k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
12
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
12
    fmt::memory_buffer debug_string_buffer;
178
12
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
12
    return fmt::to_string(debug_string_buffer);
180
12
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
32
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
32
    fmt::memory_buffer debug_string_buffer;
178
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
32
    return fmt::to_string(debug_string_buffer);
180
32
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
12
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
12
    fmt::memory_buffer debug_string_buffer;
178
12
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
12
    return fmt::to_string(debug_string_buffer);
180
12
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
32
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
32
    fmt::memory_buffer debug_string_buffer;
178
32
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
32
    return fmt::to_string(debug_string_buffer);
180
32
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
68
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
68
    fmt::memory_buffer debug_string_buffer;
178
68
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
68
    return fmt::to_string(debug_string_buffer);
180
68
}
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
49
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
49
    fmt::memory_buffer debug_string_buffer;
178
49
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
49
    return fmt::to_string(debug_string_buffer);
180
49
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
17.6k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
17.6k
    fmt::memory_buffer debug_string_buffer;
178
17.6k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
17.6k
    return fmt::to_string(debug_string_buffer);
180
17.6k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
18.0k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
18.0k
    fmt::memory_buffer debug_string_buffer;
184
18.0k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
18.0k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
18.0k
                   _is_serial_operator);
187
18.0k
    return fmt::to_string(debug_string_buffer);
188
18.0k
}
189
190
17.9k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
17.9k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
17.9k
}
193
194
824k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
824k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
824k
    _nereids_id = tnode.nereids_id;
197
824k
    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
824k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
824k
    _op_name = substr + "_OPERATOR";
212
213
824k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
824k
    } else if (tnode.__isset.conjuncts) {
216
445k
        for (const auto& conjunct : tnode.conjuncts) {
217
445k
            VExprContextSPtr context;
218
445k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
445k
            _conjuncts.emplace_back(context);
220
445k
        }
221
145k
    }
222
223
    // create the projections expr
224
824k
    if (tnode.__isset.projections) {
225
320k
        DCHECK(tnode.__isset.output_tuple_id);
226
320k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
320k
    }
228
824k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.02k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.02k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.14k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.14k
            VExprContextSPtrs projections;
233
8.14k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.14k
            _intermediate_projections.push_back(projections);
235
8.14k
        }
236
4.02k
    }
237
824k
    return Status::OK();
238
824k
}
239
240
856k
Status OperatorXBase::prepare(RuntimeState* state) {
241
856k
    for (auto& conjunct : _conjuncts) {
242
445k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
445k
    }
244
856k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
803k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
587k
            return a->execute_cost() < b->execute_cost();
247
587k
        });
248
803k
    };
249
250
864k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.14k
        RETURN_IF_ERROR(
252
8.14k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.14k
    }
254
856k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
856k
    if (has_output_row_desc()) {
257
320k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
320k
    }
259
260
856k
    for (auto& conjunct : _conjuncts) {
261
445k
        RETURN_IF_ERROR(conjunct->open(state));
262
445k
    }
263
856k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
856k
    for (auto& projections : _intermediate_projections) {
265
8.14k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.14k
    }
267
856k
    if (_child && !is_source()) {
268
128k
        RETURN_IF_ERROR(_child->prepare(state));
269
128k
    }
270
271
856k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
856k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
856k
    return Status::OK();
277
856k
}
278
279
6.97k
Status OperatorXBase::terminate(RuntimeState* state) {
280
6.97k
    if (_child && !is_source()) {
281
1.11k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.11k
    }
283
6.97k
    auto result = state->get_local_state_result(operator_id());
284
6.97k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
6.97k
    return result.value()->terminate(state);
288
6.97k
}
289
290
5.74M
Status OperatorXBase::close(RuntimeState* state) {
291
5.74M
    if (_child && !is_source()) {
292
942k
        RETURN_IF_ERROR(_child->close(state));
293
942k
    }
294
5.74M
    auto result = state->get_local_state_result(operator_id());
295
5.74M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
5.74M
    return result.value()->close(state);
299
5.74M
}
300
301
304k
void PipelineXLocalStateBase::clear_origin_block() {
302
304k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
304k
}
304
305
568k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
568k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
568k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
568k
    return Status::OK();
310
568k
}
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
304k
                                     Block* output_block) const {
319
304k
    auto* local_state = state->get_local_state(operator_id());
320
304k
    SCOPED_TIMER(local_state->exec_time_counter());
321
304k
    SCOPED_TIMER(local_state->_projection_timer);
322
304k
    const size_t rows = origin_block->rows();
323
304k
    if (rows == 0) {
324
158k
        return Status::OK();
325
158k
    }
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
2.02k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
2.02k
        new_columns.resize(projections.size());
336
13.4k
        for (int i = 0; i < projections.size(); i++) {
337
11.4k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
11.4k
            if (new_columns[i].column->size() != rows) {
339
0
                return Status::InternalError(
340
0
                        "intermediate projection result column size {} not equal input rows {}, "
341
0
                        "expr: {}",
342
0
                        new_columns[i].column->size(), rows,
343
0
                        projections[i]->root()->debug_string());
344
0
            }
345
11.4k
        }
346
2.02k
        Block tmp_block {new_columns};
347
2.02k
        bytes_usage += tmp_block.allocated_bytes();
348
2.02k
        input_block.swap(tmp_block);
349
2.02k
    }
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
702k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
702k
        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
702k
        } else {
368
702k
            if (_keep_origin || !from->is_exclusive()) {
369
702k
                to->insert_range_from(*from, 0, rows);
370
702k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
702k
        }
375
702k
    };
376
377
145k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
145k
            output_block, *_output_row_descriptor);
379
145k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
145k
    auto& mutable_columns = mutable_block.mutable_columns();
381
145k
    if (rows != 0) {
382
145k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
848k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
702k
            ColumnPtr column_ptr;
385
702k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
702k
            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
702k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
702k
            bytes_usage += column_ptr->allocated_bytes();
394
702k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
702k
        }
396
145k
        DCHECK(mutable_block.rows() == rows);
397
145k
    }
398
145k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
145k
    return Status::OK();
401
145k
}
402
403
4.65M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.65M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.65M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.65M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.65M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.65M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.65M
            if (_debug_point_count++ % 2 == 0) {
410
4.65M
                return Status::OK();
411
4.65M
            }
412
4.65M
        }
413
4.65M
    });
414
415
4.65M
    Status status;
416
4.65M
    auto* local_state = state->get_local_state(operator_id());
417
4.65M
    Defer defer([&]() {
418
4.65M
        if (status.ok()) {
419
4.65M
            local_state->update_output_block_counters(*block);
420
4.65M
        }
421
4.65M
    });
422
4.65M
    if (_output_row_descriptor) {
423
304k
        local_state->clear_origin_block();
424
304k
        status = get_block(state, &local_state->_origin_block, eos);
425
304k
        if (UNLIKELY(!status.ok())) {
426
19
            return status;
427
19
        }
428
303k
        status = do_projections(state, &local_state->_origin_block, block);
429
303k
        return status;
430
304k
    }
431
4.35M
    status = get_block(state, block, eos);
432
4.35M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.35M
    return status;
434
4.35M
}
435
436
3.19M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.19M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
7.17k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
7.17k
        *eos = true;
440
7.17k
    }
441
442
3.19M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.19M
        auto op_name = to_lower(_parent->_op_name);
444
3.19M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.19M
        arg_op_name = to_lower(arg_op_name);
446
447
3.19M
        if (op_name == arg_op_name) {
448
3.19M
            *eos = true;
449
3.19M
        }
450
3.19M
    });
451
452
3.19M
    if (auto rows = block->rows()) {
453
930k
        _num_rows_returned += rows;
454
930k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
930k
    }
456
3.19M
}
457
458
29.8k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
29.8k
    auto result = state->get_sink_local_state_result();
460
29.8k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
29.8k
    return result.value()->terminate(state);
464
29.8k
}
465
466
17.8k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
17.8k
    fmt::memory_buffer debug_string_buffer;
468
469
17.8k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
17.8k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
17.8k
    return fmt::to_string(debug_string_buffer);
472
17.8k
}
473
474
17.8k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
17.8k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
17.8k
}
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
459k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
459k
        op_name = it->second;
484
459k
    }
485
458k
    _name = op_name + "_OPERATOR";
486
458k
    return Status::OK();
487
458k
}
488
489
313k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
313k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
313k
    _nereids_id = tnode.nereids_id;
492
313k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
313k
    _name = substr + "_SINK_OPERATOR";
494
313k
    return Status::OK();
495
313k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.02M
                                                            LocalSinkStateInfo& info) {
500
2.02M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.02M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.02M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.02M
    return Status::OK();
504
2.02M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
120k
                                                            LocalSinkStateInfo& info) {
500
120k
    auto local_state = LocalStateType::create_unique(this, state);
501
120k
    RETURN_IF_ERROR(local_state->init(state, info));
502
120k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
120k
    return Status::OK();
504
120k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
401k
                                                            LocalSinkStateInfo& info) {
500
401k
    auto local_state = LocalStateType::create_unique(this, state);
501
401k
    RETURN_IF_ERROR(local_state->init(state, info));
502
401k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
401k
    return Status::OK();
504
401k
}
_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
515
                                                            LocalSinkStateInfo& info) {
500
515
    auto local_state = LocalStateType::create_unique(this, state);
501
515
    RETURN_IF_ERROR(local_state->init(state, info));
502
515
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
515
    return Status::OK();
504
515
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
45.8k
                                                            LocalSinkStateInfo& info) {
500
45.8k
    auto local_state = LocalStateType::create_unique(this, state);
501
45.8k
    RETURN_IF_ERROR(local_state->init(state, info));
502
45.8k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
45.8k
    return Status::OK();
504
45.8k
}
_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
8.40k
                                                            LocalSinkStateInfo& info) {
500
8.40k
    auto local_state = LocalStateType::create_unique(this, state);
501
8.40k
    RETURN_IF_ERROR(local_state->init(state, info));
502
8.40k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
8.40k
    return Status::OK();
504
8.40k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
88
                                                            LocalSinkStateInfo& info) {
500
88
    auto local_state = LocalStateType::create_unique(this, state);
501
88
    RETURN_IF_ERROR(local_state->init(state, info));
502
88
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
88
    return Status::OK();
504
88
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
276k
                                                            LocalSinkStateInfo& info) {
500
276k
    auto local_state = LocalStateType::create_unique(this, state);
501
276k
    RETURN_IF_ERROR(local_state->init(state, info));
502
276k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
276k
    return Status::OK();
504
276k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
31
                                                            LocalSinkStateInfo& info) {
500
31
    auto local_state = LocalStateType::create_unique(this, state);
501
31
    RETURN_IF_ERROR(local_state->init(state, info));
502
31
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
31
    return Status::OK();
504
31
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
281k
                                                            LocalSinkStateInfo& info) {
500
281k
    auto local_state = LocalStateType::create_unique(this, state);
501
281k
    RETURN_IF_ERROR(local_state->init(state, info));
502
281k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
281k
    return Status::OK();
504
281k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
154k
                                                            LocalSinkStateInfo& info) {
500
154k
    auto local_state = LocalStateType::create_unique(this, state);
501
154k
    RETURN_IF_ERROR(local_state->init(state, info));
502
154k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
154k
    return Status::OK();
504
154k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
778
                                                            LocalSinkStateInfo& info) {
500
778
    auto local_state = LocalStateType::create_unique(this, state);
501
778
    RETURN_IF_ERROR(local_state->init(state, info));
502
778
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
778
    return Status::OK();
504
778
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
121
                                                            LocalSinkStateInfo& info) {
500
121
    auto local_state = LocalStateType::create_unique(this, state);
501
121
    RETURN_IF_ERROR(local_state->init(state, info));
502
121
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
121
    return Status::OK();
504
121
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
675k
                                                            LocalSinkStateInfo& info) {
500
675k
    auto local_state = LocalStateType::create_unique(this, state);
501
675k
    RETURN_IF_ERROR(local_state->init(state, info));
502
675k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
675k
    return Status::OK();
504
675k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
10.9k
                                                            LocalSinkStateInfo& info) {
500
10.9k
    auto local_state = LocalStateType::create_unique(this, state);
501
10.9k
    RETURN_IF_ERROR(local_state->init(state, info));
502
10.9k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
10.9k
    return Status::OK();
504
10.9k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
8.12k
                                                            LocalSinkStateInfo& info) {
500
8.12k
    auto local_state = LocalStateType::create_unique(this, state);
501
8.12k
    RETURN_IF_ERROR(local_state->init(state, info));
502
8.12k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
8.12k
    return Status::OK();
504
8.12k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.85k
                                                            LocalSinkStateInfo& info) {
500
3.85k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.85k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.85k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.85k
    return Status::OK();
504
3.85k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
362
                                                            LocalSinkStateInfo& info) {
500
362
    auto local_state = LocalStateType::create_unique(this, state);
501
362
    RETURN_IF_ERROR(local_state->init(state, info));
502
362
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
362
    return Status::OK();
504
362
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.69k
                                                            LocalSinkStateInfo& info) {
500
4.69k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.69k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.69k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.69k
    return Status::OK();
504
4.69k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.55k
                                                            LocalSinkStateInfo& info) {
500
2.55k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.55k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.55k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.55k
    return Status::OK();
504
2.55k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.56k
                                                            LocalSinkStateInfo& info) {
500
2.56k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.56k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.56k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.56k
    return Status::OK();
504
2.56k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.51k
                                                            LocalSinkStateInfo& info) {
500
2.51k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.51k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.51k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.51k
    return Status::OK();
504
2.51k
}
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
1
                                                            LocalSinkStateInfo& info) {
500
1
    auto local_state = LocalStateType::create_unique(this, state);
501
1
    RETURN_IF_ERROR(local_state->init(state, info));
502
1
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
1
    return Status::OK();
504
1
}
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
558
                                                            LocalSinkStateInfo& info) {
500
558
    auto local_state = LocalStateType::create_unique(this, state);
501
558
    RETURN_IF_ERROR(local_state->init(state, info));
502
558
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
558
    return Status::OK();
504
558
}
_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
103
                                                            LocalSinkStateInfo& info) {
500
103
    auto local_state = LocalStateType::create_unique(this, state);
501
103
    RETURN_IF_ERROR(local_state->init(state, info));
502
103
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
103
    return Status::OK();
504
103
}
_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.69M
            ss->related_op_ids.insert(dest);
519
1.69M
        }
520
1.70M
        return ss;
521
1.70M
    }
522
1.70M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
101k
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
101k
    } else {
515
101k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
101k
        ss->id = operator_id();
517
101k
        for (auto& dest : dests_id()) {
518
101k
            ss->related_op_ids.insert(dest);
519
101k
        }
520
101k
        return ss;
521
101k
    }
522
101k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
402k
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
402k
    } else {
515
402k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
402k
        ss->id = operator_id();
517
402k
        for (auto& dest : dests_id()) {
518
400k
            ss->related_op_ids.insert(dest);
519
400k
        }
520
402k
        return ss;
521
402k
    }
522
402k
}
_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
518
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
518
    } else {
515
518
        auto ss = LocalStateType::SharedStateType::create_shared();
516
518
        ss->id = operator_id();
517
518
        for (auto& dest : dests_id()) {
518
518
            ss->related_op_ids.insert(dest);
519
518
        }
520
518
        return ss;
521
518
    }
522
518
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
45.9k
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
45.9k
    } else {
515
45.9k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
45.9k
        ss->id = operator_id();
517
45.9k
        for (auto& dest : dests_id()) {
518
45.9k
            ss->related_op_ids.insert(dest);
519
45.9k
        }
520
45.9k
        return ss;
521
45.9k
    }
522
45.9k
}
_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.40k
            ss->related_op_ids.insert(dest);
519
3.40k
        }
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
8.43k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
8.43k
    } else {
515
8.43k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
8.43k
        ss->id = operator_id();
517
8.43k
        for (auto& dest : dests_id()) {
518
8.43k
            ss->related_op_ids.insert(dest);
519
8.43k
        }
520
8.43k
        return ss;
521
8.43k
    }
522
8.43k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
91
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
91
    } else {
515
91
        auto ss = LocalStateType::SharedStateType::create_shared();
516
91
        ss->id = operator_id();
517
91
        for (auto& dest : dests_id()) {
518
91
            ss->related_op_ids.insert(dest);
519
91
        }
520
91
        return ss;
521
91
    }
522
91
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
276k
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
276k
    } else {
515
276k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
276k
        ss->id = operator_id();
517
276k
        for (auto& dest : dests_id()) {
518
276k
            ss->related_op_ids.insert(dest);
519
276k
        }
520
276k
        return ss;
521
276k
    }
522
276k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
33
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
33
    } else {
515
33
        auto ss = LocalStateType::SharedStateType::create_shared();
516
33
        ss->id = operator_id();
517
33
        for (auto& dest : dests_id()) {
518
33
            ss->related_op_ids.insert(dest);
519
33
        }
520
33
        return ss;
521
33
    }
522
33
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
154k
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
154k
    } else {
515
154k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
154k
        ss->id = operator_id();
517
154k
        for (auto& dest : dests_id()) {
518
154k
            ss->related_op_ids.insert(dest);
519
154k
        }
520
154k
        return ss;
521
154k
    }
522
154k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
120
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
120
    } else {
515
120
        auto ss = LocalStateType::SharedStateType::create_shared();
516
120
        ss->id = operator_id();
517
120
        for (auto& dest : dests_id()) {
518
120
            ss->related_op_ids.insert(dest);
519
120
        }
520
120
        return ss;
521
120
    }
522
120
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
677k
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
677k
    } else {
515
677k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
677k
        ss->id = operator_id();
517
677k
        for (auto& dest : dests_id()) {
518
673k
            ss->related_op_ids.insert(dest);
519
673k
        }
520
677k
        return ss;
521
677k
    }
522
677k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
10.9k
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.9k
    } else {
515
10.9k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
10.9k
        ss->id = operator_id();
517
10.9k
        for (auto& dest : dests_id()) {
518
10.9k
            ss->related_op_ids.insert(dest);
519
10.9k
        }
520
10.9k
        return ss;
521
10.9k
    }
522
10.9k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
464
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
464
    } else {
515
464
        auto ss = LocalStateType::SharedStateType::create_shared();
516
464
        ss->id = operator_id();
517
465
        for (auto& dest : dests_id()) {
518
465
            ss->related_op_ids.insert(dest);
519
465
        }
520
464
        return ss;
521
464
    }
522
464
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.55k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
2.55k
    } else {
515
2.55k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.55k
        ss->id = operator_id();
517
2.56k
        for (auto& dest : dests_id()) {
518
2.56k
            ss->related_op_ids.insert(dest);
519
2.56k
        }
520
2.55k
        return ss;
521
2.55k
    }
522
2.55k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_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.50k
            ss->related_op_ids.insert(dest);
519
2.50k
        }
520
2.51k
        return ss;
521
2.51k
    }
522
2.51k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
561
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
561
    } else {
515
561
        auto ss = LocalStateType::SharedStateType::create_shared();
516
561
        ss->id = operator_id();
517
561
        for (auto& dest : dests_id()) {
518
546
            ss->related_op_ids.insert(dest);
519
546
        }
520
561
        return ss;
521
561
    }
522
561
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
104
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
104
    } else {
515
104
        auto ss = LocalStateType::SharedStateType::create_shared();
516
104
        ss->id = operator_id();
517
104
        for (auto& dest : dests_id()) {
518
104
            ss->related_op_ids.insert(dest);
519
104
        }
520
104
        return ss;
521
104
    }
522
104
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.42M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.42M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.42M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.42M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.42M
    return Status::OK();
530
2.42M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
72.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
72.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
72.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
72.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
72.2k
    return Status::OK();
530
72.2k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
307k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
307k
    auto local_state = LocalStateType::create_unique(state, this);
527
307k
    RETURN_IF_ERROR(local_state->init(state, info));
528
307k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
307k
    return Status::OK();
530
307k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
120
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
120
    auto local_state = LocalStateType::create_unique(state, this);
527
120
    RETURN_IF_ERROR(local_state->init(state, info));
528
120
    state->emplace_local_state(operator_id(), std::move(local_state));
529
120
    return Status::OK();
530
120
}
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
8.32k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.32k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.32k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.32k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.32k
    return Status::OK();
530
8.32k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.47k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.47k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.47k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.47k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.47k
    return Status::OK();
530
8.47k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
24
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
24
    auto local_state = LocalStateType::create_unique(state, this);
527
24
    RETURN_IF_ERROR(local_state->init(state, info));
528
24
    state->emplace_local_state(operator_id(), std::move(local_state));
529
24
    return Status::OK();
530
24
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
266k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
266k
    auto local_state = LocalStateType::create_unique(state, this);
527
266k
    RETURN_IF_ERROR(local_state->init(state, info));
528
266k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
266k
    return Status::OK();
530
266k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
154k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
154k
    auto local_state = LocalStateType::create_unique(state, this);
527
154k
    RETURN_IF_ERROR(local_state->init(state, info));
528
154k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
154k
    return Status::OK();
530
154k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
766
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
766
    auto local_state = LocalStateType::create_unique(state, this);
527
766
    RETURN_IF_ERROR(local_state->init(state, info));
528
766
    state->emplace_local_state(operator_id(), std::move(local_state));
529
766
    return Status::OK();
530
766
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
111
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
111
    auto local_state = LocalStateType::create_unique(state, this);
527
111
    RETURN_IF_ERROR(local_state->init(state, info));
528
111
    state->emplace_local_state(operator_id(), std::move(local_state));
529
111
    return Status::OK();
530
111
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
5.95k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
5.95k
    auto local_state = LocalStateType::create_unique(state, this);
527
5.95k
    RETURN_IF_ERROR(local_state->init(state, info));
528
5.95k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
5.95k
    return Status::OK();
530
5.95k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
359k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
359k
    auto local_state = LocalStateType::create_unique(state, this);
527
359k
    RETURN_IF_ERROR(local_state->init(state, info));
528
359k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
359k
    return Status::OK();
530
359k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.25k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.25k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.25k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.25k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.25k
    return Status::OK();
530
1.25k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.9k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.9k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.9k
    return Status::OK();
530
10.9k
}
_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.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.7k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.7k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.7k
    return Status::OK();
530
56.7k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.1k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.1k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.1k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.1k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.1k
    return Status::OK();
530
11.1k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
361
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
361
    auto local_state = LocalStateType::create_unique(state, this);
527
361
    RETURN_IF_ERROR(local_state->init(state, info));
528
361
    state->emplace_local_state(operator_id(), std::move(local_state));
529
361
    return Status::OK();
530
361
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.58k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.58k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.58k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.58k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.58k
    return Status::OK();
530
2.58k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.53k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.53k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.53k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.53k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.53k
    return Status::OK();
530
2.53k
}
_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.19k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.19k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.19k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.19k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.19k
    return Status::OK();
530
2.19k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.01k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.01k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.01k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.01k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.01k
    return Status::OK();
530
7.01k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
726k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
726k
    auto local_state = LocalStateType::create_unique(state, this);
527
726k
    RETURN_IF_ERROR(local_state->init(state, info));
528
726k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
726k
    return Status::OK();
530
726k
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
14
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
14
    auto local_state = LocalStateType::create_unique(state, this);
527
14
    RETURN_IF_ERROR(local_state->init(state, info));
528
14
    state->emplace_local_state(operator_id(), std::move(local_state));
529
14
    return Status::OK();
530
14
}
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
164
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
164
    auto local_state = LocalStateType::create_unique(state, this);
527
164
    RETURN_IF_ERROR(local_state->init(state, info));
528
164
    state->emplace_local_state(operator_id(), std::move(local_state));
529
164
    return Status::OK();
530
164
}
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.18k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.18k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.18k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.18k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.18k
    return Status::OK();
530
2.18k
}
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.73k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.73k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.73k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.73k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.73k
    return Status::OK();
530
1.73k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.80k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.80k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.80k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.80k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.80k
    return Status::OK();
530
2.80k
}
_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
360k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
360k
    auto local_state = LocalStateType::create_unique(state, this);
527
360k
    RETURN_IF_ERROR(local_state->init(state, info));
528
360k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
360k
    return Status::OK();
530
360k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.02M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.41M
        : _num_rows_returned(0),
538
2.41M
          _rows_returned_counter(nullptr),
539
2.41M
          _parent(parent),
540
2.41M
          _state(state),
541
2.41M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.42M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.42M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.42M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.42M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.42M
    _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.42M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.42M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.42M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.42M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.42M
    if constexpr (!is_fake_shared) {
556
1.32M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
736k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
736k
                                    .first.get()
559
736k
                                    ->template cast<SharedStateArg>();
560
561
736k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
736k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
736k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
736k
        } else if (info.shared_state) {
565
511k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
0
                DCHECK(false);
567
0
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
511k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
511k
            _dependency = _shared_state->create_source_dependency(
572
511k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
511k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
511k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
511k
        } else {
576
80.2k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
13.1k
                DCHECK(false);
578
13.1k
            }
579
80.2k
        }
580
1.32M
    }
581
582
2.42M
    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.42M
    _rows_returned_counter =
587
2.42M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.42M
    _blocks_returned_counter =
589
2.42M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.42M
    _output_block_bytes_counter =
591
2.42M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.42M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.42M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.42M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.42M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.42M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.42M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.42M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.42M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.42M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.42M
    _memory_used_counter =
602
2.42M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.42M
    _common_profile->add_info_string("IsColocate",
604
2.42M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.42M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.42M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.42M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.42M
    return Status::OK();
609
2.42M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
72.5k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
72.5k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
72.5k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
72.5k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
72.5k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
72.5k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
72.5k
    _operator_profile->add_child(_common_profile.get(), true);
553
72.5k
    _operator_profile->add_child(_custom_profile.get(), true);
554
72.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
72.5k
    if constexpr (!is_fake_shared) {
556
72.5k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
18.7k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
18.7k
                                    .first.get()
559
18.7k
                                    ->template cast<SharedStateArg>();
560
561
18.7k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
18.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
18.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
53.8k
        } 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
53.1k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
53.1k
            _dependency = _shared_state->create_source_dependency(
572
53.1k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
53.1k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
53.1k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
53.1k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
692
        }
580
72.5k
    }
581
582
72.5k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
72.5k
    _rows_returned_counter =
587
72.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
72.5k
    _blocks_returned_counter =
589
72.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
72.5k
    _output_block_bytes_counter =
591
72.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
72.5k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
72.5k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
72.5k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
72.5k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
72.5k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
72.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
72.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
72.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
72.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
72.5k
    _memory_used_counter =
602
72.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
72.5k
    _common_profile->add_info_string("IsColocate",
604
72.5k
                                     std::to_string(_parent->is_colocated_operator()));
605
72.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
72.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
72.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
72.5k
    return Status::OK();
609
72.5k
}
_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
276k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
276k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
276k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
276k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
276k
    _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
276k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
276k
    _operator_profile->add_child(_common_profile.get(), true);
553
276k
    _operator_profile->add_child(_custom_profile.get(), true);
554
276k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
276k
    if constexpr (!is_fake_shared) {
556
276k
        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
276k
        } 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
264k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
264k
            _dependency = _shared_state->create_source_dependency(
572
264k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
264k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
264k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
264k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
11.7k
        }
580
276k
    }
581
582
276k
    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
276k
    _rows_returned_counter =
587
276k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
276k
    _blocks_returned_counter =
589
276k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
276k
    _output_block_bytes_counter =
591
276k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
276k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
276k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
276k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
276k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
276k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
276k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
276k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
276k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
276k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
276k
    _memory_used_counter =
602
276k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
276k
    _common_profile->add_info_string("IsColocate",
604
276k
                                     std::to_string(_parent->is_colocated_operator()));
605
276k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
276k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
276k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
276k
    return Status::OK();
609
276k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
24
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
24
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
24
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
24
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
24
    _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
24
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
24
    _operator_profile->add_child(_common_profile.get(), true);
553
24
    _operator_profile->add_child(_custom_profile.get(), true);
554
24
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
24
    if constexpr (!is_fake_shared) {
556
24
        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
24
        } 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
24
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
24
            _dependency = _shared_state->create_source_dependency(
572
24
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
24
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
24
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
24
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
24
    }
581
582
24
    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
24
    _rows_returned_counter =
587
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
24
    _blocks_returned_counter =
589
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
24
    _output_block_bytes_counter =
591
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
24
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
24
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
24
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
24
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
24
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
24
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
24
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
24
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
24
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
24
    _memory_used_counter =
602
24
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
24
    _common_profile->add_info_string("IsColocate",
604
24
                                     std::to_string(_parent->is_colocated_operator()));
605
24
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
24
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
24
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
24
    return Status::OK();
609
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
10.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
10.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
10.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
10.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
10.9k
    _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.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
10.9k
    _operator_profile->add_child(_common_profile.get(), true);
553
10.9k
    _operator_profile->add_child(_custom_profile.get(), true);
554
10.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
10.9k
    if constexpr (!is_fake_shared) {
556
10.9k
        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.9k
        } 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.9k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
10.9k
            _dependency = _shared_state->create_source_dependency(
572
10.9k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
10.9k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
10.9k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
10.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
30
        }
580
10.9k
    }
581
582
10.9k
    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.9k
    _rows_returned_counter =
587
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
10.9k
    _blocks_returned_counter =
589
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
10.9k
    _output_block_bytes_counter =
591
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
10.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
10.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
10.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
10.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
10.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
10.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
10.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
10.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
10.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
10.9k
    _memory_used_counter =
602
10.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
10.9k
    _common_profile->add_info_string("IsColocate",
604
10.9k
                                     std::to_string(_parent->is_colocated_operator()));
605
10.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
10.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
10.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
10.9k
    return Status::OK();
609
10.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
8.42k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
8.42k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
8.42k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
8.42k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
8.42k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
8.42k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
8.42k
    _operator_profile->add_child(_common_profile.get(), true);
553
8.42k
    _operator_profile->add_child(_custom_profile.get(), true);
554
8.42k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
8.42k
    if constexpr (!is_fake_shared) {
556
8.42k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
8.42k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
8.18k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
8.18k
            _dependency = _shared_state->create_source_dependency(
572
8.18k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
8.18k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
8.18k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
8.18k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
243
        }
580
8.42k
    }
581
582
8.42k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
8.42k
    _rows_returned_counter =
587
8.42k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
8.42k
    _blocks_returned_counter =
589
8.42k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
8.42k
    _output_block_bytes_counter =
591
8.42k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
8.42k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
8.42k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
8.42k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
8.42k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
8.42k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
8.42k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
8.42k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
8.42k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
8.42k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
8.42k
    _memory_used_counter =
602
8.42k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
8.42k
    _common_profile->add_info_string("IsColocate",
604
8.42k
                                     std::to_string(_parent->is_colocated_operator()));
605
8.42k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
8.42k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
8.42k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
8.42k
    return Status::OK();
609
8.42k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
154k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
154k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
154k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
154k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
154k
    _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
154k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
154k
    _operator_profile->add_child(_common_profile.get(), true);
553
154k
    _operator_profile->add_child(_custom_profile.get(), true);
554
154k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
154k
    if constexpr (!is_fake_shared) {
556
154k
        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
154k
        } 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
153k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
153k
            _dependency = _shared_state->create_source_dependency(
572
153k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
153k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
153k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
153k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1.25k
        }
580
154k
    }
581
582
154k
    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
154k
    _rows_returned_counter =
587
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
154k
    _blocks_returned_counter =
589
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
154k
    _output_block_bytes_counter =
591
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
154k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
154k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
154k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
154k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
154k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
154k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
154k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
154k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
154k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
154k
    _memory_used_counter =
602
154k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
154k
    _common_profile->add_info_string("IsColocate",
604
154k
                                     std::to_string(_parent->is_colocated_operator()));
605
154k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
154k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
154k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
154k
    return Status::OK();
609
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
770
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
770
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
770
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
770
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
770
    _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
770
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
770
    _operator_profile->add_child(_common_profile.get(), true);
553
770
    _operator_profile->add_child(_custom_profile.get(), true);
554
770
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
770
    if constexpr (!is_fake_shared) {
556
770
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
762
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
762
                                    .first.get()
559
762
                                    ->template cast<SharedStateArg>();
560
561
762
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
762
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
762
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
762
        } 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
8
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
8
        }
580
770
    }
581
582
770
    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
770
    _rows_returned_counter =
587
770
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
770
    _blocks_returned_counter =
589
770
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
770
    _output_block_bytes_counter =
591
770
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
770
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
770
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
770
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
770
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
770
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
770
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
770
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
770
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
770
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
770
    _memory_used_counter =
602
770
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
770
    _common_profile->add_info_string("IsColocate",
604
770
                                     std::to_string(_parent->is_colocated_operator()));
605
770
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
770
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
770
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
770
    return Status::OK();
609
770
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
111
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
111
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
111
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
111
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
111
    _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
111
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
111
    _operator_profile->add_child(_common_profile.get(), true);
553
111
    _operator_profile->add_child(_custom_profile.get(), true);
554
111
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
111
    if constexpr (!is_fake_shared) {
556
111
        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
111
        } 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
111
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
111
            _dependency = _shared_state->create_source_dependency(
572
111
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
111
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
111
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
111
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
111
    }
581
582
111
    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
111
    _rows_returned_counter =
587
111
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
111
    _blocks_returned_counter =
589
111
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
111
    _output_block_bytes_counter =
591
111
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
111
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
111
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
111
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
111
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
111
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
111
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
111
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
111
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
111
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
111
    _memory_used_counter =
602
111
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
111
    _common_profile->add_info_string("IsColocate",
604
111
                                     std::to_string(_parent->is_colocated_operator()));
605
111
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
111
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
111
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
111
    return Status::OK();
609
111
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.09M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.09M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.09M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.09M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.09M
    _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.09M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.09M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.09M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.09M
    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.09M
    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.09M
    _rows_returned_counter =
587
1.09M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.09M
    _blocks_returned_counter =
589
1.09M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.09M
    _output_block_bytes_counter =
591
1.09M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.09M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.09M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.09M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.09M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.09M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.09M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.09M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.09M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.09M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.09M
    _memory_used_counter =
602
1.09M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.09M
    _common_profile->add_info_string("IsColocate",
604
1.09M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.09M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.09M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.09M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.09M
    return Status::OK();
609
1.09M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
56.7k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.7k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.7k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.7k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.7k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
56.7k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.7k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.7k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.7k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.7k
    if constexpr (!is_fake_shared) {
556
56.7k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
56.7k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
3.72k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
3.72k
            _dependency = _shared_state->create_source_dependency(
572
3.72k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
3.72k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
3.72k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
52.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
52.9k
        }
580
56.7k
    }
581
582
56.7k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
56.7k
    _rows_returned_counter =
587
56.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.7k
    _blocks_returned_counter =
589
56.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.7k
    _output_block_bytes_counter =
591
56.7k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.7k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.7k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.7k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.7k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.7k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.7k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.7k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.7k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.7k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.7k
    _memory_used_counter =
602
56.7k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.7k
    _common_profile->add_info_string("IsColocate",
604
56.7k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.7k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.7k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.7k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.7k
    return Status::OK();
609
56.7k
}
_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.1k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.1k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.1k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.1k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.1k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.1k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.1k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.1k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.1k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.1k
    if constexpr (!is_fake_shared) {
556
11.1k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.1k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.0k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.0k
            _dependency = _shared_state->create_source_dependency(
572
11.0k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.0k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.0k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.0k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
58
        }
580
11.1k
    }
581
582
11.1k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.1k
    _rows_returned_counter =
587
11.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.1k
    _blocks_returned_counter =
589
11.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.1k
    _output_block_bytes_counter =
591
11.1k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.1k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.1k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.1k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.1k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.1k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.1k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.1k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.1k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.1k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.1k
    _memory_used_counter =
602
11.1k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.1k
    _common_profile->add_info_string("IsColocate",
604
11.1k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.1k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.1k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.1k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.1k
    return Status::OK();
609
11.1k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
465
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
465
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
465
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
465
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
465
    _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
465
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
465
    _operator_profile->add_child(_common_profile.get(), true);
553
465
    _operator_profile->add_child(_custom_profile.get(), true);
554
465
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
465
    if constexpr (!is_fake_shared) {
556
465
        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
465
        } 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
459
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
459
            _dependency = _shared_state->create_source_dependency(
572
459
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
459
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
459
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
459
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
6
        }
580
465
    }
581
582
465
    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
465
    _rows_returned_counter =
587
465
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
465
    _blocks_returned_counter =
589
465
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
465
    _output_block_bytes_counter =
591
465
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
465
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
465
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
465
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
465
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
465
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
465
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
465
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
465
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
465
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
465
    _memory_used_counter =
602
465
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
465
    _common_profile->add_info_string("IsColocate",
604
465
                                     std::to_string(_parent->is_colocated_operator()));
605
465
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
465
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
465
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
465
    return Status::OK();
609
465
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.15k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.15k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.15k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.15k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.15k
    _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.15k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.15k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.15k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.15k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.15k
    if constexpr (!is_fake_shared) {
556
5.15k
        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.15k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
5.09k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
5.09k
            _dependency = _shared_state->create_source_dependency(
572
5.09k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
5.09k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
5.09k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
5.09k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
55
        }
580
5.15k
    }
581
582
5.15k
    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.15k
    _rows_returned_counter =
587
5.15k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.15k
    _blocks_returned_counter =
589
5.15k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.15k
    _output_block_bytes_counter =
591
5.15k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.15k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.15k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.15k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.15k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.15k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.15k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.15k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.15k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.15k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.15k
    _memory_used_counter =
602
5.15k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.15k
    _common_profile->add_info_string("IsColocate",
604
5.15k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.15k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.15k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.15k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.15k
    return Status::OK();
609
5.15k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
730k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
730k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
730k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
730k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
730k
    _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
730k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
730k
    _operator_profile->add_child(_common_profile.get(), true);
553
730k
    _operator_profile->add_child(_custom_profile.get(), true);
554
730k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
730k
    if constexpr (!is_fake_shared) {
556
730k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
717k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
717k
                                    .first.get()
559
717k
                                    ->template cast<SharedStateArg>();
560
561
717k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
717k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
717k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
717k
        } 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
13.1k
        } else {
576
13.1k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
13.1k
                DCHECK(false);
578
13.1k
            }
579
13.1k
        }
580
730k
    }
581
582
730k
    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
730k
    _rows_returned_counter =
587
730k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
730k
    _blocks_returned_counter =
589
730k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
730k
    _output_block_bytes_counter =
591
730k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
730k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
730k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
730k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
730k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
730k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
730k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
730k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
730k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
730k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
730k
    _memory_used_counter =
602
730k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
730k
    _common_profile->add_info_string("IsColocate",
604
730k
                                     std::to_string(_parent->is_colocated_operator()));
605
730k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
730k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
730k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
730k
    return Status::OK();
609
730k
}
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.43M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.43M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.43M
    _projections.resize(_parent->_projections.size());
615
2.93M
    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.14M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.70M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.70M
    }
621
2.43M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.44M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
12.7k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
81.5k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
68.7k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
68.7k
                    state, _intermediate_projections[i][j]));
627
68.7k
        }
628
12.7k
    }
629
2.43M
    return Status::OK();
630
2.43M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
72.6k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
72.6k
    _conjuncts.resize(_parent->_conjuncts.size());
614
72.6k
    _projections.resize(_parent->_projections.size());
615
73.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
1.06k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
1.06k
    }
618
366k
    for (size_t i = 0; i < _projections.size(); i++) {
619
294k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
294k
    }
621
72.6k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
74.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.52k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
15.1k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
13.6k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
13.6k
                    state, _intermediate_projections[i][j]));
627
13.6k
        }
628
1.52k
    }
629
72.6k
    return Status::OK();
630
72.6k
}
_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
277k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
277k
    _conjuncts.resize(_parent->_conjuncts.size());
614
277k
    _projections.resize(_parent->_projections.size());
615
277k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
277k
    for (size_t i = 0; i < _projections.size(); i++) {
619
359
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
359
    }
621
277k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
277k
    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
277k
    return Status::OK();
630
277k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
24
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
24
    _conjuncts.resize(_parent->_conjuncts.size());
614
24
    _projections.resize(_parent->_projections.size());
615
24
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
24
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
24
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
24
    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
24
    return Status::OK();
630
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
10.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
10.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
10.9k
    _projections.resize(_parent->_projections.size());
615
11.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
141
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
141
    }
618
69.2k
    for (size_t i = 0; i < _projections.size(); i++) {
619
58.2k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
58.2k
    }
621
10.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
169
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.05k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
884
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
884
                    state, _intermediate_projections[i][j]));
627
884
        }
628
169
    }
629
10.9k
    return Status::OK();
630
10.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
8.45k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
8.45k
    _conjuncts.resize(_parent->_conjuncts.size());
614
8.45k
    _projections.resize(_parent->_projections.size());
615
9.26k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
811
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
811
    }
618
23.3k
    for (size_t i = 0; i < _projections.size(); i++) {
619
14.8k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
14.8k
    }
621
8.45k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
8.54k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
86
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
647
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
561
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
561
                    state, _intermediate_projections[i][j]));
627
561
        }
628
86
    }
629
8.45k
    return Status::OK();
630
8.45k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
154k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
154k
    _conjuncts.resize(_parent->_conjuncts.size());
614
154k
    _projections.resize(_parent->_projections.size());
615
159k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.12k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.12k
    }
618
420k
    for (size_t i = 0; i < _projections.size(); i++) {
619
265k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
265k
    }
621
154k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
155k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
275
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.95k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.68k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.68k
                    state, _intermediate_projections[i][j]));
627
1.68k
        }
628
275
    }
629
154k
    return Status::OK();
630
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
779
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
779
    _conjuncts.resize(_parent->_conjuncts.size());
614
779
    _projections.resize(_parent->_projections.size());
615
789
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
10
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
10
    }
618
1.97k
    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
779
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
779
    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
779
    return Status::OK();
630
779
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
115
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
115
    _conjuncts.resize(_parent->_conjuncts.size());
614
115
    _projections.resize(_parent->_projections.size());
615
115
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
311
    for (size_t i = 0; i < _projections.size(); i++) {
619
196
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
196
    }
621
115
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
115
    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
115
    return Status::OK();
630
115
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.10M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.10M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.10M
    _projections.resize(_parent->_projections.size());
615
1.59M
    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.07M
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.97M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.97M
    }
621
1.10M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.11M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
10.7k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
62.6k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
51.9k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
51.9k
                    state, _intermediate_projections[i][j]));
627
51.9k
        }
628
10.7k
    }
629
1.10M
    return Status::OK();
630
1.10M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.9k
    _projections.resize(_parent->_projections.size());
615
56.9k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
152k
    for (size_t i = 0; i < _projections.size(); i++) {
619
95.7k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
95.7k
    }
621
56.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.9k
    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.9k
    return Status::OK();
630
56.9k
}
_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.1k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.1k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.1k
    _projections.resize(_parent->_projections.size());
615
15.0k
    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
11.1k
    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.1k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.1k
    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.1k
    return Status::OK();
630
11.1k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
465
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
465
    _conjuncts.resize(_parent->_conjuncts.size());
614
465
    _projections.resize(_parent->_projections.size());
615
465
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
465
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
465
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
465
    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
465
    return Status::OK();
630
465
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.15k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.15k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.15k
    _projections.resize(_parent->_projections.size());
615
5.15k
    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.32k
    for (size_t i = 0; i < _projections.size(); i++) {
619
168
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
168
    }
621
5.15k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.15k
    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.15k
    return Status::OK();
630
5.15k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
733k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
733k
    _conjuncts.resize(_parent->_conjuncts.size());
614
733k
    _projections.resize(_parent->_projections.size());
615
733k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
733k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
733k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
733k
    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
733k
    return Status::OK();
630
733k
}
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.97k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6.97k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
6.97k
    _terminated = true;
638
6.97k
    return Status::OK();
639
6.97k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
235
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
235
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
235
    _terminated = true;
638
235
    return Status::OK();
639
235
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
81
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
81
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
81
    _terminated = true;
638
81
    return Status::OK();
639
81
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
50
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
50
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
50
    _terminated = true;
638
50
    return Status::OK();
639
50
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
285
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
285
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
285
    _terminated = true;
638
285
    return Status::OK();
639
285
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5.47k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.47k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
5.47k
    _terminated = true;
638
5.47k
    return Status::OK();
639
5.47k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
3
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
3
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
3
    _terminated = true;
638
3
    return Status::OK();
639
3
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
46
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
46
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
46
    _terminated = true;
638
46
    return Status::OK();
639
46
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
3
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
3
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
3
    _terminated = true;
638
3
    return Status::OK();
639
3
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
788
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
788
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
788
    _terminated = true;
638
788
    return Status::OK();
639
788
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
14
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
14
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
14
    _terminated = true;
638
14
    return Status::OK();
639
14
}
640
641
template <typename SharedStateArg>
642
2.74M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.74M
    if (_closed) {
644
311k
        return Status::OK();
645
311k
    }
646
2.43M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.33M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.33M
    }
649
2.43M
    _closed = true;
650
2.43M
    return Status::OK();
651
2.74M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
72.5k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
72.5k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
72.5k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
72.5k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
72.5k
    }
649
72.5k
    _closed = true;
650
72.5k
    return Status::OK();
651
72.5k
}
_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
551k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
551k
    if (_closed) {
644
276k
        return Status::OK();
645
276k
    }
646
275k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
275k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
275k
    }
649
275k
    _closed = true;
650
275k
    return Status::OK();
651
551k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
24
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
24
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
24
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
24
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
24
    }
649
24
    _closed = true;
650
24
    return Status::OK();
651
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.9k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
10.9k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
10.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
10.9k
    }
649
10.9k
    _closed = true;
650
10.9k
    return Status::OK();
651
10.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
17.0k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
17.0k
    if (_closed) {
644
8.58k
        return Status::OK();
645
8.58k
    }
646
8.44k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
8.44k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
8.44k
    }
649
8.44k
    _closed = true;
650
8.44k
    return Status::OK();
651
17.0k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
154k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
154k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
154k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
154k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
154k
    }
649
154k
    _closed = true;
650
154k
    return Status::OK();
651
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
775
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
775
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
775
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
775
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
775
    }
649
775
    _closed = true;
650
775
    return Status::OK();
651
775
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
110
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
110
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
110
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
110
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
110
    }
649
110
    _closed = true;
650
110
    return Status::OK();
651
110
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.12M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.12M
    if (_closed) {
644
20.9k
        return Status::OK();
645
20.9k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.10M
    _closed = true;
650
1.10M
    return Status::OK();
651
1.12M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.9k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.9k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.9k
    }
649
56.9k
    _closed = true;
650
56.9k
    return Status::OK();
651
56.9k
}
_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.1k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.1k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.1k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.1k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.1k
    }
649
11.1k
    _closed = true;
650
11.1k
    return Status::OK();
651
11.1k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
727
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
727
    if (_closed) {
644
363
        return Status::OK();
645
363
    }
646
364
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
364
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
364
    }
649
364
    _closed = true;
650
364
    return Status::OK();
651
727
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.3k
    if (_closed) {
644
5.24k
        return Status::OK();
645
5.24k
    }
646
5.14k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.14k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.14k
    }
649
5.14k
    _closed = true;
650
5.14k
    return Status::OK();
651
10.3k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
735k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
735k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
735k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
735k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
735k
    }
649
735k
    _closed = true;
650
735k
    return Status::OK();
651
735k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
332
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
332
    if (_closed) {
644
177
        return Status::OK();
645
177
    }
646
155
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
155
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
155
    }
649
155
    _closed = true;
650
155
    return Status::OK();
651
332
}
652
653
template <typename SharedState>
654
2.02M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.02M
    _operator_profile =
657
2.02M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.02M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.02M
    _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.02M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.02M
    _operator_profile->add_child(_common_profile, true);
666
2.02M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.02M
    _operator_profile->set_metadata(_parent->node_id());
669
2.02M
    _wait_for_finish_dependency_timer =
670
2.02M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.02M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.02M
    if constexpr (!is_fake_shared) {
673
1.34M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.34M
            info.shared_state_map.end()) {
675
300k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
281k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
281k
            }
678
300k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
300k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
300k
                                                  ? 0
681
300k
                                                  : info.task_idx]
682
300k
                                  .get();
683
300k
            _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.34M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.34M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.34M
    }
695
696
2.02M
    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.02M
    _rows_input_counter =
701
2.02M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.02M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.02M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.02M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.02M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.02M
    _memory_used_counter =
707
2.02M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.02M
    _common_profile->add_info_string("IsColocate",
709
2.02M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.02M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.02M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.02M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.02M
    return Status::OK();
714
2.02M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
120k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
120k
    _operator_profile =
657
120k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
120k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
120k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
120k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
120k
    _operator_profile->add_child(_common_profile, true);
666
120k
    _operator_profile->add_child(_custom_profile, true);
667
668
120k
    _operator_profile->set_metadata(_parent->node_id());
669
120k
    _wait_for_finish_dependency_timer =
670
120k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
120k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
120k
    if constexpr (!is_fake_shared) {
673
120k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
120k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
18.8k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
18.8k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
18.8k
                                                  ? 0
681
18.8k
                                                  : info.task_idx]
682
18.8k
                                  .get();
683
18.8k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
101k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
101k
            _shared_state = info.shared_state->template cast<SharedState>();
689
101k
            _dependency = _shared_state->create_sink_dependency(
690
101k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
101k
        }
692
120k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
120k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
120k
    }
695
696
120k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
120k
    _rows_input_counter =
701
120k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
120k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
120k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
120k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
120k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
120k
    _memory_used_counter =
707
120k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
120k
    _common_profile->add_info_string("IsColocate",
709
120k
                                     std::to_string(_parent->is_colocated_operator()));
710
120k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
120k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
120k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
120k
    return Status::OK();
714
120k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
2
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2
    _operator_profile =
657
2
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
2
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2
    _operator_profile->add_child(_common_profile, true);
666
2
    _operator_profile->add_child(_custom_profile, true);
667
668
2
    _operator_profile->set_metadata(_parent->node_id());
669
2
    _wait_for_finish_dependency_timer =
670
2
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2
    if constexpr (!is_fake_shared) {
673
2
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
2
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
2
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
2
            _shared_state = info.shared_state->template cast<SharedState>();
689
2
            _dependency = _shared_state->create_sink_dependency(
690
2
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
2
        }
692
2
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
2
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
2
    }
695
696
2
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
2
    _rows_input_counter =
701
2
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2
    _memory_used_counter =
707
2
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2
    _common_profile->add_info_string("IsColocate",
709
2
                                     std::to_string(_parent->is_colocated_operator()));
710
2
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2
    return Status::OK();
714
2
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
275k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
275k
    _operator_profile =
657
275k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
275k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
275k
    _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
275k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
275k
    _operator_profile->add_child(_common_profile, true);
666
275k
    _operator_profile->add_child(_custom_profile, true);
667
668
275k
    _operator_profile->set_metadata(_parent->node_id());
669
275k
    _wait_for_finish_dependency_timer =
670
275k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
275k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
275k
    if constexpr (!is_fake_shared) {
673
275k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
275k
            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
275k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
275k
            _shared_state = info.shared_state->template cast<SharedState>();
689
275k
            _dependency = _shared_state->create_sink_dependency(
690
275k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
275k
        }
692
275k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
275k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
275k
    }
695
696
275k
    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
275k
    _rows_input_counter =
701
275k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
275k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
275k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
275k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
275k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
275k
    _memory_used_counter =
707
275k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
275k
    _common_profile->add_info_string("IsColocate",
709
275k
                                     std::to_string(_parent->is_colocated_operator()));
710
275k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
275k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
275k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
275k
    return Status::OK();
714
275k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
31
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
31
    _operator_profile =
657
31
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
31
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
31
    _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
31
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
31
    _operator_profile->add_child(_common_profile, true);
666
31
    _operator_profile->add_child(_custom_profile, true);
667
668
31
    _operator_profile->set_metadata(_parent->node_id());
669
31
    _wait_for_finish_dependency_timer =
670
31
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
31
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
31
    if constexpr (!is_fake_shared) {
673
31
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
31
            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
31
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
31
            _shared_state = info.shared_state->template cast<SharedState>();
689
31
            _dependency = _shared_state->create_sink_dependency(
690
31
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
31
        }
692
31
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
31
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
31
    }
695
696
31
    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
31
    _rows_input_counter =
701
31
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
31
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
31
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
31
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
31
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
31
    _memory_used_counter =
707
31
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
31
    _common_profile->add_info_string("IsColocate",
709
31
                                     std::to_string(_parent->is_colocated_operator()));
710
31
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
31
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
31
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
31
    return Status::OK();
714
31
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
10.9k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
10.9k
    _operator_profile =
657
10.9k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
10.9k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
10.9k
    _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.9k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
10.9k
    _operator_profile->add_child(_common_profile, true);
666
10.9k
    _operator_profile->add_child(_custom_profile, true);
667
668
10.9k
    _operator_profile->set_metadata(_parent->node_id());
669
10.9k
    _wait_for_finish_dependency_timer =
670
10.9k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
10.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
10.9k
    if constexpr (!is_fake_shared) {
673
10.9k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
10.9k
            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.9k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
10.9k
            _shared_state = info.shared_state->template cast<SharedState>();
689
10.9k
            _dependency = _shared_state->create_sink_dependency(
690
10.9k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
10.9k
        }
692
10.9k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
10.9k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
10.9k
    }
695
696
10.9k
    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.9k
    _rows_input_counter =
701
10.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
10.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
10.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
10.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
10.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
10.9k
    _memory_used_counter =
707
10.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
10.9k
    _common_profile->add_info_string("IsColocate",
709
10.9k
                                     std::to_string(_parent->is_colocated_operator()));
710
10.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
10.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
10.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
10.9k
    return Status::OK();
714
10.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
8.41k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
8.41k
    _operator_profile =
657
8.41k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
8.41k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
8.41k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
8.41k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
8.41k
    _operator_profile->add_child(_common_profile, true);
666
8.41k
    _operator_profile->add_child(_custom_profile, true);
667
668
8.41k
    _operator_profile->set_metadata(_parent->node_id());
669
8.41k
    _wait_for_finish_dependency_timer =
670
8.41k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
8.41k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
8.41k
    if constexpr (!is_fake_shared) {
673
8.41k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
8.41k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
8.41k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
8.41k
            _shared_state = info.shared_state->template cast<SharedState>();
689
8.41k
            _dependency = _shared_state->create_sink_dependency(
690
8.41k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
8.41k
        }
692
8.41k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
8.41k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
8.41k
    }
695
696
8.41k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
8.41k
    _rows_input_counter =
701
8.41k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
8.41k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
8.41k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
8.41k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
8.41k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
8.41k
    _memory_used_counter =
707
8.41k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
8.41k
    _common_profile->add_info_string("IsColocate",
709
8.41k
                                     std::to_string(_parent->is_colocated_operator()));
710
8.41k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
8.41k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
8.41k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
8.41k
    return Status::OK();
714
8.41k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
154k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
154k
    _operator_profile =
657
154k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
154k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
154k
    _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
154k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
154k
    _operator_profile->add_child(_common_profile, true);
666
154k
    _operator_profile->add_child(_custom_profile, true);
667
668
154k
    _operator_profile->set_metadata(_parent->node_id());
669
154k
    _wait_for_finish_dependency_timer =
670
154k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
154k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
154k
    if constexpr (!is_fake_shared) {
673
154k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
154k
            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
154k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
154k
            _shared_state = info.shared_state->template cast<SharedState>();
689
154k
            _dependency = _shared_state->create_sink_dependency(
690
154k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
154k
        }
692
154k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
154k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
154k
    }
695
696
154k
    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
154k
    _rows_input_counter =
701
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
154k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
154k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
154k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
154k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
154k
    _memory_used_counter =
707
154k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
154k
    _common_profile->add_info_string("IsColocate",
709
154k
                                     std::to_string(_parent->is_colocated_operator()));
710
154k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
154k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
154k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
154k
    return Status::OK();
714
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
780
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
780
    _operator_profile =
657
780
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
780
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
780
    _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
780
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
780
    _operator_profile->add_child(_common_profile, true);
666
780
    _operator_profile->add_child(_custom_profile, true);
667
668
780
    _operator_profile->set_metadata(_parent->node_id());
669
780
    _wait_for_finish_dependency_timer =
670
780
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
780
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
780
    if constexpr (!is_fake_shared) {
673
780
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
780
            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
776
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
776
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
776
                                                  ? 0
681
776
                                                  : info.task_idx]
682
776
                                  .get();
683
776
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
776
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
4
            _shared_state = info.shared_state->template cast<SharedState>();
689
4
            _dependency = _shared_state->create_sink_dependency(
690
4
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
4
        }
692
780
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
780
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
780
    }
695
696
780
    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
780
    _rows_input_counter =
701
780
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
780
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
780
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
780
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
780
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
780
    _memory_used_counter =
707
780
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
780
    _common_profile->add_info_string("IsColocate",
709
780
                                     std::to_string(_parent->is_colocated_operator()));
710
780
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
780
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
780
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
780
    return Status::OK();
714
780
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
121
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
121
    _operator_profile =
657
121
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
121
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
121
    _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
121
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
121
    _operator_profile->add_child(_common_profile, true);
666
121
    _operator_profile->add_child(_custom_profile, true);
667
668
121
    _operator_profile->set_metadata(_parent->node_id());
669
121
    _wait_for_finish_dependency_timer =
670
121
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
121
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
121
    if constexpr (!is_fake_shared) {
673
121
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
121
            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
121
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
121
            _shared_state = info.shared_state->template cast<SharedState>();
689
121
            _dependency = _shared_state->create_sink_dependency(
690
121
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
121
        }
692
121
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
121
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
121
    }
695
696
121
    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
121
    _rows_input_counter =
701
121
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
121
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
121
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
121
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
121
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
121
    _memory_used_counter =
707
121
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
121
    _common_profile->add_info_string("IsColocate",
709
121
                                     std::to_string(_parent->is_colocated_operator()));
710
121
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
121
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
121
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
121
    return Status::OK();
714
121
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
679k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
679k
    _operator_profile =
657
679k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
679k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
679k
    _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
679k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
679k
    _operator_profile->add_child(_common_profile, true);
666
679k
    _operator_profile->add_child(_custom_profile, true);
667
668
679k
    _operator_profile->set_metadata(_parent->node_id());
669
679k
    _wait_for_finish_dependency_timer =
670
679k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
679k
    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
679k
    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
679k
    _rows_input_counter =
701
679k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
679k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
679k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
679k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
679k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
679k
    _memory_used_counter =
707
679k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
679k
    _common_profile->add_info_string("IsColocate",
709
679k
                                     std::to_string(_parent->is_colocated_operator()));
710
679k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
679k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
679k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
679k
    return Status::OK();
714
679k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
8.14k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
8.14k
    _operator_profile =
657
8.14k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
8.14k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
8.14k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
8.14k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
8.14k
    _operator_profile->add_child(_common_profile, true);
666
8.14k
    _operator_profile->add_child(_custom_profile, true);
667
668
8.14k
    _operator_profile->set_metadata(_parent->node_id());
669
8.14k
    _wait_for_finish_dependency_timer =
670
8.14k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
8.14k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
8.14k
    if constexpr (!is_fake_shared) {
673
8.14k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
8.14k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
8.14k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
8.14k
            _shared_state = info.shared_state->template cast<SharedState>();
689
8.14k
            _dependency = _shared_state->create_sink_dependency(
690
8.14k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
8.14k
        }
692
8.14k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
8.14k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
8.14k
    }
695
696
8.14k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
8.14k
    _rows_input_counter =
701
8.14k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
8.14k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
8.14k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
8.14k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
8.14k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
8.14k
    _memory_used_counter =
707
8.14k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
8.14k
    _common_profile->add_info_string("IsColocate",
709
8.14k
                                     std::to_string(_parent->is_colocated_operator()));
710
8.14k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
8.14k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
8.14k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
8.14k
    return Status::OK();
714
8.14k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
466
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
466
    _operator_profile =
657
466
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
466
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
466
    _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
466
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
466
    _operator_profile->add_child(_common_profile, true);
666
466
    _operator_profile->add_child(_custom_profile, true);
667
668
466
    _operator_profile->set_metadata(_parent->node_id());
669
466
    _wait_for_finish_dependency_timer =
670
466
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
466
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
466
    if constexpr (!is_fake_shared) {
673
466
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
466
            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
466
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
466
            _shared_state = info.shared_state->template cast<SharedState>();
689
466
            _dependency = _shared_state->create_sink_dependency(
690
466
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
466
        }
692
466
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
466
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
466
    }
695
696
466
    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
466
    _rows_input_counter =
701
466
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
466
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
466
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
466
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
466
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
466
    _memory_used_counter =
707
466
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
466
    _common_profile->add_info_string("IsColocate",
709
466
                                     std::to_string(_parent->is_colocated_operator()));
710
466
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
466
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
466
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
466
    return Status::OK();
714
466
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
3.85k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
3.85k
    _operator_profile =
657
3.85k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
3.85k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
3.85k
    _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.85k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
3.85k
    _operator_profile->add_child(_common_profile, true);
666
3.85k
    _operator_profile->add_child(_custom_profile, true);
667
668
3.85k
    _operator_profile->set_metadata(_parent->node_id());
669
3.85k
    _wait_for_finish_dependency_timer =
670
3.85k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
3.85k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
3.85k
    if constexpr (!is_fake_shared) {
673
3.85k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
3.85k
            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.85k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3.85k
            _shared_state = info.shared_state->template cast<SharedState>();
689
3.85k
            _dependency = _shared_state->create_sink_dependency(
690
3.85k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3.85k
        }
692
3.85k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
3.85k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
3.85k
    }
695
696
3.85k
    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.85k
    _rows_input_counter =
701
3.85k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
3.85k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
3.85k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
3.85k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
3.85k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
3.85k
    _memory_used_counter =
707
3.85k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
3.85k
    _common_profile->add_info_string("IsColocate",
709
3.85k
                                     std::to_string(_parent->is_colocated_operator()));
710
3.85k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
3.85k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
3.85k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
3.85k
    return Status::OK();
714
3.85k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.3k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.3k
    _operator_profile =
657
12.3k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.3k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.3k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
12.3k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.3k
    _operator_profile->add_child(_common_profile, true);
666
12.3k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.3k
    _operator_profile->set_metadata(_parent->node_id());
669
12.3k
    _wait_for_finish_dependency_timer =
670
12.3k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.3k
    if constexpr (!is_fake_shared) {
673
12.3k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.3k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
12.3k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.3k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.3k
            _dependency = _shared_state->create_sink_dependency(
690
12.3k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.3k
        }
692
12.3k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.3k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.3k
    }
695
696
12.3k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
12.3k
    _rows_input_counter =
701
12.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.3k
    _memory_used_counter =
707
12.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.3k
    _common_profile->add_info_string("IsColocate",
709
12.3k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.3k
    return Status::OK();
714
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
280k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
280k
    _operator_profile =
657
280k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
280k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
280k
    _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
280k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
280k
    _operator_profile->add_child(_common_profile, true);
666
280k
    _operator_profile->add_child(_custom_profile, true);
667
668
280k
    _operator_profile->set_metadata(_parent->node_id());
669
280k
    _wait_for_finish_dependency_timer =
670
280k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
280k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
280k
    if constexpr (!is_fake_shared) {
673
280k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
281k
            info.shared_state_map.end()) {
675
281k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
281k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
281k
            }
678
281k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
281k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
281k
                                                  ? 0
681
281k
                                                  : info.task_idx]
682
281k
                                  .get();
683
281k
            _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
280k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
280k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
280k
    }
695
696
280k
    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
280k
    _rows_input_counter =
701
280k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
280k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
280k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
280k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
280k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
280k
    _memory_used_counter =
707
280k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
280k
    _common_profile->add_info_string("IsColocate",
709
280k
                                     std::to_string(_parent->is_colocated_operator()));
710
280k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
280k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
280k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
280k
    return Status::OK();
714
280k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
467k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
467k
    _operator_profile =
657
467k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
467k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
467k
    _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
467k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
467k
    _operator_profile->add_child(_common_profile, true);
666
467k
    _operator_profile->add_child(_custom_profile, true);
667
668
467k
    _operator_profile->set_metadata(_parent->node_id());
669
467k
    _wait_for_finish_dependency_timer =
670
467k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
467k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
467k
    if constexpr (!is_fake_shared) {
673
467k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
467k
            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
467k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
467k
            _shared_state = info.shared_state->template cast<SharedState>();
689
467k
            _dependency = _shared_state->create_sink_dependency(
690
467k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
467k
        }
692
467k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
467k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
467k
    }
695
696
467k
    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
467k
    _rows_input_counter =
701
467k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
467k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
467k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
467k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
467k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
467k
    _memory_used_counter =
707
467k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
467k
    _common_profile->add_info_string("IsColocate",
709
467k
                                     std::to_string(_parent->is_colocated_operator()));
710
467k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
467k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
467k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
467k
    return Status::OK();
714
467k
}
_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.03M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.03M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.03M
    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.03M
    _closed = true;
725
2.03M
    return Status::OK();
726
2.03M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
120k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
120k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
120k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
120k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
120k
    }
724
120k
    _closed = true;
725
120k
    return Status::OK();
726
120k
}
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
1
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
1
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
1
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1
    }
724
1
    _closed = true;
725
1
    return Status::OK();
726
1
}
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
276k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
276k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
276k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
276k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
276k
    }
724
276k
    _closed = true;
725
276k
    return Status::OK();
726
276k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
22
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
22
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
20
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
20
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
20
    }
724
20
    _closed = true;
725
20
    return Status::OK();
726
22
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
10.9k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
10.9k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
10.9k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
10.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
10.9k
    }
724
10.9k
    _closed = true;
725
10.9k
    return Status::OK();
726
10.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
8.42k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
8.42k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
8.42k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
8.42k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
8.42k
    }
724
8.42k
    _closed = true;
725
8.42k
    return Status::OK();
726
8.42k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
154k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
154k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
154k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
154k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
154k
    }
724
154k
    _closed = true;
725
154k
    return Status::OK();
726
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
768
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
768
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
768
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
768
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
768
    }
724
768
    _closed = true;
725
768
    return Status::OK();
726
768
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
110
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
110
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
110
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
110
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
110
    }
724
110
    _closed = true;
725
110
    return Status::OK();
726
110
}
_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
8.17k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
8.17k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
8.17k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
8.17k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
8.17k
    }
724
8.17k
    _closed = true;
725
8.17k
    return Status::OK();
726
8.17k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
363
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
363
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
363
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
363
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
363
    }
724
363
    _closed = true;
725
363
    return Status::OK();
726
363
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
3.88k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
3.88k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
3.88k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
3.88k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
3.88k
    }
724
3.88k
    _closed = true;
725
3.88k
    return Status::OK();
726
3.88k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.5k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.5k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.5k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.5k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.5k
    }
724
12.5k
    _closed = true;
725
12.5k
    return Status::OK();
726
12.5k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
282k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
282k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
282k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
282k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
282k
    }
724
282k
    _closed = true;
725
282k
    return Status::OK();
726
282k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
471k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
471k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
471k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
471k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
471k
    }
724
471k
    _closed = true;
725
471k
    return Status::OK();
726
471k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
14
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
14
    }
724
14
    _closed = true;
725
14
    return Status::OK();
726
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
328
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
328
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
328
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
328
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
328
    }
724
328
    _closed = true;
725
328
    return Status::OK();
726
328
}
727
728
template <typename LocalStateType>
729
Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
730
15.3k
                                                          bool* eos) {
731
15.3k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
15.3k
    return pull(state, block, eos);
733
15.3k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
431
                                                          bool* eos) {
731
431
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
431
    return pull(state, block, eos);
733
431
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
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
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
646k
                                                         bool* eos) {
738
646k
    auto& local_state = get_local_state(state);
739
646k
    if (need_more_input_data(state)) {
740
616k
        local_state._child_block->clear_column_data(
741
616k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
616k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
616k
                state, local_state._child_block.get(), &local_state._child_eos));
744
616k
        *eos = local_state._child_eos;
745
616k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
66.3k
            return Status::OK();
747
66.3k
        }
748
550k
        {
749
550k
            SCOPED_TIMER(local_state.exec_time_counter());
750
550k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
550k
        }
752
550k
    }
753
754
579k
    if (!need_more_input_data(state)) {
755
526k
        SCOPED_TIMER(local_state.exec_time_counter());
756
526k
        bool new_eos = false;
757
526k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
526k
        if (new_eos) {
759
441k
            *eos = true;
760
441k
        } else if (!need_more_input_data(state)) {
761
23.5k
            *eos = false;
762
23.5k
        }
763
526k
    }
764
579k
    return Status::OK();
765
579k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
149k
                                                         bool* eos) {
738
149k
    auto& local_state = get_local_state(state);
739
149k
    if (need_more_input_data(state)) {
740
131k
        local_state._child_block->clear_column_data(
741
131k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
131k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
131k
                state, local_state._child_block.get(), &local_state._child_eos));
744
131k
        *eos = local_state._child_eos;
745
131k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
39.8k
            return Status::OK();
747
39.8k
        }
748
92.1k
        {
749
92.1k
            SCOPED_TIMER(local_state.exec_time_counter());
750
92.1k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
92.1k
        }
752
92.1k
    }
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
48.3k
            *eos = true;
760
60.9k
        } else if (!need_more_input_data(state)) {
761
10.0k
            *eos = false;
762
10.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
4.06k
                                                         bool* eos) {
738
4.06k
    auto& local_state = get_local_state(state);
739
4.06k
    if (need_more_input_data(state)) {
740
2.31k
        local_state._child_block->clear_column_data(
741
2.31k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.31k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.31k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.31k
        *eos = local_state._child_eos;
745
2.31k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
491
            return Status::OK();
747
491
        }
748
1.81k
        {
749
1.81k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.81k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.81k
        }
752
1.81k
    }
753
754
3.57k
    if (!need_more_input_data(state)) {
755
3.57k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.57k
        bool new_eos = false;
757
3.57k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.57k
        if (new_eos) {
759
1.27k
            *eos = true;
760
2.30k
        } else if (!need_more_input_data(state)) {
761
1.75k
            *eos = false;
762
1.75k
        }
763
3.57k
    }
764
3.57k
    return Status::OK();
765
3.57k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.94k
                                                         bool* eos) {
738
4.94k
    auto& local_state = get_local_state(state);
739
4.94k
    if (need_more_input_data(state)) {
740
4.94k
        local_state._child_block->clear_column_data(
741
4.94k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.94k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.94k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.94k
        *eos = local_state._child_eos;
745
4.94k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.72k
            return Status::OK();
747
1.72k
        }
748
3.21k
        {
749
3.21k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.21k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.21k
        }
752
3.21k
    }
753
754
3.21k
    if (!need_more_input_data(state)) {
755
3.21k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.21k
        bool new_eos = false;
757
3.21k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.21k
        if (new_eos) {
759
1.73k
            *eos = true;
760
1.73k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.21k
    }
764
3.21k
    return Status::OK();
765
3.21k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
39.6k
                                                         bool* eos) {
738
39.6k
    auto& local_state = get_local_state(state);
739
39.8k
    if (need_more_input_data(state)) {
740
39.8k
        local_state._child_block->clear_column_data(
741
39.8k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
39.8k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
39.8k
                state, local_state._child_block.get(), &local_state._child_eos));
744
39.8k
        *eos = local_state._child_eos;
745
39.8k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
4.66k
            return Status::OK();
747
4.66k
        }
748
35.1k
        {
749
35.1k
            SCOPED_TIMER(local_state.exec_time_counter());
750
35.1k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
35.1k
        }
752
35.1k
    }
753
754
35.0k
    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.1k
            *eos = true;
760
11.1k
        } else if (!need_more_input_data(state)) {
761
9
            *eos = false;
762
9
        }
763
11.3k
    }
764
35.0k
    return Status::OK();
765
35.0k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
408k
                                                         bool* eos) {
738
408k
    auto& local_state = get_local_state(state);
739
409k
    if (need_more_input_data(state)) {
740
409k
        local_state._child_block->clear_column_data(
741
409k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
409k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
409k
                state, local_state._child_block.get(), &local_state._child_eos));
744
409k
        *eos = local_state._child_eos;
745
409k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
16.5k
            return Status::OK();
747
16.5k
        }
748
393k
        {
749
393k
            SCOPED_TIMER(local_state.exec_time_counter());
750
393k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
393k
        }
752
393k
    }
753
754
392k
    if (!need_more_input_data(state)) {
755
363k
        SCOPED_TIMER(local_state.exec_time_counter());
756
363k
        bool new_eos = false;
757
363k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
363k
        if (new_eos) {
759
361k
            *eos = true;
760
361k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
363k
    }
764
392k
    return Status::OK();
765
392k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
31.1k
                                                         bool* eos) {
738
31.1k
    auto& local_state = get_local_state(state);
739
31.1k
    if (need_more_input_data(state)) {
740
19.7k
        local_state._child_block->clear_column_data(
741
19.7k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
19.7k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
19.7k
                state, local_state._child_block.get(), &local_state._child_eos));
744
19.7k
        *eos = local_state._child_eos;
745
19.7k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.74k
            return Status::OK();
747
2.74k
        }
748
16.9k
        {
749
16.9k
            SCOPED_TIMER(local_state.exec_time_counter());
750
16.9k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
16.9k
        }
752
16.9k
    }
753
754
28.3k
    if (!need_more_input_data(state)) {
755
27.7k
        SCOPED_TIMER(local_state.exec_time_counter());
756
27.7k
        bool new_eos = false;
757
27.7k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
27.7k
        if (new_eos) {
759
10.9k
            *eos = true;
760
16.8k
        } else if (!need_more_input_data(state)) {
761
11.3k
            *eos = false;
762
11.3k
        }
763
27.7k
    }
764
28.3k
    return Status::OK();
765
28.3k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
8.43k
                                                         bool* eos) {
738
8.43k
    auto& local_state = get_local_state(state);
739
8.43k
    if (need_more_input_data(state)) {
740
8.07k
        local_state._child_block->clear_column_data(
741
8.07k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
8.07k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
8.07k
                state, local_state._child_block.get(), &local_state._child_eos));
744
8.07k
        *eos = local_state._child_eos;
745
8.07k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
307
            return Status::OK();
747
307
        }
748
7.77k
        {
749
7.77k
            SCOPED_TIMER(local_state.exec_time_counter());
750
7.77k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
7.77k
        }
752
7.77k
    }
753
754
8.12k
    if (!need_more_input_data(state)) {
755
8.12k
        SCOPED_TIMER(local_state.exec_time_counter());
756
8.12k
        bool new_eos = false;
757
8.12k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
8.12k
        if (new_eos) {
759
6.04k
            *eos = true;
760
6.04k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
8.12k
    }
764
8.11k
    return Status::OK();
765
8.11k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
65.2k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
65.2k
    RETURN_IF_ERROR(Base::init(state, info));
771
65.2k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
65.2k
                                                         "AsyncWriterDependency", true);
773
65.2k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
65.2k
                             _finish_dependency));
775
776
65.2k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
65.2k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
65.2k
    return Status::OK();
779
65.2k
}
_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
45.7k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
45.7k
    RETURN_IF_ERROR(Base::init(state, info));
771
45.7k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
45.7k
                                                         "AsyncWriterDependency", true);
773
45.7k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
45.7k
                             _finish_dependency));
775
776
45.7k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
45.7k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
45.7k
    return Status::OK();
779
45.7k
}
_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.17k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.17k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.17k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.17k
                                                         "AsyncWriterDependency", true);
773
5.17k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.17k
                             _finish_dependency));
775
776
5.17k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.17k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.17k
    return Status::OK();
779
5.17k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
3.40k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.40k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.40k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.40k
                                                         "AsyncWriterDependency", true);
773
3.40k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.40k
                             _finish_dependency));
775
776
3.40k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.40k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.40k
    return Status::OK();
779
3.40k
}
_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
65.6k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
65.6k
    RETURN_IF_ERROR(Base::open(state));
785
65.6k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
581k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
515k
        RETURN_IF_ERROR(
788
515k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
515k
    }
790
65.6k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
65.6k
    return Status::OK();
792
65.6k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
519
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
519
    RETURN_IF_ERROR(Base::open(state));
785
519
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.78k
    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
519
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
519
    return Status::OK();
792
519
}
_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.1k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
46.1k
    RETURN_IF_ERROR(Base::open(state));
785
46.1k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
337k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
291k
        RETURN_IF_ERROR(
788
291k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
291k
    }
790
46.1k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
46.1k
    return Status::OK();
792
46.1k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.30k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.30k
    RETURN_IF_ERROR(Base::open(state));
785
9.30k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
56.6k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
47.3k
        RETURN_IF_ERROR(
788
47.3k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
47.3k
    }
790
9.30k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.30k
    return Status::OK();
792
9.30k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
5.16k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
5.16k
    RETURN_IF_ERROR(Base::open(state));
785
5.16k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
136k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
131k
        RETURN_IF_ERROR(
788
131k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
131k
    }
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
41.9k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
38.5k
        RETURN_IF_ERROR(
788
38.5k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
38.5k
    }
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
126
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
94
        RETURN_IF_ERROR(
788
94
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
94
    }
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.4k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
90.4k
    return _writer->sink(block, eos);
798
90.4k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.61k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.61k
    return _writer->sink(block, eos);
798
2.61k
}
_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
62.5k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
62.5k
    return _writer->sink(block, eos);
798
62.5k
}
_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.53k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.53k
    return _writer->sink(block, eos);
798
7.53k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
5.37k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.37k
    return _writer->sink(block, eos);
798
5.37k
}
_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
65.7k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
65.7k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
65.7k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
65.7k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
65.8k
    if (_writer) {
810
65.8k
        Status st = _writer->get_writer_status();
811
65.8k
        if (exec_status.ok()) {
812
65.7k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
65.7k
                                                       : Status::Cancelled("force close"));
814
65.7k
        } else {
815
81
            _writer->force_close(exec_status);
816
81
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
65.8k
        RETURN_IF_ERROR(st);
821
65.8k
    }
822
65.6k
    return Base::close(state, exec_status);
823
65.7k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
507
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
507
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
507
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
507
    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
507
    if (_writer) {
810
507
        Status st = _writer->get_writer_status();
811
507
        if (exec_status.ok()) {
812
507
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
507
                                                       : Status::Cancelled("force close"));
814
507
        } 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
507
        RETURN_IF_ERROR(st);
821
507
    }
822
507
    return Base::close(state, exec_status);
823
507
}
_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.2k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
46.2k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
46.2k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
46.2k
    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.2k
    if (_writer) {
810
46.2k
        Status st = _writer->get_writer_status();
811
46.2k
        if (exec_status.ok()) {
812
46.2k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
46.2k
                                                       : Status::Cancelled("force close"));
814
46.2k
        } 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.2k
        RETURN_IF_ERROR(st);
821
46.2k
    }
822
46.1k
    return Base::close(state, exec_status);
823
46.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.35k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.35k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.35k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.35k
    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.33k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.33k
                                                       : Status::Cancelled("force close"));
814
9.33k
        } else {
815
32
            _writer->force_close(exec_status);
816
32
        }
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.35k
    return Base::close(state, exec_status);
823
9.35k
}
_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.16k
    if (_writer) {
810
5.16k
        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
18.4E
        } else {
815
18.4E
            _writer->force_close(exec_status);
816
18.4E
        }
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.16k
        RETURN_IF_ERROR(st);
821
5.16k
    }
822
5.16k
    return Base::close(state, exec_status);
823
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.39k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.39k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.39k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.39k
    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.39k
}
_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