Coverage Report

Created: 2026-07-16 11:11

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