Coverage Report

Created: 2026-07-02 01:07

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.32M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.32M
    if (_parent->nereids_id() == -1) {
122
1.23M
        return fmt::format("(id={})", _parent->node_id());
123
1.23M
    } else {
124
1.08M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.08M
    }
126
2.32M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
67.2k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
67.2k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
67.2k
    } else {
124
67.2k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
67.2k
    }
126
67.2k
}
_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
259k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
259k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
259k
    } else {
124
259k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
259k
    }
126
259k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
24
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
24
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
24
    } else {
124
24
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
24
    }
126
24
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
9.62k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
9.62k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
9.62k
    } else {
124
9.62k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
9.62k
    }
126
9.62k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.7k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.7k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
11.7k
    } else {
124
11.7k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
11.7k
    }
126
11.7k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
153k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
153k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
153k
    } else {
124
153k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
153k
    }
126
153k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
490
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
490
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
490
    } else {
124
490
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
490
    }
126
490
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
46
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
46
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
46
    } else {
124
46
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
46
    }
126
46
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
942k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
942k
    if (_parent->nereids_id() == -1) {
122
420k
        return fmt::format("(id={})", _parent->node_id());
123
521k
    } else {
124
521k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
521k
    }
126
942k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
55.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
55.9k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
55.9k
    } else {
124
55.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
55.9k
    }
126
55.9k
}
_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
9.69k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
9.69k
    if (_parent->nereids_id() == -1) {
122
9.69k
        return fmt::format("(id={})", _parent->node_id());
123
9.69k
    } else {
124
2
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
2
    }
126
9.69k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
406
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
406
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
304
    } else {
124
304
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
304
    }
126
406
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
5.03k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
5.03k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
5.02k
    } else {
124
5.02k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
5.02k
    }
126
5.03k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
807k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
807k
    if (_parent->nereids_id() == -1) {
122
806k
        return fmt::format("(id={})", _parent->node_id());
123
806k
    } else {
124
1.18k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.18k
    }
126
807k
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
_ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
163
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
163
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
163
    } else {
124
163
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
163
    }
126
163
}
127
128
template <typename SharedStateArg>
129
1.43M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.43M
    if (_parent->nereids_id() == -1) {
131
877k
        return fmt::format("(id={})", _parent->node_id());
132
877k
    } else {
133
560k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
560k
    }
135
1.43M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
115k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
115k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
115k
    } else {
133
115k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
115k
    }
135
115k
}
_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
260k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
260k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
260k
    } else {
133
260k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
260k
    }
135
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
31
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
31
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
31
    } else {
133
31
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
31
    }
135
31
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
9.63k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
9.63k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
9.63k
    } else {
133
9.63k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
9.63k
    }
135
9.63k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
11.8k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
11.8k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
11.8k
    } else {
133
11.8k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
11.8k
    }
135
11.8k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
154k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
154k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
154k
    } else {
133
154k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
154k
    }
135
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
487
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
487
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
487
    } else {
133
487
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
487
    }
135
487
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
56
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
56
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
56
    } else {
133
56
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
56
    }
135
56
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
86
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
86
    if (_parent->nereids_id() == -1) {
131
86
        return fmt::format("(id={})", _parent->node_id());
132
86
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
86
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
6.60k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
6.60k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
6.59k
    } else {
133
6.59k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
6.59k
    }
135
6.60k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
405
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
405
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
303
    } else {
133
303
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
303
    }
135
405
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.2k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.3k
    if (_parent->nereids_id() == -1) {
131
12.3k
        return fmt::format("(id={})", _parent->node_id());
132
18.4E
    } else {
133
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
18.4E
    }
135
12.2k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
335k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
335k
    if (_parent->nereids_id() == -1) {
131
335k
        return fmt::format("(id={})", _parent->node_id());
132
335k
    } else {
133
184
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
184
    }
135
335k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
529k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
529k
    if (_parent->nereids_id() == -1) {
131
529k
        return fmt::format("(id={})", _parent->node_id());
132
529k
    } else {
133
573
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
573
    }
135
529k
}
_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.4k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
29.4k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
29.4k
    _terminated = true;
143
29.4k
    return Status::OK();
144
29.4k
}
_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
744
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
744
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
744
    _terminated = true;
143
744
    return Status::OK();
144
744
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.29k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.29k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.29k
    _terminated = true;
143
2.29k
    return Status::OK();
144
2.29k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_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
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.55k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.55k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1.55k
    _terminated = true;
143
1.55k
    return Status::OK();
144
1.55k
}
_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
1
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
1
    _terminated = true;
143
1
    return Status::OK();
144
1
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
451
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
451
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
451
    _terminated = true;
143
451
    return Status::OK();
144
451
}
_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
187
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
187
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
187
    _terminated = true;
143
187
    return Status::OK();
144
187
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
147
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
147
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
147
    _terminated = true;
143
147
    return Status::OK();
144
147
}
145
146
416k
DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const {
147
416k
    return _child && _child->is_serial_operator() && !is_source()
148
416k
                   ? DataDistribution(TLocalPartitionType::PASSTHROUGH)
149
416k
                   : DataDistribution(TLocalPartitionType::NOOP);
150
416k
}
151
152
33.4k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
33.4k
    if (!_child) {
154
28.8k
        return false;
155
28.8k
    }
156
4.61k
    if (_child->is_serial_operator()) {
157
114
        return true;
158
114
    }
159
4.50k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.50k
    return child_distribution.need_local_exchange() &&
161
4.50k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
4.61k
}
163
164
82.4k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.4k
    return _child->row_desc();
166
82.4k
}
167
168
template <typename SharedStateArg>
169
19.4k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
19.4k
    fmt::memory_buffer debug_string_buffer;
171
19.4k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
19.4k
    return fmt::to_string(debug_string_buffer);
173
19.4k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
140
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
140
    fmt::memory_buffer debug_string_buffer;
171
140
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
140
    return fmt::to_string(debug_string_buffer);
173
140
}
_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
50
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
50
    fmt::memory_buffer debug_string_buffer;
171
50
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
50
    return fmt::to_string(debug_string_buffer);
173
50
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
47
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
47
    fmt::memory_buffer debug_string_buffer;
171
47
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
47
    return fmt::to_string(debug_string_buffer);
173
47
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
44
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
44
    fmt::memory_buffer debug_string_buffer;
171
44
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
44
    return fmt::to_string(debug_string_buffer);
173
44
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
18.9k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
18.9k
    fmt::memory_buffer debug_string_buffer;
171
18.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
18.9k
    return fmt::to_string(debug_string_buffer);
173
18.9k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
2
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
2
    fmt::memory_buffer debug_string_buffer;
171
2
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
2
    return fmt::to_string(debug_string_buffer);
173
2
}
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
287
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
287
    fmt::memory_buffer debug_string_buffer;
171
287
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
287
    return fmt::to_string(debug_string_buffer);
173
287
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
19.2k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
19.2k
    fmt::memory_buffer debug_string_buffer;
178
19.2k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
19.2k
    return fmt::to_string(debug_string_buffer);
180
19.2k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
30
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
30
    fmt::memory_buffer debug_string_buffer;
178
30
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
30
    return fmt::to_string(debug_string_buffer);
180
30
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
50
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
50
    fmt::memory_buffer debug_string_buffer;
178
50
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
50
    return fmt::to_string(debug_string_buffer);
180
50
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
28
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
28
    fmt::memory_buffer debug_string_buffer;
178
28
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
28
    return fmt::to_string(debug_string_buffer);
180
28
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
44
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
44
    fmt::memory_buffer debug_string_buffer;
178
44
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
44
    return fmt::to_string(debug_string_buffer);
180
44
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
191
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
191
    fmt::memory_buffer debug_string_buffer;
178
191
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
191
    return fmt::to_string(debug_string_buffer);
180
191
}
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
162
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
162
    fmt::memory_buffer debug_string_buffer;
178
162
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
162
    return fmt::to_string(debug_string_buffer);
180
162
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
18.7k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
18.7k
    fmt::memory_buffer debug_string_buffer;
178
18.7k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
18.7k
    return fmt::to_string(debug_string_buffer);
180
18.7k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
19.5k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
19.5k
    fmt::memory_buffer debug_string_buffer;
184
19.5k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
19.5k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
19.5k
                   _is_serial_operator);
187
19.5k
    return fmt::to_string(debug_string_buffer);
188
19.5k
}
189
190
19.4k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
19.4k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
19.4k
}
193
194
831k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
831k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
831k
    _nereids_id = tnode.nereids_id;
197
831k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.00k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.00k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.00k
            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.00k
    }
210
831k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
831k
    _op_name = substr + "_OPERATOR";
212
213
831k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
831k
    } 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
831k
    if (tnode.__isset.projections) {
225
320k
        DCHECK(tnode.__isset.output_tuple_id);
226
320k
        RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections));
227
320k
    }
228
831k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.00k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.00k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.01k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.01k
            VExprContextSPtrs projections;
233
8.01k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.01k
            _intermediate_projections.push_back(projections);
235
8.01k
        }
236
4.00k
    }
237
831k
    return Status::OK();
238
831k
}
239
240
863k
Status OperatorXBase::prepare(RuntimeState* state) {
241
863k
    for (auto& conjunct : _conjuncts) {
242
451k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
451k
    }
244
863k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
810k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
597k
            return a->execute_cost() < b->execute_cost();
247
597k
        });
248
810k
    };
249
250
871k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.00k
        RETURN_IF_ERROR(
252
8.00k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.00k
    }
254
863k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
863k
    if (has_output_row_desc()) {
257
320k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
320k
    }
259
260
863k
    for (auto& conjunct : _conjuncts) {
261
451k
        RETURN_IF_ERROR(conjunct->open(state));
262
451k
    }
263
863k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
863k
    for (auto& projections : _intermediate_projections) {
265
8.01k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.01k
    }
267
863k
    if (_child && !is_source()) {
268
134k
        RETURN_IF_ERROR(_child->prepare(state));
269
134k
    }
270
271
863k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
863k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
863k
    return Status::OK();
277
863k
}
278
279
6.67k
Status OperatorXBase::terminate(RuntimeState* state) {
280
6.67k
    if (_child && !is_source()) {
281
1.27k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.27k
    }
283
6.67k
    auto result = state->get_local_state_result(operator_id());
284
6.67k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
6.67k
    return result.value()->terminate(state);
288
6.67k
}
289
290
6.48M
Status OperatorXBase::close(RuntimeState* state) {
291
6.48M
    if (_child && !is_source()) {
292
1.18M
        RETURN_IF_ERROR(_child->close(state));
293
1.18M
    }
294
6.48M
    auto result = state->get_local_state_result(operator_id());
295
6.48M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.48M
    return result.value()->close(state);
299
6.48M
}
300
301
293k
void PipelineXLocalStateBase::clear_origin_block() {
302
293k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
293k
}
304
305
669k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
669k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
669k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
669k
    return Status::OK();
310
669k
}
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
293k
                                     Block* output_block) const {
319
293k
    auto* local_state = state->get_local_state(operator_id());
320
293k
    SCOPED_TIMER(local_state->exec_time_counter());
321
293k
    SCOPED_TIMER(local_state->_projection_timer);
322
293k
    const size_t rows = origin_block->rows();
323
293k
    if (rows == 0) {
324
153k
        return Status::OK();
325
153k
    }
326
140k
    Block input_block = *origin_block;
327
328
140k
    size_t bytes_usage = 0;
329
140k
    ColumnsWithTypeAndName new_columns;
330
140k
    for (const auto& projections : local_state->_intermediate_projections) {
331
1.55k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.55k
        new_columns.resize(projections.size());
336
10.5k
        for (int i = 0; i < projections.size(); i++) {
337
9.01k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
9.01k
            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.01k
        }
346
1.55k
        Block tmp_block {new_columns};
347
1.55k
        bytes_usage += tmp_block.allocated_bytes();
348
1.55k
        input_block.swap(tmp_block);
349
1.55k
    }
350
351
140k
    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
663k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
663k
        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
663k
        } else {
368
663k
            if (_keep_origin || !from->is_exclusive()) {
369
663k
                to->insert_range_from(*from, 0, rows);
370
663k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
663k
        }
375
663k
    };
376
377
140k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
140k
            output_block, *_output_row_descriptor);
379
140k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
140k
    auto& mutable_columns = mutable_block.mutable_columns();
381
140k
    if (rows != 0) {
382
140k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
803k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
663k
            ColumnPtr column_ptr;
385
663k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
663k
            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
663k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
663k
            bytes_usage += column_ptr->allocated_bytes();
394
663k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
663k
        }
396
140k
        DCHECK(mutable_block.rows() == rows);
397
140k
    }
398
140k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
140k
    return Status::OK();
401
140k
}
402
403
4.85M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.85M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.85M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.85M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.85M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.85M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.85M
            if (_debug_point_count++ % 2 == 0) {
410
4.85M
                return Status::OK();
411
4.85M
            }
412
4.85M
        }
413
4.85M
    });
414
415
4.85M
    Status status;
416
4.85M
    auto* local_state = state->get_local_state(operator_id());
417
4.85M
    Defer defer([&]() {
418
4.85M
        if (status.ok()) {
419
4.85M
            local_state->update_output_block_counters(*block);
420
4.85M
        }
421
4.85M
    });
422
4.85M
    if (_output_row_descriptor) {
423
293k
        local_state->clear_origin_block();
424
293k
        status = get_block(state, &local_state->_origin_block, eos);
425
293k
        if (UNLIKELY(!status.ok())) {
426
19
            return status;
427
19
        }
428
293k
        status = do_projections(state, &local_state->_origin_block, block);
429
293k
        return status;
430
293k
    }
431
4.55M
    status = get_block(state, block, eos);
432
4.55M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.55M
    return status;
434
4.55M
}
435
436
3.16M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.16M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
7.68k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
7.68k
        *eos = true;
440
7.68k
    }
441
442
3.16M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.16M
        auto op_name = to_lower(_parent->_op_name);
444
3.16M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.16M
        arg_op_name = to_lower(arg_op_name);
446
447
3.16M
        if (op_name == arg_op_name) {
448
3.16M
            *eos = true;
449
3.16M
        }
450
3.16M
    });
451
452
3.16M
    if (auto rows = block->rows()) {
453
889k
        _num_rows_returned += rows;
454
889k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
889k
    }
456
3.16M
}
457
458
29.4k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
29.4k
    auto result = state->get_sink_local_state_result();
460
29.4k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
29.4k
    return result.value()->terminate(state);
464
29.4k
}
465
466
19.2k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
19.2k
    fmt::memory_buffer debug_string_buffer;
468
469
19.2k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
19.2k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
19.2k
    return fmt::to_string(debug_string_buffer);
472
19.2k
}
473
474
19.2k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
19.2k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
19.2k
}
477
478
460k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
460k
    std::string op_name = "UNKNOWN_SINK";
480
460k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
460k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
460k
        op_name = it->second;
484
460k
    }
485
460k
    _name = op_name + "_OPERATOR";
486
460k
    return Status::OK();
487
460k
}
488
489
315k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
315k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
315k
    _nereids_id = tnode.nereids_id;
492
315k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
315k
    _name = substr + "_SINK_OPERATOR";
494
315k
    return Status::OK();
495
315k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.15M
                                                            LocalSinkStateInfo& info) {
500
2.15M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.15M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.15M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.15M
    return Status::OK();
504
2.15M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
115k
                                                            LocalSinkStateInfo& info) {
500
115k
    auto local_state = LocalStateType::create_unique(this, state);
501
115k
    RETURN_IF_ERROR(local_state->init(state, info));
502
115k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
115k
    return Status::OK();
504
115k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
464k
                                                            LocalSinkStateInfo& info) {
500
464k
    auto local_state = LocalStateType::create_unique(this, state);
501
464k
    RETURN_IF_ERROR(local_state->init(state, info));
502
464k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
464k
    return Status::OK();
504
464k
}
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
88
                                                            LocalSinkStateInfo& info) {
500
88
    auto local_state = LocalStateType::create_unique(this, state);
501
88
    RETURN_IF_ERROR(local_state->init(state, info));
502
88
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
88
    return Status::OK();
504
88
}
_ZN5doris17DataSinkOperatorXINS_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
523
                                                            LocalSinkStateInfo& info) {
500
523
    auto local_state = LocalStateType::create_unique(this, state);
501
523
    RETURN_IF_ERROR(local_state->init(state, info));
502
523
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
523
    return Status::OK();
504
523
}
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
45.4k
                                                            LocalSinkStateInfo& info) {
500
45.4k
    auto local_state = LocalStateType::create_unique(this, state);
501
45.4k
    RETURN_IF_ERROR(local_state->init(state, info));
502
45.4k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
45.4k
    return Status::OK();
504
45.4k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.26k
                                                            LocalSinkStateInfo& info) {
500
9.26k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.26k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.26k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.26k
    return Status::OK();
504
9.26k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.17k
                                                            LocalSinkStateInfo& info) {
500
5.17k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.17k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.17k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.17k
    return Status::OK();
504
5.17k
}
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
156
                                                            LocalSinkStateInfo& info) {
500
156
    auto local_state = LocalStateType::create_unique(this, state);
501
156
    RETURN_IF_ERROR(local_state->init(state, info));
502
156
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
156
    return Status::OK();
504
156
}
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.40k
                                                            LocalSinkStateInfo& info) {
500
3.40k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.40k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.40k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.40k
    return Status::OK();
504
3.40k
}
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
32
                                                            LocalSinkStateInfo& info) {
500
32
    auto local_state = LocalStateType::create_unique(this, state);
501
32
    RETURN_IF_ERROR(local_state->init(state, info));
502
32
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
32
    return Status::OK();
504
32
}
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
176
                                                            LocalSinkStateInfo& info) {
500
176
    auto local_state = LocalStateType::create_unique(this, state);
501
176
    RETURN_IF_ERROR(local_state->init(state, info));
502
176
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
176
    return Status::OK();
504
176
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
640
                                                            LocalSinkStateInfo& info) {
500
640
    auto local_state = LocalStateType::create_unique(this, state);
501
640
    RETURN_IF_ERROR(local_state->init(state, info));
502
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
640
    return Status::OK();
504
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
11.8k
                                                            LocalSinkStateInfo& info) {
500
11.8k
    auto local_state = LocalStateType::create_unique(this, state);
501
11.8k
    RETURN_IF_ERROR(local_state->init(state, info));
502
11.8k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
11.8k
    return Status::OK();
504
11.8k
}
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
83
                                                            LocalSinkStateInfo& info) {
500
83
    auto local_state = LocalStateType::create_unique(this, state);
501
83
    RETURN_IF_ERROR(local_state->init(state, info));
502
83
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
83
    return Status::OK();
504
83
}
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
260k
                                                            LocalSinkStateInfo& info) {
500
260k
    auto local_state = LocalStateType::create_unique(this, state);
501
260k
    RETURN_IF_ERROR(local_state->init(state, info));
502
260k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
260k
    return Status::OK();
504
260k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
31
                                                            LocalSinkStateInfo& info) {
500
31
    auto local_state = LocalStateType::create_unique(this, state);
501
31
    RETURN_IF_ERROR(local_state->init(state, info));
502
31
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
31
    return Status::OK();
504
31
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
335k
                                                            LocalSinkStateInfo& info) {
500
335k
    auto local_state = LocalStateType::create_unique(this, state);
501
335k
    RETURN_IF_ERROR(local_state->init(state, info));
502
335k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
335k
    return Status::OK();
504
335k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
154k
                                                            LocalSinkStateInfo& info) {
500
154k
    auto local_state = LocalStateType::create_unique(this, state);
501
154k
    RETURN_IF_ERROR(local_state->init(state, info));
502
154k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
154k
    return Status::OK();
504
154k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
487
                                                            LocalSinkStateInfo& info) {
500
487
    auto local_state = LocalStateType::create_unique(this, state);
501
487
    RETURN_IF_ERROR(local_state->init(state, info));
502
487
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
487
    return Status::OK();
504
487
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
56
                                                            LocalSinkStateInfo& info) {
500
56
    auto local_state = LocalStateType::create_unique(this, state);
501
56
    RETURN_IF_ERROR(local_state->init(state, info));
502
56
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
56
    return Status::OK();
504
56
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
717k
                                                            LocalSinkStateInfo& info) {
500
717k
    auto local_state = LocalStateType::create_unique(this, state);
501
717k
    RETURN_IF_ERROR(local_state->init(state, info));
502
717k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
717k
    return Status::OK();
504
717k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.63k
                                                            LocalSinkStateInfo& info) {
500
9.63k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.63k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.63k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.63k
    return Status::OK();
504
9.63k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
6.58k
                                                            LocalSinkStateInfo& info) {
500
6.58k
    auto local_state = LocalStateType::create_unique(this, state);
501
6.58k
    RETURN_IF_ERROR(local_state->init(state, info));
502
6.58k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
6.58k
    return Status::OK();
504
6.58k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
3.39k
                                                            LocalSinkStateInfo& info) {
500
3.39k
    auto local_state = LocalStateType::create_unique(this, state);
501
3.39k
    RETURN_IF_ERROR(local_state->init(state, info));
502
3.39k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
3.39k
    return Status::OK();
504
3.39k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
303
                                                            LocalSinkStateInfo& info) {
500
303
    auto local_state = LocalStateType::create_unique(this, state);
501
303
    RETURN_IF_ERROR(local_state->init(state, info));
502
303
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
303
    return Status::OK();
504
303
}
_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.57k
                                                            LocalSinkStateInfo& info) {
500
2.57k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.57k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.57k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.57k
    return Status::OK();
504
2.57k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.49k
                                                            LocalSinkStateInfo& info) {
500
2.49k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.49k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.49k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.49k
    return Status::OK();
504
2.49k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.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_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
105
                                                            LocalSinkStateInfo& info) {
500
105
    auto local_state = LocalStateType::create_unique(this, state);
501
105
    RETURN_IF_ERROR(local_state->init(state, info));
502
105
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
105
    return Status::OK();
504
105
}
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
164
                                                            LocalSinkStateInfo& info) {
500
164
    auto local_state = LocalStateType::create_unique(this, state);
501
164
    RETURN_IF_ERROR(local_state->init(state, info));
502
164
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
164
    return Status::OK();
504
164
}
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
164
                                                            LocalSinkStateInfo& info) {
500
164
    auto local_state = LocalStateType::create_unique(this, state);
501
164
    RETURN_IF_ERROR(local_state->init(state, info));
502
164
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
164
    return Status::OK();
504
164
}
505
506
template <typename LocalStateType>
507
1.78M
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.78M
    } else {
515
1.78M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.78M
        ss->id = operator_id();
517
1.78M
        for (auto& dest : dests_id()) {
518
1.78M
            ss->related_op_ids.insert(dest);
519
1.78M
        }
520
1.78M
        return ss;
521
1.78M
    }
522
1.78M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
99.0k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
99.0k
    } else {
515
99.0k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
99.0k
        ss->id = operator_id();
517
99.0k
        for (auto& dest : dests_id()) {
518
99.0k
            ss->related_op_ids.insert(dest);
519
99.0k
        }
520
99.0k
        return ss;
521
99.0k
    }
522
99.0k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
465k
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
465k
    } else {
515
465k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
465k
        ss->id = operator_id();
517
465k
        for (auto& dest : dests_id()) {
518
464k
            ss->related_op_ids.insert(dest);
519
464k
        }
520
465k
        return ss;
521
465k
    }
522
465k
}
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
88
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
88
    } else {
515
88
        auto ss = LocalStateType::SharedStateType::create_shared();
516
88
        ss->id = operator_id();
517
88
        for (auto& dest : dests_id()) {
518
88
            ss->related_op_ids.insert(dest);
519
88
        }
520
88
        return ss;
521
88
    }
522
88
}
_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
522
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
522
    } else {
515
522
        auto ss = LocalStateType::SharedStateType::create_shared();
516
522
        ss->id = operator_id();
517
523
        for (auto& dest : dests_id()) {
518
523
            ss->related_op_ids.insert(dest);
519
523
        }
520
522
        return ss;
521
522
    }
522
522
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
45.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
45.4k
    } else {
515
45.4k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
45.4k
        ss->id = operator_id();
517
45.4k
        for (auto& dest : dests_id()) {
518
45.3k
            ss->related_op_ids.insert(dest);
519
45.3k
        }
520
45.4k
        return ss;
521
45.4k
    }
522
45.4k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.26k
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.26k
    } else {
515
9.26k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.26k
        ss->id = operator_id();
517
9.26k
        for (auto& dest : dests_id()) {
518
9.26k
            ss->related_op_ids.insert(dest);
519
9.26k
        }
520
9.26k
        return ss;
521
9.26k
    }
522
9.26k
}
_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.16k
            ss->related_op_ids.insert(dest);
519
5.16k
        }
520
5.17k
        return ss;
521
5.17k
    }
522
5.17k
}
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
156
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
156
    } else {
515
156
        auto ss = LocalStateType::SharedStateType::create_shared();
516
156
        ss->id = operator_id();
517
156
        for (auto& dest : dests_id()) {
518
156
            ss->related_op_ids.insert(dest);
519
156
        }
520
156
        return ss;
521
156
    }
522
156
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
3.40k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
3.40k
    } else {
515
3.40k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.40k
        ss->id = operator_id();
517
3.40k
        for (auto& dest : dests_id()) {
518
3.40k
            ss->related_op_ids.insert(dest);
519
3.40k
        }
520
3.40k
        return ss;
521
3.40k
    }
522
3.40k
}
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
32
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
32
    } else {
515
32
        auto ss = LocalStateType::SharedStateType::create_shared();
516
32
        ss->id = operator_id();
517
32
        for (auto& dest : dests_id()) {
518
32
            ss->related_op_ids.insert(dest);
519
32
        }
520
32
        return ss;
521
32
    }
522
32
}
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
176
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
176
    } else {
515
176
        auto ss = LocalStateType::SharedStateType::create_shared();
516
176
        ss->id = operator_id();
517
176
        for (auto& dest : dests_id()) {
518
176
            ss->related_op_ids.insert(dest);
519
176
        }
520
176
        return ss;
521
176
    }
522
176
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
640
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
640
    } else {
515
640
        auto ss = LocalStateType::SharedStateType::create_shared();
516
640
        ss->id = operator_id();
517
640
        for (auto& dest : dests_id()) {
518
640
            ss->related_op_ids.insert(dest);
519
640
        }
520
640
        return ss;
521
640
    }
522
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
11.8k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
11.8k
    } else {
515
11.8k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
11.8k
        ss->id = operator_id();
517
11.8k
        for (auto& dest : dests_id()) {
518
11.8k
            ss->related_op_ids.insert(dest);
519
11.8k
        }
520
11.8k
        return ss;
521
11.8k
    }
522
11.8k
}
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
83
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
83
    } else {
515
83
        auto ss = LocalStateType::SharedStateType::create_shared();
516
83
        ss->id = operator_id();
517
83
        for (auto& dest : dests_id()) {
518
83
            ss->related_op_ids.insert(dest);
519
83
        }
520
83
        return ss;
521
83
    }
522
83
}
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
260k
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
260k
    } else {
515
260k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
260k
        ss->id = operator_id();
517
260k
        for (auto& dest : dests_id()) {
518
260k
            ss->related_op_ids.insert(dest);
519
260k
        }
520
260k
        return ss;
521
260k
    }
522
260k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
33
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
33
    } else {
515
33
        auto ss = LocalStateType::SharedStateType::create_shared();
516
33
        ss->id = operator_id();
517
33
        for (auto& dest : dests_id()) {
518
33
            ss->related_op_ids.insert(dest);
519
33
        }
520
33
        return ss;
521
33
    }
522
33
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
154k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
154k
    } else {
515
154k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
154k
        ss->id = operator_id();
517
154k
        for (auto& dest : dests_id()) {
518
154k
            ss->related_op_ids.insert(dest);
519
154k
        }
520
154k
        return ss;
521
154k
    }
522
154k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
55
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
55
    } else {
515
55
        auto ss = LocalStateType::SharedStateType::create_shared();
516
55
        ss->id = operator_id();
517
55
        for (auto& dest : dests_id()) {
518
55
            ss->related_op_ids.insert(dest);
519
55
        }
520
55
        return ss;
521
55
    }
522
55
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
717k
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
717k
    } else {
515
717k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
717k
        ss->id = operator_id();
517
717k
        for (auto& dest : dests_id()) {
518
715k
            ss->related_op_ids.insert(dest);
519
715k
        }
520
717k
        return ss;
521
717k
    }
522
717k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.64k
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.64k
    } else {
515
9.64k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.64k
        ss->id = operator_id();
517
9.64k
        for (auto& dest : dests_id()) {
518
9.63k
            ss->related_op_ids.insert(dest);
519
9.63k
        }
520
9.64k
        return ss;
521
9.64k
    }
522
9.64k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
405
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
405
    } else {
515
405
        auto ss = LocalStateType::SharedStateType::create_shared();
516
405
        ss->id = operator_id();
517
405
        for (auto& dest : dests_id()) {
518
405
            ss->related_op_ids.insert(dest);
519
405
        }
520
405
        return ss;
521
405
    }
522
405
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.47k
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.47k
    } else {
515
2.47k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.47k
        ss->id = operator_id();
517
2.47k
        for (auto& dest : dests_id()) {
518
2.46k
            ss->related_op_ids.insert(dest);
519
2.46k
        }
520
2.47k
        return ss;
521
2.47k
    }
522
2.47k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.50k
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.50k
    } else {
515
2.50k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.50k
        ss->id = operator_id();
517
2.50k
        for (auto& dest : dests_id()) {
518
2.50k
            ss->related_op_ids.insert(dest);
519
2.50k
        }
520
2.50k
        return ss;
521
2.50k
    }
522
2.50k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
566
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
566
    } else {
515
566
        auto ss = LocalStateType::SharedStateType::create_shared();
516
566
        ss->id = operator_id();
517
566
        for (auto& dest : dests_id()) {
518
565
            ss->related_op_ids.insert(dest);
519
565
        }
520
566
        return ss;
521
566
    }
522
566
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
105
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
105
    } else {
515
105
        auto ss = LocalStateType::SharedStateType::create_shared();
516
105
        ss->id = operator_id();
517
105
        for (auto& dest : dests_id()) {
518
105
            ss->related_op_ids.insert(dest);
519
105
        }
520
105
        return ss;
521
105
    }
522
105
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.67M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.67M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.67M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.67M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.67M
    return Status::OK();
530
2.67M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
67.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
67.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
67.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
67.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
67.2k
    return Status::OK();
530
67.2k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
309k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
309k
    auto local_state = LocalStateType::create_unique(state, this);
527
309k
    RETURN_IF_ERROR(local_state->init(state, info));
528
309k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
309k
    return Status::OK();
530
309k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
148
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
148
    auto local_state = LocalStateType::create_unique(state, this);
527
148
    RETURN_IF_ERROR(local_state->init(state, info));
528
148
    state->emplace_local_state(operator_id(), std::move(local_state));
529
148
    return Status::OK();
530
148
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
34.6k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
34.6k
    auto local_state = LocalStateType::create_unique(state, this);
527
34.6k
    RETURN_IF_ERROR(local_state->init(state, info));
528
34.6k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
34.6k
    return Status::OK();
530
34.6k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.7k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.7k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.7k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.7k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.7k
    return Status::OK();
530
11.7k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
12.0k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
12.0k
    auto local_state = LocalStateType::create_unique(state, this);
527
12.0k
    RETURN_IF_ERROR(local_state->init(state, info));
528
12.0k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
12.0k
    return Status::OK();
530
12.0k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
24
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
24
    auto local_state = LocalStateType::create_unique(state, this);
527
24
    RETURN_IF_ERROR(local_state->init(state, info));
528
24
    state->emplace_local_state(operator_id(), std::move(local_state));
529
24
    return Status::OK();
530
24
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
248k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
248k
    auto local_state = LocalStateType::create_unique(state, this);
527
248k
    RETURN_IF_ERROR(local_state->init(state, info));
528
248k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
248k
    return Status::OK();
530
248k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
154k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
154k
    auto local_state = LocalStateType::create_unique(state, this);
527
154k
    RETURN_IF_ERROR(local_state->init(state, info));
528
154k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
154k
    return Status::OK();
530
154k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
489
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
489
    auto local_state = LocalStateType::create_unique(state, this);
527
489
    RETURN_IF_ERROR(local_state->init(state, info));
528
489
    state->emplace_local_state(operator_id(), std::move(local_state));
529
489
    return Status::OK();
530
489
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
46
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
46
    auto local_state = LocalStateType::create_unique(state, this);
527
46
    RETURN_IF_ERROR(local_state->init(state, info));
528
46
    state->emplace_local_state(operator_id(), std::move(local_state));
529
46
    return Status::OK();
530
46
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
3.75k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
3.75k
    auto local_state = LocalStateType::create_unique(state, this);
527
3.75k
    RETURN_IF_ERROR(local_state->init(state, info));
528
3.75k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
3.75k
    return Status::OK();
530
3.75k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
421k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
421k
    auto local_state = LocalStateType::create_unique(state, this);
527
421k
    RETURN_IF_ERROR(local_state->init(state, info));
528
421k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
421k
    return Status::OK();
530
421k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.31k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.31k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.31k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.31k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.31k
    return Status::OK();
530
1.31k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
9.62k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
9.62k
    auto local_state = LocalStateType::create_unique(state, this);
527
9.62k
    RETURN_IF_ERROR(local_state->init(state, info));
528
9.62k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
9.62k
    return Status::OK();
530
9.62k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
221
    auto local_state = LocalStateType::create_unique(state, this);
527
221
    RETURN_IF_ERROR(local_state->init(state, info));
528
221
    state->emplace_local_state(operator_id(), std::move(local_state));
529
221
    return Status::OK();
530
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.68k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.68k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.68k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.68k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.68k
    return Status::OK();
530
1.68k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
56.0k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.0k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.0k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.0k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.0k
    return Status::OK();
530
56.0k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
9.70k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
9.70k
    auto local_state = LocalStateType::create_unique(state, this);
527
9.70k
    RETURN_IF_ERROR(local_state->init(state, info));
528
9.70k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
9.70k
    return Status::OK();
530
9.70k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
304
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
304
    auto local_state = LocalStateType::create_unique(state, this);
527
304
    RETURN_IF_ERROR(local_state->init(state, info));
528
304
    state->emplace_local_state(operator_id(), std::move(local_state));
529
304
    return Status::OK();
530
304
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.51k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.51k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.51k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.51k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.51k
    return Status::OK();
530
2.51k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.51k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.51k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.51k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.51k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.51k
    return Status::OK();
530
2.51k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
497
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
497
    auto local_state = LocalStateType::create_unique(state, this);
527
497
    RETURN_IF_ERROR(local_state->init(state, info));
528
497
    state->emplace_local_state(operator_id(), std::move(local_state));
529
497
    return Status::OK();
530
497
}
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.09k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.09k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.09k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.09k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.09k
    return Status::OK();
530
2.09k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
7.18k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
7.18k
    auto local_state = LocalStateType::create_unique(state, this);
527
7.18k
    RETURN_IF_ERROR(local_state->init(state, info));
528
7.18k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
7.18k
    return Status::OK();
530
7.18k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
808k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
808k
    auto local_state = LocalStateType::create_unique(state, this);
527
808k
    RETURN_IF_ERROR(local_state->init(state, info));
528
808k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
808k
    return Status::OK();
530
808k
}
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.62k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.62k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.62k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.62k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.62k
    return Status::OK();
530
2.62k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_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_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
490k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
490k
    auto local_state = LocalStateType::create_unique(state, this);
527
490k
    RETURN_IF_ERROR(local_state->init(state, info));
528
490k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
490k
    return Status::OK();
530
490k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.16M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.67M
        : _num_rows_returned(0),
538
2.67M
          _rows_returned_counter(nullptr),
539
2.67M
          _parent(parent),
540
2.67M
          _state(state),
541
2.67M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.67M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.67M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.67M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.67M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.67M
    _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.67M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.67M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.67M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.67M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.67M
    if constexpr (!is_fake_shared) {
556
1.38M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
825k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
825k
                                    .first.get()
559
825k
                                    ->template cast<SharedStateArg>();
560
561
825k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
825k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
825k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
825k
        } else if (info.shared_state) {
565
502k
            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
502k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
502k
            _dependency = _shared_state->create_source_dependency(
572
502k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
502k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
502k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
502k
        } else {
576
61.3k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
3.84k
                DCHECK(false);
578
3.84k
            }
579
61.3k
        }
580
1.38M
    }
581
582
2.67M
    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.67M
    _rows_returned_counter =
587
2.67M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.67M
    _blocks_returned_counter =
589
2.67M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.67M
    _output_block_bytes_counter =
591
2.67M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.67M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.67M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.67M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.67M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.67M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.67M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.67M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.67M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.67M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.67M
    _memory_used_counter =
602
2.67M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.67M
    _common_profile->add_info_string("IsColocate",
604
2.67M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.67M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.67M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.67M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.67M
    return Status::OK();
609
2.67M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
67.4k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
67.4k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
67.4k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
67.4k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
67.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
67.4k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
67.4k
    _operator_profile->add_child(_common_profile.get(), true);
553
67.4k
    _operator_profile->add_child(_custom_profile.get(), true);
554
67.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
67.4k
    if constexpr (!is_fake_shared) {
556
67.4k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
16.3k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
16.3k
                                    .first.get()
559
16.3k
                                    ->template cast<SharedStateArg>();
560
561
16.3k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
16.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
16.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
51.1k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
50.7k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
50.7k
            _dependency = _shared_state->create_source_dependency(
572
50.7k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
50.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
50.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
50.7k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
452
        }
580
67.4k
    }
581
582
67.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
67.4k
    _rows_returned_counter =
587
67.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
67.4k
    _blocks_returned_counter =
589
67.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
67.4k
    _output_block_bytes_counter =
591
67.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
67.4k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
67.4k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
67.4k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
67.4k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
67.4k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
67.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
67.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
67.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
67.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
67.4k
    _memory_used_counter =
602
67.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
67.4k
    _common_profile->add_info_string("IsColocate",
604
67.4k
                                     std::to_string(_parent->is_colocated_operator()));
605
67.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
67.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
67.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
67.4k
    return Status::OK();
609
67.4k
}
_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
261k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
261k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
261k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
261k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
261k
    _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
261k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
261k
    _operator_profile->add_child(_common_profile.get(), true);
553
261k
    _operator_profile->add_child(_custom_profile.get(), true);
554
261k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
261k
    if constexpr (!is_fake_shared) {
556
261k
        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
261k
        } 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
258k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
258k
            _dependency = _shared_state->create_source_dependency(
572
258k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
258k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
258k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
258k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
2.66k
        }
580
261k
    }
581
582
261k
    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
261k
    _rows_returned_counter =
587
261k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
261k
    _blocks_returned_counter =
589
261k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
261k
    _output_block_bytes_counter =
591
261k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
261k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
261k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
261k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
261k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
261k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
261k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
261k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
261k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
261k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
261k
    _memory_used_counter =
602
261k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
261k
    _common_profile->add_info_string("IsColocate",
604
261k
                                     std::to_string(_parent->is_colocated_operator()));
605
261k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
261k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
261k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
261k
    return Status::OK();
609
261k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
24
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
24
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
24
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
24
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
24
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
24
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
24
    _operator_profile->add_child(_common_profile.get(), true);
553
24
    _operator_profile->add_child(_custom_profile.get(), true);
554
24
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
24
    if constexpr (!is_fake_shared) {
556
24
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
24
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
24
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
24
            _dependency = _shared_state->create_source_dependency(
572
24
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
24
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
24
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
24
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
24
    }
581
582
24
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
24
    _rows_returned_counter =
587
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
24
    _blocks_returned_counter =
589
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
24
    _output_block_bytes_counter =
591
24
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
24
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
24
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
24
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
24
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
24
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
24
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
24
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
24
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
24
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
24
    _memory_used_counter =
602
24
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
24
    _common_profile->add_info_string("IsColocate",
604
24
                                     std::to_string(_parent->is_colocated_operator()));
605
24
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
24
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
24
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
24
    return Status::OK();
609
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
9.65k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
9.65k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
9.65k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
9.65k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
9.65k
    _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.65k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
9.65k
    _operator_profile->add_child(_common_profile.get(), true);
553
9.65k
    _operator_profile->add_child(_custom_profile.get(), true);
554
9.65k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
9.65k
    if constexpr (!is_fake_shared) {
556
9.65k
        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.65k
        } 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
9.61k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
9.61k
            _dependency = _shared_state->create_source_dependency(
572
9.61k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
9.61k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
9.61k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
9.61k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
43
        }
580
9.65k
    }
581
582
9.65k
    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.65k
    _rows_returned_counter =
587
9.65k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
9.65k
    _blocks_returned_counter =
589
9.65k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
9.65k
    _output_block_bytes_counter =
591
9.65k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
9.65k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
9.65k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
9.65k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
9.65k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
9.65k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
9.65k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
9.65k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
9.65k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
9.65k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
9.65k
    _memory_used_counter =
602
9.65k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
9.65k
    _common_profile->add_info_string("IsColocate",
604
9.65k
                                     std::to_string(_parent->is_colocated_operator()));
605
9.65k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
9.65k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
9.65k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
9.65k
    return Status::OK();
609
9.65k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.8k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.8k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.8k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.8k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.8k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.8k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.8k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.8k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.8k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.8k
    if constexpr (!is_fake_shared) {
556
11.8k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.8k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.7k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.7k
            _dependency = _shared_state->create_source_dependency(
572
11.7k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.7k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.7k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.7k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
65
        }
580
11.8k
    }
581
582
11.8k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.8k
    _rows_returned_counter =
587
11.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.8k
    _blocks_returned_counter =
589
11.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.8k
    _output_block_bytes_counter =
591
11.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.8k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.8k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.8k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.8k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.8k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.8k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.8k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.8k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.8k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.8k
    _memory_used_counter =
602
11.8k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.8k
    _common_profile->add_info_string("IsColocate",
604
11.8k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.8k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.8k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.8k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.8k
    return Status::OK();
609
11.8k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
154k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
154k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
154k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
154k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
154k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
154k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
154k
    _operator_profile->add_child(_common_profile.get(), true);
553
154k
    _operator_profile->add_child(_custom_profile.get(), true);
554
154k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
154k
    if constexpr (!is_fake_shared) {
556
154k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
154k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
153k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
153k
            _dependency = _shared_state->create_source_dependency(
572
153k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
153k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
153k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
153k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
1.23k
        }
580
154k
    }
581
582
154k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
154k
    _rows_returned_counter =
587
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
154k
    _blocks_returned_counter =
589
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
154k
    _output_block_bytes_counter =
591
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
154k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
154k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
154k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
154k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
154k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
154k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
154k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
154k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
154k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
154k
    _memory_used_counter =
602
154k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
154k
    _common_profile->add_info_string("IsColocate",
604
154k
                                     std::to_string(_parent->is_colocated_operator()));
605
154k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
154k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
154k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
154k
    return Status::OK();
609
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
492
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
492
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
492
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
492
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
492
    _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
492
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
492
    _operator_profile->add_child(_common_profile.get(), true);
553
492
    _operator_profile->add_child(_custom_profile.get(), true);
554
492
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
492
    if constexpr (!is_fake_shared) {
556
492
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
486
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
486
                                    .first.get()
559
486
                                    ->template cast<SharedStateArg>();
560
561
486
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
486
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
486
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
486
        } 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
6
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
6
        }
580
492
    }
581
582
492
    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
492
    _rows_returned_counter =
587
492
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
492
    _blocks_returned_counter =
589
492
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
492
    _output_block_bytes_counter =
591
492
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
492
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
492
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
492
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
492
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
492
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
492
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
492
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
492
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
492
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
492
    _memory_used_counter =
602
492
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
492
    _common_profile->add_info_string("IsColocate",
604
492
                                     std::to_string(_parent->is_colocated_operator()));
605
492
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
492
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
492
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
492
    return Status::OK();
609
492
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
46
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
46
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
46
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
46
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
46
    _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
46
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
46
    _operator_profile->add_child(_common_profile.get(), true);
553
46
    _operator_profile->add_child(_custom_profile.get(), true);
554
46
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
46
    if constexpr (!is_fake_shared) {
556
46
        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
46
        } 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
46
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
46
            _dependency = _shared_state->create_source_dependency(
572
46
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
46
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
46
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
46
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
46
    }
581
582
46
    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
46
    _rows_returned_counter =
587
46
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
46
    _blocks_returned_counter =
589
46
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
46
    _output_block_bytes_counter =
591
46
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
46
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
46
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
46
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
46
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
46
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
46
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
46
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
46
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
46
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
46
    _memory_used_counter =
602
46
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
46
    _common_profile->add_info_string("IsColocate",
604
46
                                     std::to_string(_parent->is_colocated_operator()));
605
46
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
46
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
46
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
46
    return Status::OK();
609
46
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1.28M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1.28M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1.28M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1.28M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1.28M
    _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.28M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1.28M
    _operator_profile->add_child(_common_profile.get(), true);
553
1.28M
    _operator_profile->add_child(_custom_profile.get(), true);
554
1.28M
    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.28M
    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.28M
    _rows_returned_counter =
587
1.28M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1.28M
    _blocks_returned_counter =
589
1.28M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1.28M
    _output_block_bytes_counter =
591
1.28M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1.28M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1.28M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1.28M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1.28M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1.28M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1.28M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1.28M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1.28M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1.28M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1.28M
    _memory_used_counter =
602
1.28M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1.28M
    _common_profile->add_info_string("IsColocate",
604
1.28M
                                     std::to_string(_parent->is_colocated_operator()));
605
1.28M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1.28M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1.28M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1.28M
    return Status::OK();
609
1.28M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
56.0k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.0k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.0k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.0k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.0k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
56.0k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.0k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.0k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.0k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.0k
    if constexpr (!is_fake_shared) {
556
56.0k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
56.0k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
3.06k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
3.06k
            _dependency = _shared_state->create_source_dependency(
572
3.06k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
3.06k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
3.06k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
52.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
52.9k
        }
580
56.0k
    }
581
582
56.0k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
56.0k
    _rows_returned_counter =
587
56.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.0k
    _blocks_returned_counter =
589
56.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.0k
    _output_block_bytes_counter =
591
56.0k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.0k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.0k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.0k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.0k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.0k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.0k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.0k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.0k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.0k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.0k
    _memory_used_counter =
602
56.0k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.0k
    _common_profile->add_info_string("IsColocate",
604
56.0k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.0k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.0k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.0k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.0k
    return Status::OK();
609
56.0k
}
_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
9.70k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
9.70k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
9.70k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
9.70k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
9.70k
    _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.70k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
9.70k
    _operator_profile->add_child(_common_profile.get(), true);
553
9.70k
    _operator_profile->add_child(_custom_profile.get(), true);
554
9.70k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
9.70k
    if constexpr (!is_fake_shared) {
556
9.70k
        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.70k
        } 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
9.69k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
9.69k
            _dependency = _shared_state->create_source_dependency(
572
9.69k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
9.69k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
9.69k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
9.69k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
4
        }
580
9.70k
    }
581
582
9.70k
    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.70k
    _rows_returned_counter =
587
9.70k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
9.70k
    _blocks_returned_counter =
589
9.70k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
9.70k
    _output_block_bytes_counter =
591
9.70k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
9.70k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
9.70k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
9.70k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
9.70k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
9.70k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
9.70k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
9.70k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
9.70k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
9.70k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
9.70k
    _memory_used_counter =
602
9.70k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
9.70k
    _common_profile->add_info_string("IsColocate",
604
9.70k
                                     std::to_string(_parent->is_colocated_operator()));
605
9.70k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
9.70k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
9.70k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
9.70k
    return Status::OK();
609
9.70k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
406
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
406
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
406
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
406
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
406
    _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
406
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
406
    _operator_profile->add_child(_common_profile.get(), true);
553
406
    _operator_profile->add_child(_custom_profile.get(), true);
554
406
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
406
    if constexpr (!is_fake_shared) {
556
406
        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
406
        } 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
406
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
406
            _dependency = _shared_state->create_source_dependency(
572
406
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
406
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
406
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
406
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
406
    }
581
582
406
    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
406
    _rows_returned_counter =
587
406
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
406
    _blocks_returned_counter =
589
406
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
406
    _output_block_bytes_counter =
591
406
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
406
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
406
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
406
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
406
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
406
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
406
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
406
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
406
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
406
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
406
    _memory_used_counter =
602
406
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
406
    _common_profile->add_info_string("IsColocate",
604
406
                                     std::to_string(_parent->is_colocated_operator()));
605
406
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
406
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
406
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
406
    return Status::OK();
609
406
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.04k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.04k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.04k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.04k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.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
5.04k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.04k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.04k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.04k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.04k
    if constexpr (!is_fake_shared) {
556
5.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
5.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
5.02k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
5.02k
            _dependency = _shared_state->create_source_dependency(
572
5.02k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
5.02k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
5.02k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
5.02k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
22
        }
580
5.04k
    }
581
582
5.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
5.04k
    _rows_returned_counter =
587
5.04k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.04k
    _blocks_returned_counter =
589
5.04k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.04k
    _output_block_bytes_counter =
591
5.04k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.04k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.04k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.04k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.04k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.04k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.04k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.04k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.04k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.04k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.04k
    _memory_used_counter =
602
5.04k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.04k
    _common_profile->add_info_string("IsColocate",
604
5.04k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.04k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.04k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.04k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.04k
    return Status::OK();
609
5.04k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
812k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
812k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
812k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
812k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
812k
    _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
812k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
812k
    _operator_profile->add_child(_common_profile.get(), true);
553
812k
    _operator_profile->add_child(_custom_profile.get(), true);
554
812k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
812k
    if constexpr (!is_fake_shared) {
556
812k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
808k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
808k
                                    .first.get()
559
808k
                                    ->template cast<SharedStateArg>();
560
561
808k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
808k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
808k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
808k
        } 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
3.84k
        } else {
576
3.84k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
3.84k
                DCHECK(false);
578
3.84k
            }
579
3.84k
        }
580
812k
    }
581
582
812k
    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
812k
    _rows_returned_counter =
587
812k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
812k
    _blocks_returned_counter =
589
812k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
812k
    _output_block_bytes_counter =
591
812k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
812k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
812k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
812k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
812k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
812k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
812k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
812k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
812k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
812k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
812k
    _memory_used_counter =
602
812k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
812k
    _common_profile->add_info_string("IsColocate",
604
812k
                                     std::to_string(_parent->is_colocated_operator()));
605
812k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
812k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
812k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
812k
    return Status::OK();
609
812k
}
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.68M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.68M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.68M
    _projections.resize(_parent->_projections.size());
615
3.18M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
503k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
503k
    }
618
5.39M
    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.68M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.69M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
14.8k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
96.3k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
81.5k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
81.5k
                    state, _intermediate_projections[i][j]));
627
81.5k
        }
628
14.8k
    }
629
2.68M
    return Status::OK();
630
2.68M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
67.5k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
67.5k
    _conjuncts.resize(_parent->_conjuncts.size());
614
67.5k
    _projections.resize(_parent->_projections.size());
615
68.7k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
1.19k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
1.19k
    }
618
323k
    for (size_t i = 0; i < _projections.size(); i++) {
619
256k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
256k
    }
621
67.5k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
69.2k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.74k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
17.3k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
15.6k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
15.6k
                    state, _intermediate_projections[i][j]));
627
15.6k
        }
628
1.74k
    }
629
67.5k
    return Status::OK();
630
67.5k
}
_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
261k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
261k
    _conjuncts.resize(_parent->_conjuncts.size());
614
261k
    _projections.resize(_parent->_projections.size());
615
261k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
261k
    for (size_t i = 0; i < _projections.size(); i++) {
619
359
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
359
    }
621
261k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
261k
    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
261k
    return Status::OK();
630
261k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
24
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
24
    _conjuncts.resize(_parent->_conjuncts.size());
614
24
    _projections.resize(_parent->_projections.size());
615
24
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
24
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
24
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
24
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
24
    return Status::OK();
630
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
9.65k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
9.65k
    _conjuncts.resize(_parent->_conjuncts.size());
614
9.65k
    _projections.resize(_parent->_projections.size());
615
9.80k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
151
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
151
    }
618
60.4k
    for (size_t i = 0; i < _projections.size(); i++) {
619
50.7k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
50.7k
    }
621
9.65k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
9.81k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
161
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.03k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
871
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
871
                    state, _intermediate_projections[i][j]));
627
871
        }
628
161
    }
629
9.65k
    return Status::OK();
630
9.65k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.8k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.8k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.8k
    _projections.resize(_parent->_projections.size());
615
12.6k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
799
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
799
    }
618
32.7k
    for (size_t i = 0; i < _projections.size(); i++) {
619
20.8k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
20.8k
    }
621
11.8k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.9k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
85
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
642
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
557
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
557
                    state, _intermediate_projections[i][j]));
627
557
        }
628
85
    }
629
11.8k
    return Status::OK();
630
11.8k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
154k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
154k
    _conjuncts.resize(_parent->_conjuncts.size());
614
154k
    _projections.resize(_parent->_projections.size());
615
158k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.85k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.85k
    }
618
417k
    for (size_t i = 0; i < _projections.size(); i++) {
619
262k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
262k
    }
621
154k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
154k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
265
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.94k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.67k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.67k
                    state, _intermediate_projections[i][j]));
627
1.67k
        }
628
265
    }
629
154k
    return Status::OK();
630
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
492
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
492
    _conjuncts.resize(_parent->_conjuncts.size());
614
492
    _projections.resize(_parent->_projections.size());
615
515
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
23
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
23
    }
618
1.59k
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.10k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.10k
    }
621
492
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
492
    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
492
    return Status::OK();
630
492
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
50
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
50
    _conjuncts.resize(_parent->_conjuncts.size());
614
50
    _projections.resize(_parent->_projections.size());
615
50
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
110
    for (size_t i = 0; i < _projections.size(); i++) {
619
60
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
60
    }
621
50
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
50
    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
50
    return Status::OK();
630
50
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
1.29M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
1.29M
    _conjuncts.resize(_parent->_conjuncts.size());
614
1.29M
    _projections.resize(_parent->_projections.size());
615
1.78M
    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.31M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.01M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.01M
    }
621
1.29M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.30M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
12.5k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
75.3k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
62.8k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
62.8k
                    state, _intermediate_projections[i][j]));
627
62.8k
        }
628
12.5k
    }
629
1.29M
    return Status::OK();
630
1.29M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.1k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.1k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.1k
    _projections.resize(_parent->_projections.size());
615
56.1k
    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.3k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
95.3k
    }
621
56.1k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
56.1k
    return Status::OK();
630
56.1k
}
_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
9.69k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
9.69k
    _conjuncts.resize(_parent->_conjuncts.size());
614
9.69k
    _projections.resize(_parent->_projections.size());
615
13.1k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.45k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.45k
    }
618
9.69k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
9.69k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
9.69k
    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
9.69k
    return Status::OK();
630
9.69k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
405
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
405
    _conjuncts.resize(_parent->_conjuncts.size());
614
405
    _projections.resize(_parent->_projections.size());
615
405
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
405
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
405
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
405
    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
405
    return Status::OK();
630
405
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.03k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.03k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.03k
    _projections.resize(_parent->_projections.size());
615
5.03k
    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.20k
    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.03k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.03k
    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.03k
    return Status::OK();
630
5.03k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
813k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
813k
    _conjuncts.resize(_parent->_conjuncts.size());
614
813k
    _projections.resize(_parent->_projections.size());
615
813k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
813k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
813k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
813k
    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
813k
    return Status::OK();
630
813k
}
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.67k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
6.67k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
6.67k
    _terminated = true;
638
6.67k
    return Status::OK();
639
6.67k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
367
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
367
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
367
    _terminated = true;
638
367
    return Status::OK();
639
367
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
142
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
142
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
142
    _terminated = true;
638
142
    return Status::OK();
639
142
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
73
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
73
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
73
    _terminated = true;
638
73
    return Status::OK();
639
73
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1
    _terminated = true;
638
1
    return Status::OK();
639
1
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
303
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
303
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
303
    _terminated = true;
638
303
    return Status::OK();
639
303
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
4.26k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
4.26k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
4.26k
    _terminated = true;
638
4.26k
    return Status::OK();
639
4.26k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
3
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
3
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
3
    _terminated = true;
638
3
    return Status::OK();
639
3
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1
    _terminated = true;
638
1
    return Status::OK();
639
1
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_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
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1.49k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1.49k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1.49k
    _terminated = true;
638
1.49k
    return Status::OK();
639
1.49k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
9
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
9
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
9
    _terminated = true;
638
9
    return Status::OK();
639
9
}
640
641
template <typename SharedStateArg>
642
2.98M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
2.98M
    if (_closed) {
644
295k
        return Status::OK();
645
295k
    }
646
2.68M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.39M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.39M
    }
649
2.68M
    _closed = true;
650
2.68M
    return Status::OK();
651
2.98M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
67.4k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
67.4k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
67.4k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
67.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
67.4k
    }
649
67.4k
    _closed = true;
650
67.4k
    return Status::OK();
651
67.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
519k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
519k
    if (_closed) {
644
260k
        return Status::OK();
645
260k
    }
646
259k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
259k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
259k
    }
649
259k
    _closed = true;
650
259k
    return Status::OK();
651
519k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
24
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
24
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
24
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
24
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
24
    }
649
24
    _closed = true;
650
24
    return Status::OK();
651
24
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
9.65k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
9.65k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
9.65k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
9.65k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
9.65k
    }
649
9.65k
    _closed = true;
650
9.65k
    return Status::OK();
651
9.65k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
23.8k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
23.8k
    if (_closed) {
644
12.0k
        return Status::OK();
645
12.0k
    }
646
11.8k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.8k
    }
649
11.8k
    _closed = true;
650
11.8k
    return Status::OK();
651
23.8k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
154k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
154k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
154k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
154k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
154k
    }
649
154k
    _closed = true;
650
154k
    return Status::OK();
651
154k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
492
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
492
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
492
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
492
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
492
    }
649
492
    _closed = true;
650
492
    return Status::OK();
651
492
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
45
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
45
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
45
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
45
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
45
    }
649
45
    _closed = true;
650
45
    return Status::OK();
651
45
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.31M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.31M
    if (_closed) {
644
18.0k
        return Status::OK();
645
18.0k
    }
646
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
    }
649
1.29M
    _closed = true;
650
1.29M
    return Status::OK();
651
1.31M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
56.1k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.1k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.1k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.1k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.1k
    }
649
56.1k
    _closed = true;
650
56.1k
    return Status::OK();
651
56.1k
}
_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
9.68k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
9.68k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
9.68k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
9.68k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
9.68k
    }
649
9.68k
    _closed = true;
650
9.68k
    return Status::OK();
651
9.68k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
608
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
608
    if (_closed) {
644
303
        return Status::OK();
645
303
    }
646
305
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
305
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
305
    }
649
305
    _closed = true;
650
305
    return Status::OK();
651
608
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.3k
    if (_closed) {
644
5.26k
        return Status::OK();
645
5.26k
    }
646
5.03k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.03k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.03k
    }
649
5.03k
    _closed = true;
650
5.03k
    return Status::OK();
651
10.3k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
815k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
815k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
815k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
815k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
815k
    }
649
815k
    _closed = true;
650
815k
    return Status::OK();
651
815k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
335
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
335
    if (_closed) {
644
180
        return Status::OK();
645
180
    }
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
335
}
652
653
template <typename SharedState>
654
2.16M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.16M
    _operator_profile =
657
2.16M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.16M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.16M
    _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.16M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.16M
    _operator_profile->add_child(_common_profile, true);
666
2.16M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.16M
    _operator_profile->set_metadata(_parent->node_id());
669
2.16M
    _wait_for_finish_dependency_timer =
670
2.16M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.16M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.16M
    if constexpr (!is_fake_shared) {
673
1.44M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.44M
            info.shared_state_map.end()) {
675
353k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
336k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
336k
            }
678
353k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
353k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
353k
                                                  ? 0
681
353k
                                                  : info.task_idx]
682
353k
                                  .get();
683
353k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.08M
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
1.08M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.08M
            _dependency = _shared_state->create_sink_dependency(
690
1.08M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.08M
        }
692
1.44M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.44M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.44M
    }
695
696
2.16M
    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.16M
    _rows_input_counter =
701
2.16M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.16M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.16M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.16M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.16M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.16M
    _memory_used_counter =
707
2.16M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.16M
    _common_profile->add_info_string("IsColocate",
709
2.16M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.16M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.16M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.16M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.16M
    return Status::OK();
714
2.16M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
115k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
115k
    _operator_profile =
657
115k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
115k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
115k
    _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
115k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
115k
    _operator_profile->add_child(_common_profile, true);
666
115k
    _operator_profile->add_child(_custom_profile, true);
667
668
115k
    _operator_profile->set_metadata(_parent->node_id());
669
115k
    _wait_for_finish_dependency_timer =
670
115k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
115k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
115k
    if constexpr (!is_fake_shared) {
673
115k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
115k
            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
16.3k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
16.3k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
16.3k
                                                  ? 0
681
16.3k
                                                  : info.task_idx]
682
16.3k
                                  .get();
683
16.3k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
99.0k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
99.0k
            _shared_state = info.shared_state->template cast<SharedState>();
689
99.0k
            _dependency = _shared_state->create_sink_dependency(
690
99.0k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
99.0k
        }
692
115k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
115k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
115k
    }
695
696
115k
    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
115k
    _rows_input_counter =
701
115k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
115k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
115k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
115k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
115k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
115k
    _memory_used_counter =
707
115k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
115k
    _common_profile->add_info_string("IsColocate",
709
115k
                                     std::to_string(_parent->is_colocated_operator()));
710
115k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
115k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
115k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
115k
    return Status::OK();
714
115k
}
_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
260k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
260k
    _operator_profile =
657
260k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
260k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
260k
    _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
260k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
260k
    _operator_profile->add_child(_common_profile, true);
666
260k
    _operator_profile->add_child(_custom_profile, true);
667
668
260k
    _operator_profile->set_metadata(_parent->node_id());
669
260k
    _wait_for_finish_dependency_timer =
670
260k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
260k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
260k
    if constexpr (!is_fake_shared) {
673
260k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
260k
            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
260k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
260k
            _shared_state = info.shared_state->template cast<SharedState>();
689
260k
            _dependency = _shared_state->create_sink_dependency(
690
260k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
260k
        }
692
260k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
260k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
260k
    }
695
696
260k
    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
260k
    _rows_input_counter =
701
260k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
260k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
260k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
260k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
260k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
260k
    _memory_used_counter =
707
260k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
260k
    _common_profile->add_info_string("IsColocate",
709
260k
                                     std::to_string(_parent->is_colocated_operator()));
710
260k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
260k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
260k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
260k
    return Status::OK();
714
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
31
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
31
    _operator_profile =
657
31
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
31
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
31
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
31
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
31
    _operator_profile->add_child(_common_profile, true);
666
31
    _operator_profile->add_child(_custom_profile, true);
667
668
31
    _operator_profile->set_metadata(_parent->node_id());
669
31
    _wait_for_finish_dependency_timer =
670
31
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
31
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
31
    if constexpr (!is_fake_shared) {
673
31
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
31
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
31
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
31
            _shared_state = info.shared_state->template cast<SharedState>();
689
31
            _dependency = _shared_state->create_sink_dependency(
690
31
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
31
        }
692
31
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
31
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
31
    }
695
696
31
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
31
    _rows_input_counter =
701
31
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
31
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
31
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
31
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
31
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
31
    _memory_used_counter =
707
31
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
31
    _common_profile->add_info_string("IsColocate",
709
31
                                     std::to_string(_parent->is_colocated_operator()));
710
31
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
31
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
31
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
31
    return Status::OK();
714
31
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
9.64k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
9.64k
    _operator_profile =
657
9.64k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
9.64k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
9.64k
    _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.64k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
9.64k
    _operator_profile->add_child(_common_profile, true);
666
9.64k
    _operator_profile->add_child(_custom_profile, true);
667
668
9.64k
    _operator_profile->set_metadata(_parent->node_id());
669
9.64k
    _wait_for_finish_dependency_timer =
670
9.64k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
9.64k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
9.64k
    if constexpr (!is_fake_shared) {
673
9.64k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
9.64k
            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.64k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
9.64k
            _shared_state = info.shared_state->template cast<SharedState>();
689
9.64k
            _dependency = _shared_state->create_sink_dependency(
690
9.64k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
9.64k
        }
692
9.64k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
9.64k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
9.64k
    }
695
696
9.64k
    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.64k
    _rows_input_counter =
701
9.64k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
9.64k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
9.64k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
9.64k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
9.64k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
9.64k
    _memory_used_counter =
707
9.64k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
9.64k
    _common_profile->add_info_string("IsColocate",
709
9.64k
                                     std::to_string(_parent->is_colocated_operator()));
710
9.64k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
9.64k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
9.64k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
9.64k
    return Status::OK();
714
9.64k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
11.8k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
11.8k
    _operator_profile =
657
11.8k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
11.8k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
11.8k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
11.8k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
11.8k
    _operator_profile->add_child(_common_profile, true);
666
11.8k
    _operator_profile->add_child(_custom_profile, true);
667
668
11.8k
    _operator_profile->set_metadata(_parent->node_id());
669
11.8k
    _wait_for_finish_dependency_timer =
670
11.8k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
11.8k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
11.8k
    if constexpr (!is_fake_shared) {
673
11.8k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
11.8k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
11.8k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
11.8k
            _shared_state = info.shared_state->template cast<SharedState>();
689
11.8k
            _dependency = _shared_state->create_sink_dependency(
690
11.8k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
11.8k
        }
692
11.8k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
11.8k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
11.8k
    }
695
696
11.8k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
11.8k
    _rows_input_counter =
701
11.8k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
11.8k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
11.8k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
11.8k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
11.8k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
11.8k
    _memory_used_counter =
707
11.8k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
11.8k
    _common_profile->add_info_string("IsColocate",
709
11.8k
                                     std::to_string(_parent->is_colocated_operator()));
710
11.8k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
11.8k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
11.8k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
11.8k
    return Status::OK();
714
11.8k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
154k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
154k
    _operator_profile =
657
154k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
154k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
154k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
154k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
154k
    _operator_profile->add_child(_common_profile, true);
666
154k
    _operator_profile->add_child(_custom_profile, true);
667
668
154k
    _operator_profile->set_metadata(_parent->node_id());
669
154k
    _wait_for_finish_dependency_timer =
670
154k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
154k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
154k
    if constexpr (!is_fake_shared) {
673
154k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
154k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
154k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
154k
            _shared_state = info.shared_state->template cast<SharedState>();
689
154k
            _dependency = _shared_state->create_sink_dependency(
690
154k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
154k
        }
692
154k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
154k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
154k
    }
695
696
154k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
154k
    _rows_input_counter =
701
154k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
154k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
154k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
154k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
154k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
154k
    _memory_used_counter =
707
154k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
154k
    _common_profile->add_info_string("IsColocate",
709
154k
                                     std::to_string(_parent->is_colocated_operator()));
710
154k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
154k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
154k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
154k
    return Status::OK();
714
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
488
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
488
    _operator_profile =
657
488
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
488
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
488
    _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
488
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
488
    _operator_profile->add_child(_common_profile, true);
666
488
    _operator_profile->add_child(_custom_profile, true);
667
668
488
    _operator_profile->set_metadata(_parent->node_id());
669
488
    _wait_for_finish_dependency_timer =
670
488
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
488
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
488
    if constexpr (!is_fake_shared) {
673
488
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
488
            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
488
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
488
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
488
                                                  ? 0
681
488
                                                  : info.task_idx]
682
488
                                  .get();
683
488
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
488
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
0
            _shared_state = info.shared_state->template cast<SharedState>();
689
0
            _dependency = _shared_state->create_sink_dependency(
690
0
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
0
        }
692
488
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
488
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
488
    }
695
696
488
    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
488
    _rows_input_counter =
701
488
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
488
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
488
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
488
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
488
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
488
    _memory_used_counter =
707
488
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
488
    _common_profile->add_info_string("IsColocate",
709
488
                                     std::to_string(_parent->is_colocated_operator()));
710
488
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
488
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
488
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
488
    return Status::OK();
714
488
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
56
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
56
    _operator_profile =
657
56
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
56
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
56
    _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
56
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
56
    _operator_profile->add_child(_common_profile, true);
666
56
    _operator_profile->add_child(_custom_profile, true);
667
668
56
    _operator_profile->set_metadata(_parent->node_id());
669
56
    _wait_for_finish_dependency_timer =
670
56
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
56
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
56
    if constexpr (!is_fake_shared) {
673
56
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
56
            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
56
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
56
            _shared_state = info.shared_state->template cast<SharedState>();
689
56
            _dependency = _shared_state->create_sink_dependency(
690
56
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
56
        }
692
56
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
56
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
56
    }
695
696
56
    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
56
    _rows_input_counter =
701
56
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
56
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
56
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
56
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
56
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
56
    _memory_used_counter =
707
56
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
56
    _common_profile->add_info_string("IsColocate",
709
56
                                     std::to_string(_parent->is_colocated_operator()));
710
56
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
56
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
56
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
56
    return Status::OK();
714
56
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
719k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
719k
    _operator_profile =
657
719k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
719k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
719k
    _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
719k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
719k
    _operator_profile->add_child(_common_profile, true);
666
719k
    _operator_profile->add_child(_custom_profile, true);
667
668
719k
    _operator_profile->set_metadata(_parent->node_id());
669
719k
    _wait_for_finish_dependency_timer =
670
719k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
719k
    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
719k
    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
719k
    _rows_input_counter =
701
719k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
719k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
719k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
719k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
719k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
719k
    _memory_used_counter =
707
719k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
719k
    _common_profile->add_info_string("IsColocate",
709
719k
                                     std::to_string(_parent->is_colocated_operator()));
710
719k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
719k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
719k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
719k
    return Status::OK();
714
719k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
6.60k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
6.60k
    _operator_profile =
657
6.60k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
6.60k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
6.60k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
6.60k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
6.60k
    _operator_profile->add_child(_common_profile, true);
666
6.60k
    _operator_profile->add_child(_custom_profile, true);
667
668
6.60k
    _operator_profile->set_metadata(_parent->node_id());
669
6.60k
    _wait_for_finish_dependency_timer =
670
6.60k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
6.60k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
6.60k
    if constexpr (!is_fake_shared) {
673
6.60k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
6.60k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
6.60k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
6.60k
            _shared_state = info.shared_state->template cast<SharedState>();
689
6.60k
            _dependency = _shared_state->create_sink_dependency(
690
6.60k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
6.60k
        }
692
6.60k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
6.60k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
6.60k
    }
695
696
6.60k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
6.60k
    _rows_input_counter =
701
6.60k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
6.60k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
6.60k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
6.60k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
6.60k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
6.60k
    _memory_used_counter =
707
6.60k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
6.60k
    _common_profile->add_info_string("IsColocate",
709
6.60k
                                     std::to_string(_parent->is_colocated_operator()));
710
6.60k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
6.60k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
6.60k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
6.60k
    return Status::OK();
714
6.60k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
406
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
406
    _operator_profile =
657
406
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
406
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
406
    _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
406
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
406
    _operator_profile->add_child(_common_profile, true);
666
406
    _operator_profile->add_child(_custom_profile, true);
667
668
406
    _operator_profile->set_metadata(_parent->node_id());
669
406
    _wait_for_finish_dependency_timer =
670
406
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
406
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
406
    if constexpr (!is_fake_shared) {
673
406
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
406
            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
406
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
406
            _shared_state = info.shared_state->template cast<SharedState>();
689
406
            _dependency = _shared_state->create_sink_dependency(
690
406
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
406
        }
692
406
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
406
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
406
    }
695
696
406
    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
406
    _rows_input_counter =
701
406
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
406
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
406
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
406
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
406
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
406
    _memory_used_counter =
707
406
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
406
    _common_profile->add_info_string("IsColocate",
709
406
                                     std::to_string(_parent->is_colocated_operator()));
710
406
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
406
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
406
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
406
    return Status::OK();
714
406
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
3.39k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
3.39k
    _operator_profile =
657
3.39k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
3.39k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
3.39k
    _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.39k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
3.39k
    _operator_profile->add_child(_common_profile, true);
666
3.39k
    _operator_profile->add_child(_custom_profile, true);
667
668
3.39k
    _operator_profile->set_metadata(_parent->node_id());
669
3.39k
    _wait_for_finish_dependency_timer =
670
3.39k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
3.39k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
3.39k
    if constexpr (!is_fake_shared) {
673
3.39k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
3.39k
            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.39k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
3.39k
            _shared_state = info.shared_state->template cast<SharedState>();
689
3.39k
            _dependency = _shared_state->create_sink_dependency(
690
3.39k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
3.39k
        }
692
3.39k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
3.39k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
3.39k
    }
695
696
3.39k
    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.39k
    _rows_input_counter =
701
3.39k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
3.39k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
3.39k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
3.39k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
3.39k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
3.39k
    _memory_used_counter =
707
3.39k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
3.39k
    _common_profile->add_info_string("IsColocate",
709
3.39k
                                     std::to_string(_parent->is_colocated_operator()));
710
3.39k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
3.39k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
3.39k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
3.39k
    return Status::OK();
714
3.39k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.3k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.3k
    _operator_profile =
657
12.3k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.3k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.3k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
12.3k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.3k
    _operator_profile->add_child(_common_profile, true);
666
12.3k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.3k
    _operator_profile->set_metadata(_parent->node_id());
669
12.3k
    _wait_for_finish_dependency_timer =
670
12.3k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.3k
    if constexpr (!is_fake_shared) {
673
12.3k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.3k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
12.3k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.3k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.3k
            _dependency = _shared_state->create_sink_dependency(
690
12.3k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.3k
        }
692
12.3k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.3k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.3k
    }
695
696
12.3k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
12.3k
    _rows_input_counter =
701
12.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.3k
    _memory_used_counter =
707
12.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.3k
    _common_profile->add_info_string("IsColocate",
709
12.3k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.3k
    return Status::OK();
714
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
335k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
335k
    _operator_profile =
657
335k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
335k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
335k
    _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
335k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
335k
    _operator_profile->add_child(_common_profile, true);
666
335k
    _operator_profile->add_child(_custom_profile, true);
667
668
335k
    _operator_profile->set_metadata(_parent->node_id());
669
335k
    _wait_for_finish_dependency_timer =
670
335k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
335k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
335k
    if constexpr (!is_fake_shared) {
673
335k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
336k
            info.shared_state_map.end()) {
675
336k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
336k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
336k
            }
678
336k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
336k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
336k
                                                  ? 0
681
336k
                                                  : info.task_idx]
682
336k
                                  .get();
683
336k
            _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
335k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
335k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
335k
    }
695
696
335k
    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
335k
    _rows_input_counter =
701
335k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
335k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
335k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
335k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
335k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
335k
    _memory_used_counter =
707
335k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
335k
    _common_profile->add_info_string("IsColocate",
709
335k
                                     std::to_string(_parent->is_colocated_operator()));
710
335k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
335k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
335k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
335k
    return Status::OK();
714
335k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
530k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
530k
    _operator_profile =
657
530k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
530k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
530k
    _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
530k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
530k
    _operator_profile->add_child(_common_profile, true);
666
530k
    _operator_profile->add_child(_custom_profile, true);
667
668
530k
    _operator_profile->set_metadata(_parent->node_id());
669
530k
    _wait_for_finish_dependency_timer =
670
530k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
530k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
530k
    if constexpr (!is_fake_shared) {
673
530k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
530k
            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
530k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
530k
            _shared_state = info.shared_state->template cast<SharedState>();
689
530k
            _dependency = _shared_state->create_sink_dependency(
690
530k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
530k
        }
692
530k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
530k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
530k
    }
695
696
530k
    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
530k
    _rows_input_counter =
701
530k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
530k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
530k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
530k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
530k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
530k
    _memory_used_counter =
707
530k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
530k
    _common_profile->add_info_string("IsColocate",
709
530k
                                     std::to_string(_parent->is_colocated_operator()));
710
530k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
530k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
530k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
530k
    return Status::OK();
714
530k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
17
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
17
    _operator_profile =
657
17
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
17
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
17
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
17
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
17
    _operator_profile->add_child(_common_profile, true);
666
17
    _operator_profile->add_child(_custom_profile, true);
667
668
17
    _operator_profile->set_metadata(_parent->node_id());
669
17
    _wait_for_finish_dependency_timer =
670
17
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
17
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
17
    if constexpr (!is_fake_shared) {
673
17
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
17
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
17
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
17
            _shared_state = info.shared_state->template cast<SharedState>();
689
17
            _dependency = _shared_state->create_sink_dependency(
690
17
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
17
        }
692
17
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
17
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
17
    }
695
696
17
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
17
    _rows_input_counter =
701
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
17
    _memory_used_counter =
707
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
17
    _common_profile->add_info_string("IsColocate",
709
17
                                     std::to_string(_parent->is_colocated_operator()));
710
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
17
    return Status::OK();
714
17
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
328
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
328
    _operator_profile =
657
328
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
328
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
328
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
328
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
328
    _operator_profile->add_child(_common_profile, true);
666
328
    _operator_profile->add_child(_custom_profile, true);
667
668
328
    _operator_profile->set_metadata(_parent->node_id());
669
328
    _wait_for_finish_dependency_timer =
670
328
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
328
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
328
    if constexpr (!is_fake_shared) {
673
328
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
328
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
328
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
328
            _shared_state = info.shared_state->template cast<SharedState>();
689
328
            _dependency = _shared_state->create_sink_dependency(
690
328
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
328
        }
692
328
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
328
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
328
    }
695
696
328
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
328
    _rows_input_counter =
701
328
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
328
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
328
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
328
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
328
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
328
    _memory_used_counter =
707
328
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
328
    _common_profile->add_info_string("IsColocate",
709
328
                                     std::to_string(_parent->is_colocated_operator()));
710
328
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
328
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
328
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
328
    return Status::OK();
714
328
}
715
716
template <typename SharedState>
717
2.16M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.16M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.16M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.44M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.44M
    }
724
2.16M
    _closed = true;
725
2.16M
    return Status::OK();
726
2.16M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
115k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
115k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
115k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
115k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
115k
    }
724
115k
    _closed = true;
725
115k
    return Status::OK();
726
115k
}
_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
260k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
260k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
260k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
260k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
260k
    }
724
260k
    _closed = true;
725
260k
    return Status::OK();
726
260k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
22
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
22
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
20
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
20
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
20
    }
724
20
    _closed = true;
725
20
    return Status::OK();
726
22
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
9.64k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
9.64k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
9.64k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
9.64k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
9.64k
    }
724
9.64k
    _closed = true;
725
9.64k
    return Status::OK();
726
9.64k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
11.8k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
11.8k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
11.8k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
11.8k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
11.8k
    }
724
11.8k
    _closed = true;
725
11.8k
    return Status::OK();
726
11.8k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
154k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
154k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
154k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
154k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
154k
    }
724
154k
    _closed = true;
725
154k
    return Status::OK();
726
154k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
486
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
486
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
486
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
486
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
486
    }
724
486
    _closed = true;
725
486
    return Status::OK();
726
486
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
45
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
45
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
45
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
45
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
45
    }
724
45
    _closed = true;
725
45
    return Status::OK();
726
45
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
720k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
720k
    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
720k
    _closed = true;
725
720k
    return Status::OK();
726
720k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
6.62k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
6.62k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
6.62k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
6.62k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
6.62k
    }
724
6.62k
    _closed = true;
725
6.62k
    return Status::OK();
726
6.62k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
302
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
302
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
302
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
302
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
302
    }
724
302
    _closed = true;
725
302
    return Status::OK();
726
302
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
3.40k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
3.40k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
3.40k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
3.40k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
3.40k
    }
724
3.40k
    _closed = true;
725
3.40k
    return Status::OK();
726
3.40k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.3k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.3k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.3k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.3k
    }
724
12.3k
    _closed = true;
725
12.3k
    return Status::OK();
726
12.3k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
337k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
337k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
337k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
337k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
337k
    }
724
337k
    _closed = true;
725
337k
    return Status::OK();
726
337k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
532k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
532k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
532k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
532k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
532k
    }
724
532k
    _closed = true;
725
532k
    return Status::OK();
726
532k
}
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
14
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
14
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
14
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
14
    }
724
14
    _closed = true;
725
14
    return Status::OK();
726
14
}
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
328
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
328
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
328
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
328
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
328
    }
724
328
    _closed = true;
725
328
    return Status::OK();
726
328
}
727
728
template <typename LocalStateType>
729
Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
730
10.0k
                                                          bool* eos) {
731
10.0k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
10.0k
    return pull(state, block, eos);
733
10.0k
}
_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
9.62k
                                                          bool* eos) {
731
9.62k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
9.61k
    return pull(state, block, eos);
733
9.62k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
758k
                                                         bool* eos) {
738
758k
    auto& local_state = get_local_state(state);
739
758k
    if (need_more_input_data(state)) {
740
729k
        local_state._child_block->clear_column_data(
741
729k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
729k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
729k
                state, local_state._child_block.get(), &local_state._child_eos));
744
729k
        *eos = local_state._child_eos;
745
729k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
62.3k
            return Status::OK();
747
62.3k
        }
748
666k
        {
749
666k
            SCOPED_TIMER(local_state.exec_time_counter());
750
666k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
666k
        }
752
666k
    }
753
754
696k
    if (!need_more_input_data(state)) {
755
642k
        SCOPED_TIMER(local_state.exec_time_counter());
756
642k
        bool new_eos = false;
757
642k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
642k
        if (new_eos) {
759
561k
            *eos = true;
760
561k
        } else if (!need_more_input_data(state)) {
761
23.6k
            *eos = false;
762
23.6k
        }
763
642k
    }
764
696k
    return Status::OK();
765
696k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
140k
                                                         bool* eos) {
738
140k
    auto& local_state = get_local_state(state);
739
140k
    if (need_more_input_data(state)) {
740
124k
        local_state._child_block->clear_column_data(
741
124k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
124k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
124k
                state, local_state._child_block.get(), &local_state._child_eos));
744
124k
        *eos = local_state._child_eos;
745
124k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
39.7k
            return Status::OK();
747
39.7k
        }
748
85.2k
        {
749
85.2k
            SCOPED_TIMER(local_state.exec_time_counter());
750
85.2k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
85.2k
        }
752
85.2k
    }
753
754
100k
    if (!need_more_input_data(state)) {
755
100k
        SCOPED_TIMER(local_state.exec_time_counter());
756
100k
        bool new_eos = false;
757
100k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
100k
        if (new_eos) {
759
43.2k
            *eos = true;
760
57.5k
        } else if (!need_more_input_data(state)) {
761
9.36k
            *eos = false;
762
9.36k
        }
763
100k
    }
764
100k
    return Status::OK();
765
100k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.17k
                                                         bool* eos) {
738
4.17k
    auto& local_state = get_local_state(state);
739
4.17k
    if (need_more_input_data(state)) {
740
2.45k
        local_state._child_block->clear_column_data(
741
2.45k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.45k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.45k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.45k
        *eos = local_state._child_eos;
745
2.45k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
537
            return Status::OK();
747
537
        }
748
1.91k
        {
749
1.91k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.91k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.91k
        }
752
1.91k
    }
753
754
3.64k
    if (!need_more_input_data(state)) {
755
3.64k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.64k
        bool new_eos = false;
757
3.64k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.64k
        if (new_eos) {
759
1.32k
            *eos = true;
760
2.32k
        } else if (!need_more_input_data(state)) {
761
1.73k
            *eos = false;
762
1.73k
        }
763
3.64k
    }
764
3.64k
    return Status::OK();
765
3.64k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.95k
                                                         bool* eos) {
738
4.95k
    auto& local_state = get_local_state(state);
739
4.95k
    if (need_more_input_data(state)) {
740
4.95k
        local_state._child_block->clear_column_data(
741
4.95k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.95k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.95k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.95k
        *eos = local_state._child_eos;
745
4.95k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.70k
            return Status::OK();
747
1.70k
        }
748
3.25k
        {
749
3.25k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.25k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.25k
        }
752
3.25k
    }
753
754
3.25k
    if (!need_more_input_data(state)) {
755
3.25k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.25k
        bool new_eos = false;
757
3.25k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.25k
        if (new_eos) {
759
1.73k
            *eos = true;
760
1.73k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.25k
    }
764
3.25k
    return Status::OK();
765
3.25k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
37.1k
                                                         bool* eos) {
738
37.1k
    auto& local_state = get_local_state(state);
739
37.1k
    if (need_more_input_data(state)) {
740
37.1k
        local_state._child_block->clear_column_data(
741
37.1k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
37.1k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
37.1k
                state, local_state._child_block.get(), &local_state._child_eos));
744
37.1k
        *eos = local_state._child_eos;
745
37.1k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
5.64k
            return Status::OK();
747
5.64k
        }
748
31.4k
        {
749
31.4k
            SCOPED_TIMER(local_state.exec_time_counter());
750
31.4k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
31.4k
        }
752
31.4k
    }
753
754
31.5k
    if (!need_more_input_data(state)) {
755
10.5k
        SCOPED_TIMER(local_state.exec_time_counter());
756
10.5k
        bool new_eos = false;
757
10.5k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
10.5k
        if (new_eos) {
759
10.5k
            *eos = true;
760
10.5k
        } else if (!need_more_input_data(state)) {
761
10
            *eos = false;
762
10
        }
763
10.5k
    }
764
31.5k
    return Status::OK();
765
31.5k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
535k
                                                         bool* eos) {
738
535k
    auto& local_state = get_local_state(state);
739
536k
    if (need_more_input_data(state)) {
740
536k
        local_state._child_block->clear_column_data(
741
536k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
536k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
536k
                state, local_state._child_block.get(), &local_state._child_eos));
744
536k
        *eos = local_state._child_eos;
745
536k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
11.7k
            return Status::OK();
747
11.7k
        }
748
524k
        {
749
524k
            SCOPED_TIMER(local_state.exec_time_counter());
750
524k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
524k
        }
752
524k
    }
753
754
523k
    if (!need_more_input_data(state)) {
755
492k
        SCOPED_TIMER(local_state.exec_time_counter());
756
492k
        bool new_eos = false;
757
492k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
492k
        if (new_eos) {
759
491k
            *eos = true;
760
491k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
492k
    }
764
523k
    return Status::OK();
765
523k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
30.1k
                                                         bool* eos) {
738
30.1k
    auto& local_state = get_local_state(state);
739
30.1k
    if (need_more_input_data(state)) {
740
17.9k
        local_state._child_block->clear_column_data(
741
17.9k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
17.9k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
17.9k
                state, local_state._child_block.get(), &local_state._child_eos));
744
17.9k
        *eos = local_state._child_eos;
745
17.9k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.64k
            return Status::OK();
747
2.64k
        }
748
15.2k
        {
749
15.2k
            SCOPED_TIMER(local_state.exec_time_counter());
750
15.2k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
15.2k
        }
752
15.2k
    }
753
754
27.4k
    if (!need_more_input_data(state)) {
755
26.8k
        SCOPED_TIMER(local_state.exec_time_counter());
756
26.8k
        bool new_eos = false;
757
26.8k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
26.8k
        if (new_eos) {
759
9.61k
            *eos = true;
760
17.2k
        } else if (!need_more_input_data(state)) {
761
12.1k
            *eos = false;
762
12.1k
        }
763
26.8k
    }
764
27.4k
    return Status::OK();
765
27.4k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
6.06k
                                                         bool* eos) {
738
6.06k
    auto& local_state = get_local_state(state);
739
6.06k
    if (need_more_input_data(state)) {
740
5.70k
        local_state._child_block->clear_column_data(
741
5.70k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
5.70k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
5.70k
                state, local_state._child_block.get(), &local_state._child_eos));
744
5.70k
        *eos = local_state._child_eos;
745
5.70k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
347
            return Status::OK();
747
347
        }
748
5.35k
        {
749
5.35k
            SCOPED_TIMER(local_state.exec_time_counter());
750
5.35k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
5.35k
        }
752
5.35k
    }
753
754
5.71k
    if (!need_more_input_data(state)) {
755
5.71k
        SCOPED_TIMER(local_state.exec_time_counter());
756
5.71k
        bool new_eos = false;
757
5.71k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
5.71k
        if (new_eos) {
759
3.72k
            *eos = true;
760
3.72k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
5.71k
    }
764
5.71k
    return Status::OK();
765
5.71k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
64.8k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
64.8k
    RETURN_IF_ERROR(Base::init(state, info));
771
64.8k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
64.8k
                                                         "AsyncWriterDependency", true);
773
64.8k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
64.8k
                             _finish_dependency));
775
776
64.8k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
64.8k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
64.8k
    return Status::OK();
779
64.8k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
522
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
522
    RETURN_IF_ERROR(Base::init(state, info));
771
522
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
522
                                                         "AsyncWriterDependency", true);
773
522
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
522
                             _finish_dependency));
775
776
522
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
522
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
522
    return Status::OK();
779
522
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
88
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
88
    RETURN_IF_ERROR(Base::init(state, info));
771
88
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
88
                                                         "AsyncWriterDependency", true);
773
88
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
88
                             _finish_dependency));
775
776
88
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
88
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
88
    return Status::OK();
779
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
45.3k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
45.3k
    RETURN_IF_ERROR(Base::init(state, info));
771
45.3k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
45.3k
                                                         "AsyncWriterDependency", true);
773
45.3k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
45.3k
                             _finish_dependency));
775
776
45.3k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
45.3k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
45.3k
    return Status::OK();
779
45.3k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.26k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.26k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.26k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.26k
                                                         "AsyncWriterDependency", true);
773
9.26k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.26k
                             _finish_dependency));
775
776
9.26k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.26k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.26k
    return Status::OK();
779
9.26k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
5.16k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.16k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.16k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.16k
                                                         "AsyncWriterDependency", true);
773
5.16k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.16k
                             _finish_dependency));
775
776
5.16k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.16k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.16k
    return Status::OK();
779
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
3.40k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.40k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.40k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.40k
                                                         "AsyncWriterDependency", true);
773
3.40k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.40k
                             _finish_dependency));
775
776
3.40k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.40k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.40k
    return Status::OK();
779
3.40k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
32
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
32
    RETURN_IF_ERROR(Base::init(state, info));
771
32
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
32
                                                         "AsyncWriterDependency", true);
773
32
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
32
                             _finish_dependency));
775
776
32
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
32
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
32
    return Status::OK();
779
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
176
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
176
    RETURN_IF_ERROR(Base::init(state, info));
771
176
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
176
                                                         "AsyncWriterDependency", true);
773
176
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
176
                             _finish_dependency));
775
776
176
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
176
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
176
    return Status::OK();
779
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
640
    RETURN_IF_ERROR(Base::init(state, info));
771
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
640
                                                         "AsyncWriterDependency", true);
773
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
640
                             _finish_dependency));
775
776
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
640
    return Status::OK();
779
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
156
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
156
    RETURN_IF_ERROR(Base::init(state, info));
771
156
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
156
                                                         "AsyncWriterDependency", true);
773
156
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
156
                             _finish_dependency));
775
776
156
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
156
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
156
    return Status::OK();
779
156
}
780
781
template <typename Writer, typename Parent>
782
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
783
64.9k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
64.9k
    RETURN_IF_ERROR(Base::open(state));
785
64.9k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
569k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
504k
        RETURN_IF_ERROR(
788
504k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
504k
    }
790
64.9k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
64.9k
    return Status::OK();
792
64.9k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
523
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
523
    RETURN_IF_ERROR(Base::open(state));
785
523
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
2.79k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
2.27k
        RETURN_IF_ERROR(
788
2.27k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
2.27k
    }
790
523
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
523
    return Status::OK();
792
523
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
88
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
88
    RETURN_IF_ERROR(Base::open(state));
785
88
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
412
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
324
        RETURN_IF_ERROR(
788
324
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
324
    }
790
88
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
88
    return Status::OK();
792
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
45.5k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
45.5k
    RETURN_IF_ERROR(Base::open(state));
785
45.5k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
325k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
280k
        RETURN_IF_ERROR(
788
280k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
280k
    }
790
45.5k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
45.5k
    return Status::OK();
792
45.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.23k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.23k
    RETURN_IF_ERROR(Base::open(state));
785
9.23k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
56.5k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
47.2k
        RETURN_IF_ERROR(
788
47.2k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
47.2k
    }
790
9.23k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.23k
    return Status::OK();
792
9.23k
}
_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
135k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
130k
        RETURN_IF_ERROR(
788
130k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
130k
    }
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
176
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
176
    RETURN_IF_ERROR(Base::open(state));
785
176
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
528
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
352
        RETURN_IF_ERROR(
788
352
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
352
    }
790
176
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
176
    return Status::OK();
792
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
640
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
640
    RETURN_IF_ERROR(Base::open(state));
785
640
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
4.39k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
3.75k
        RETURN_IF_ERROR(
788
3.75k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
3.75k
    }
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
88.7k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
88.7k
    return _writer->sink(block, eos);
798
88.7k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.37k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.37k
    return _writer->sink(block, eos);
798
2.37k
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
112
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
112
    return _writer->sink(block, eos);
798
112
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
61.2k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
61.2k
    return _writer->sink(block, eos);
798
61.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
10.7k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
10.7k
    return _writer->sink(block, eos);
798
10.7k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
7.53k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.53k
    return _writer->sink(block, eos);
798
7.53k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
5.37k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.37k
    return _writer->sink(block, eos);
798
5.37k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
40
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
40
    return _writer->sink(block, eos);
798
40
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
198
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
198
    return _writer->sink(block, eos);
798
198
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
800
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
800
    return _writer->sink(block, eos);
798
800
}
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
64.9k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
64.9k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
64.9k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
64.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
65.0k
    if (_writer) {
810
65.0k
        Status st = _writer->get_writer_status();
811
65.0k
        if (exec_status.ok()) {
812
64.8k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
64.8k
                                                       : Status::Cancelled("force close"));
814
64.8k
        } else {
815
119
            _writer->force_close(exec_status);
816
119
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
65.0k
        RETURN_IF_ERROR(st);
821
65.0k
    }
822
64.9k
    return Base::close(state, exec_status);
823
64.9k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
511
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
511
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
511
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
511
    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
511
    if (_writer) {
810
511
        Status st = _writer->get_writer_status();
811
511
        if (exec_status.ok()) {
812
511
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
511
                                                       : Status::Cancelled("force close"));
814
511
        } 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
511
        RETURN_IF_ERROR(st);
821
511
    }
822
511
    return Base::close(state, exec_status);
823
511
}
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
88
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
88
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
88
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
88
    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
88
    if (_writer) {
810
88
        Status st = _writer->get_writer_status();
811
88
        if (exec_status.ok()) {
812
88
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
88
                                                       : Status::Cancelled("force close"));
814
88
        } 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
88
        RETURN_IF_ERROR(st);
821
88
    }
822
80
    return Base::close(state, exec_status);
823
88
}
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
45.5k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
45.5k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
45.5k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
45.5k
    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
45.5k
    if (_writer) {
810
45.5k
        Status st = _writer->get_writer_status();
811
45.5k
        if (exec_status.ok()) {
812
45.5k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
45.5k
                                                       : Status::Cancelled("force close"));
814
45.5k
        } else {
815
49
            _writer->force_close(exec_status);
816
49
        }
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
45.5k
        RETURN_IF_ERROR(st);
821
45.5k
    }
822
45.5k
    return Base::close(state, exec_status);
823
45.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.25k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.25k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.25k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.25k
    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.26k
    if (_writer) {
810
9.26k
        Status st = _writer->get_writer_status();
811
9.26k
        if (exec_status.ok()) {
812
9.19k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.19k
                                                       : Status::Cancelled("force close"));
814
9.19k
        } else {
815
68
            _writer->force_close(exec_status);
816
68
        }
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.26k
        RETURN_IF_ERROR(st);
821
9.26k
    }
822
9.25k
    return Base::close(state, exec_status);
823
9.25k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.16k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.16k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.16k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.16k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
5.16k
    if (_writer) {
810
5.16k
        Status st = _writer->get_writer_status();
811
5.16k
        if (exec_status.ok()) {
812
5.16k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
5.16k
                                                       : Status::Cancelled("force close"));
814
5.16k
        } 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
5.16k
        RETURN_IF_ERROR(st);
821
5.16k
    }
822
5.16k
    return Base::close(state, exec_status);
823
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
3.40k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.40k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.40k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.40k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
3.40k
    if (_writer) {
810
3.40k
        Status st = _writer->get_writer_status();
811
3.40k
        if (exec_status.ok()) {
812
3.40k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.40k
                                                       : Status::Cancelled("force close"));
814
3.40k
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
3.40k
        RETURN_IF_ERROR(st);
821
3.40k
    }
822
3.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
176
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
176
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
176
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
176
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
176
    if (_writer) {
810
176
        Status st = _writer->get_writer_status();
811
176
        if (exec_status.ok()) {
812
176
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
176
                                                       : Status::Cancelled("force close"));
814
176
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
176
        RETURN_IF_ERROR(st);
821
176
    }
822
176
    return Base::close(state, exec_status);
823
176
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
640
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
640
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
640
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
640
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
640
    if (_writer) {
810
640
        Status st = _writer->get_writer_status();
811
640
        if (exec_status.ok()) {
812
640
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
640
                                                       : Status::Cancelled("force close"));
814
640
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
640
        RETURN_IF_ERROR(st);
821
640
    }
822
640
    return Base::close(state, exec_status);
823
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
156
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
156
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
156
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
156
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
156
    if (_writer) {
810
156
        Status st = _writer->get_writer_status();
811
156
        if (exec_status.ok()) {
812
156
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
156
                                                       : Status::Cancelled("force close"));
814
156
        } else {
815
0
            _writer->force_close(exec_status);
816
0
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
156
        RETURN_IF_ERROR(st);
821
156
    }
822
156
    return Base::close(state, exec_status);
823
156
}
824
825
#define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>;
826
DECLARE_OPERATOR(HashJoinBuildSinkLocalState)
827
DECLARE_OPERATOR(ResultSinkLocalState)
828
DECLARE_OPERATOR(JdbcTableSinkLocalState)
829
DECLARE_OPERATOR(MemoryScratchSinkLocalState)
830
DECLARE_OPERATOR(ResultFileSinkLocalState)
831
DECLARE_OPERATOR(OlapTableSinkLocalState)
832
DECLARE_OPERATOR(OlapTableSinkV2LocalState)
833
DECLARE_OPERATOR(HiveTableSinkLocalState)
834
DECLARE_OPERATOR(TVFTableSinkLocalState)
835
DECLARE_OPERATOR(IcebergTableSinkLocalState)
836
DECLARE_OPERATOR(SpillIcebergTableSinkLocalState)
837
DECLARE_OPERATOR(IcebergDeleteSinkLocalState)
838
DECLARE_OPERATOR(IcebergMergeSinkLocalState)
839
DECLARE_OPERATOR(MCTableSinkLocalState)
840
DECLARE_OPERATOR(AnalyticSinkLocalState)
841
DECLARE_OPERATOR(BlackholeSinkLocalState)
842
DECLARE_OPERATOR(SortSinkLocalState)
843
DECLARE_OPERATOR(SpillSortSinkLocalState)
844
DECLARE_OPERATOR(LocalExchangeSinkLocalState)
845
DECLARE_OPERATOR(AggSinkLocalState)
846
DECLARE_OPERATOR(BucketedAggSinkLocalState)
847
DECLARE_OPERATOR(PartitionedAggSinkLocalState)
848
DECLARE_OPERATOR(ExchangeSinkLocalState)
849
DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState)
850
DECLARE_OPERATOR(UnionSinkLocalState)
851
DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState)
852
DECLARE_OPERATOR(PartitionSortSinkLocalState)
853
DECLARE_OPERATOR(SetProbeSinkLocalState<true>)
854
DECLARE_OPERATOR(SetProbeSinkLocalState<false>)
855
DECLARE_OPERATOR(SetSinkLocalState<true>)
856
DECLARE_OPERATOR(SetSinkLocalState<false>)
857
DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState)
858
DECLARE_OPERATOR(GroupCommitBlockSinkLocalState)
859
DECLARE_OPERATOR(CacheSinkLocalState)
860
DECLARE_OPERATOR(DictSinkLocalState)
861
DECLARE_OPERATOR(RecCTESinkLocalState)
862
DECLARE_OPERATOR(RecCTEAnchorSinkLocalState)
863
864
#undef DECLARE_OPERATOR
865
866
#define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>;
867
DECLARE_OPERATOR(HashJoinProbeLocalState)
868
DECLARE_OPERATOR(OlapScanLocalState)
869
DECLARE_OPERATOR(GroupCommitLocalState)
870
DECLARE_OPERATOR(JDBCScanLocalState)
871
DECLARE_OPERATOR(FileScanLocalState)
872
DECLARE_OPERATOR(AnalyticLocalState)
873
DECLARE_OPERATOR(SortLocalState)
874
DECLARE_OPERATOR(SpillSortLocalState)
875
DECLARE_OPERATOR(LocalMergeSortLocalState)
876
DECLARE_OPERATOR(AggLocalState)
877
DECLARE_OPERATOR(BucketedAggLocalState)
878
DECLARE_OPERATOR(PartitionedAggLocalState)
879
DECLARE_OPERATOR(TableFunctionLocalState)
880
DECLARE_OPERATOR(ExchangeLocalState)
881
DECLARE_OPERATOR(RepeatLocalState)
882
DECLARE_OPERATOR(NestedLoopJoinProbeLocalState)
883
DECLARE_OPERATOR(AssertNumRowsLocalState)
884
DECLARE_OPERATOR(EmptySetLocalState)
885
DECLARE_OPERATOR(UnionSourceLocalState)
886
DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState)
887
DECLARE_OPERATOR(PartitionSortSourceLocalState)
888
DECLARE_OPERATOR(SetSourceLocalState<true>)
889
DECLARE_OPERATOR(SetSourceLocalState<false>)
890
DECLARE_OPERATOR(DataGenLocalState)
891
DECLARE_OPERATOR(SchemaScanLocalState)
892
DECLARE_OPERATOR(MetaScanLocalState)
893
DECLARE_OPERATOR(LocalExchangeSourceLocalState)
894
DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState)
895
DECLARE_OPERATOR(CacheSourceLocalState)
896
DECLARE_OPERATOR(RecCTESourceLocalState)
897
DECLARE_OPERATOR(RecCTEScanLocalState)
898
899
#ifdef BE_TEST
900
DECLARE_OPERATOR(MockLocalState)
901
DECLARE_OPERATOR(MockScanLocalState)
902
#endif
903
#undef DECLARE_OPERATOR
904
905
template class StreamingOperatorX<AssertNumRowsLocalState>;
906
template class StreamingOperatorX<SelectLocalState>;
907
908
template class StatefulOperatorX<HashJoinProbeLocalState>;
909
template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>;
910
template class StatefulOperatorX<RepeatLocalState>;
911
template class StatefulOperatorX<MaterializationLocalState>;
912
template class StatefulOperatorX<StreamingAggLocalState>;
913
template class StatefulOperatorX<DistinctStreamingAggLocalState>;
914
template class StatefulOperatorX<NestedLoopJoinProbeLocalState>;
915
template class StatefulOperatorX<TableFunctionLocalState>;
916
917
template class PipelineXSinkLocalState<HashJoinSharedState>;
918
template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>;
919
template class PipelineXSinkLocalState<SortSharedState>;
920
template class PipelineXSinkLocalState<SpillSortSharedState>;
921
template class PipelineXSinkLocalState<NestedLoopJoinSharedState>;
922
template class PipelineXSinkLocalState<AnalyticSharedState>;
923
template class PipelineXSinkLocalState<AggSharedState>;
924
template class PipelineXSinkLocalState<BucketedAggSharedState>;
925
template class PipelineXSinkLocalState<PartitionedAggSharedState>;
926
template class PipelineXSinkLocalState<FakeSharedState>;
927
template class PipelineXSinkLocalState<UnionSharedState>;
928
template class PipelineXSinkLocalState<PartitionSortNodeSharedState>;
929
template class PipelineXSinkLocalState<MultiCastSharedState>;
930
template class PipelineXSinkLocalState<SetSharedState>;
931
template class PipelineXSinkLocalState<LocalExchangeSharedState>;
932
template class PipelineXSinkLocalState<BasicSharedState>;
933
template class PipelineXSinkLocalState<DataQueueSharedState>;
934
template class PipelineXSinkLocalState<RecCTESharedState>;
935
936
template class PipelineXLocalState<HashJoinSharedState>;
937
template class PipelineXLocalState<PartitionedHashJoinSharedState>;
938
template class PipelineXLocalState<SortSharedState>;
939
template class PipelineXLocalState<SpillSortSharedState>;
940
template class PipelineXLocalState<NestedLoopJoinSharedState>;
941
template class PipelineXLocalState<AnalyticSharedState>;
942
template class PipelineXLocalState<AggSharedState>;
943
template class PipelineXLocalState<BucketedAggSharedState>;
944
template class PipelineXLocalState<PartitionedAggSharedState>;
945
template class PipelineXLocalState<FakeSharedState>;
946
template class PipelineXLocalState<UnionSharedState>;
947
template class PipelineXLocalState<DataQueueSharedState>;
948
template class PipelineXLocalState<MultiCastSharedState>;
949
template class PipelineXLocalState<PartitionSortNodeSharedState>;
950
template class PipelineXLocalState<SetSharedState>;
951
template class PipelineXLocalState<LocalExchangeSharedState>;
952
template class PipelineXLocalState<BasicSharedState>;
953
template class PipelineXLocalState<RecCTESharedState>;
954
955
template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>;
956
template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>;
957
template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>;
958
template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>;
959
template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>;
960
template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>;
961
template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>;
962
template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>;
963
template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>;
964
template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>;
965
template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>;
966
967
#ifdef BE_TEST
968
template class OperatorX<DummyOperatorLocalState>;
969
template class DataSinkOperatorX<DummySinkLocalState>;
970
#endif
971
972
} // namespace doris