Coverage Report

Created: 2026-05-14 12:20

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