Coverage Report

Created: 2026-06-25 16:06

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.35M
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
2.35M
    if (_parent->nereids_id() == -1) {
122
1.25M
        return fmt::format("(id={})", _parent->node_id());
123
1.25M
    } else {
124
1.10M
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
1.10M
    }
126
2.35M
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
77.1k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
77.1k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
77.1k
    } else {
124
77.1k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
77.1k
    }
126
77.1k
}
_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
265k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
265k
    if (_parent->nereids_id() == -1) {
122
12
        return fmt::format("(id={})", _parent->node_id());
123
265k
    } else {
124
265k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
265k
    }
126
265k
}
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
27
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
27
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
27
    } else {
124
27
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
27
    }
126
27
}
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.9k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.9k
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
11.9k
    } else {
124
11.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
11.9k
    }
126
11.9k
}
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
8.07k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
8.07k
    if (_parent->nereids_id() == -1) {
122
11
        return fmt::format("(id={})", _parent->node_id());
123
8.06k
    } else {
124
8.06k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
8.06k
    }
126
8.07k
}
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
156k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
156k
    if (_parent->nereids_id() == -1) {
122
29
        return fmt::format("(id={})", _parent->node_id());
123
156k
    } else {
124
156k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
156k
    }
126
156k
}
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
664
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
664
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
664
    } else {
124
664
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
664
    }
126
664
}
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
130
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
130
    if (_parent->nereids_id() == -1) {
122
0
        return fmt::format("(id={})", _parent->node_id());
123
130
    } else {
124
130
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
130
    }
126
130
}
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
944k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
944k
    if (_parent->nereids_id() == -1) {
122
423k
        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
944k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
56.3k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
56.3k
    if (_parent->nereids_id() == -1) {
122
2
        return fmt::format("(id={})", _parent->node_id());
123
56.3k
    } else {
124
56.3k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
56.3k
    }
126
56.3k
}
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
17
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
17
    if (_parent->nereids_id() == -1) {
122
17
        return fmt::format("(id={})", _parent->node_id());
123
17
    } else {
124
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
0
    }
126
17
}
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
11.3k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
11.3k
    if (_parent->nereids_id() == -1) {
122
11.3k
        return fmt::format("(id={})", _parent->node_id());
123
18.4E
    } else {
124
18.4E
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
18.4E
    }
126
11.3k
}
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
466
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
466
    if (_parent->nereids_id() == -1) {
122
102
        return fmt::format("(id={})", _parent->node_id());
123
364
    } else {
124
364
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
364
    }
126
466
}
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
4.64k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
4.64k
    if (_parent->nereids_id() == -1) {
122
13
        return fmt::format("(id={})", _parent->node_id());
123
4.63k
    } else {
124
4.63k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
4.63k
    }
126
4.64k
}
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
120
816k
std::string PipelineXLocalState<SharedStateArg>::name_suffix() const {
121
816k
    if (_parent->nereids_id() == -1) {
122
816k
        return fmt::format("(id={})", _parent->node_id());
123
816k
    } else {
124
336
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
125
336
    }
126
816k
}
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.42M
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
1.42M
    if (_parent->nereids_id() == -1) {
131
843k
        return fmt::format("(id={})", _parent->node_id());
132
843k
    } else {
133
577k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
577k
    }
135
1.42M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
125k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
125k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
125k
    } else {
133
125k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
125k
    }
135
125k
}
_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
267k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
267k
    if (_parent->nereids_id() == -1) {
131
9
        return fmt::format("(id={})", _parent->node_id());
132
267k
    } else {
133
267k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
267k
    }
135
267k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
34
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
34
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
34
    } else {
133
34
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
34
    }
135
34
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
11.9k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
11.9k
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
11.9k
    } else {
133
11.9k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
11.9k
    }
135
11.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
8.12k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
8.12k
    if (_parent->nereids_id() == -1) {
131
11
        return fmt::format("(id={})", _parent->node_id());
132
8.11k
    } else {
133
8.11k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
8.11k
    }
135
8.12k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
156k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
156k
    if (_parent->nereids_id() == -1) {
131
29
        return fmt::format("(id={})", _parent->node_id());
132
156k
    } else {
133
156k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
156k
    }
135
156k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
659
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
659
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
659
    } else {
133
659
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
659
    }
135
659
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
140
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
140
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
140
    } else {
133
140
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
140
    }
135
140
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
86
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
86
    if (_parent->nereids_id() == -1) {
131
86
        return fmt::format("(id={})", _parent->node_id());
132
86
    } else {
133
0
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
0
    }
135
86
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
7.59k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
7.59k
    if (_parent->nereids_id() == -1) {
131
3
        return fmt::format("(id={})", _parent->node_id());
132
7.59k
    } else {
133
7.59k
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
7.59k
    }
135
7.59k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
466
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
466
    if (_parent->nereids_id() == -1) {
131
102
        return fmt::format("(id={})", _parent->node_id());
132
364
    } else {
133
364
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
364
    }
135
466
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
12.4k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
12.4k
    if (_parent->nereids_id() == -1) {
131
12.4k
        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.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
298k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
298k
    if (_parent->nereids_id() == -1) {
131
298k
        return fmt::format("(id={})", _parent->node_id());
132
298k
    } else {
133
175
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
175
    }
135
298k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev
Line
Count
Source
129
531k
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
532k
    if (_parent->nereids_id() == -1) {
131
532k
        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
531k
}
_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
326
std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() {
130
326
    if (_parent->nereids_id() == -1) {
131
0
        return fmt::format("(id={})", _parent->node_id());
132
326
    } else {
133
326
        return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id());
134
326
    }
135
326
}
136
137
template <typename SharedStateArg>
138
30.4k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
30.4k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
30.4k
    _terminated = true;
143
30.4k
    return Status::OK();
144
30.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
881
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
881
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
881
    _terminated = true;
143
881
    return Status::OK();
144
881
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
13
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
13
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
13
    _terminated = true;
143
13
    return Status::OK();
144
13
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
2.78k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
2.78k
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
2.78k
    _terminated = true;
143
2.78k
    return Status::OK();
144
2.78k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
6
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
6
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
6
    _terminated = true;
143
6
    return Status::OK();
144
6
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
1.74k
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
1.74k
    if (_terminated) {
140
1
        return Status::OK();
141
1
    }
142
1.74k
    _terminated = true;
143
1.74k
    return Status::OK();
144
1.74k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
5
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
5
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
5
    _terminated = true;
143
5
    return Status::OK();
144
5
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
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
706
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
706
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
706
    _terminated = true;
143
706
    return Status::OK();
144
706
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
151
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
151
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
151
    _terminated = true;
143
151
    return Status::OK();
144
151
}
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
138
154
Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) {
139
154
    if (_terminated) {
140
0
        return Status::OK();
141
0
    }
142
154
    _terminated = true;
143
154
    return Status::OK();
144
154
}
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
32.6k
bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const {
153
32.6k
    if (!_child) {
154
27.5k
        return false;
155
27.5k
    }
156
5.12k
    if (_child->is_serial_operator()) {
157
196
        return true;
158
196
    }
159
4.92k
    const auto child_distribution = _child->required_data_distribution(state);
160
4.92k
    return child_distribution.need_local_exchange() &&
161
4.92k
           !is_shuffled_exchange(child_distribution.distribution_type);
162
5.12k
}
163
164
82.5k
const RowDescriptor& OperatorBase::row_desc() const {
165
82.5k
    return _child->row_desc();
166
82.5k
}
167
168
template <typename SharedStateArg>
169
17.0k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
17.0k
    fmt::memory_buffer debug_string_buffer;
171
17.0k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
17.0k
    return fmt::to_string(debug_string_buffer);
173
17.0k
}
_ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
10
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
10
    fmt::memory_buffer debug_string_buffer;
171
10
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
10
    return fmt::to_string(debug_string_buffer);
173
10
}
_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
84
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
84
    fmt::memory_buffer debug_string_buffer;
171
84
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
84
    return fmt::to_string(debug_string_buffer);
173
84
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
4
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
4
    fmt::memory_buffer debug_string_buffer;
171
4
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
4
    return fmt::to_string(debug_string_buffer);
173
4
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
84
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
84
    fmt::memory_buffer debug_string_buffer;
171
84
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
84
    return fmt::to_string(debug_string_buffer);
173
84
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
169
16.6k
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
16.6k
    fmt::memory_buffer debug_string_buffer;
171
16.6k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
16.6k
    return fmt::to_string(debug_string_buffer);
173
16.6k
}
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_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
}
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
146
std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const {
170
146
    fmt::memory_buffer debug_string_buffer;
171
146
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
172
146
    return fmt::to_string(debug_string_buffer);
173
146
}
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
174
175
template <typename SharedStateArg>
176
16.9k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16.9k
    fmt::memory_buffer debug_string_buffer;
178
16.9k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16.9k
    return fmt::to_string(debug_string_buffer);
180
16.9k
}
_ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
1
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
1
    fmt::memory_buffer debug_string_buffer;
178
1
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
1
    return fmt::to_string(debug_string_buffer);
180
1
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
84
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
84
    fmt::memory_buffer debug_string_buffer;
178
84
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
84
    return fmt::to_string(debug_string_buffer);
180
84
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
84
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
84
    fmt::memory_buffer debug_string_buffer;
178
84
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
84
    return fmt::to_string(debug_string_buffer);
180
84
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
159
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
159
    fmt::memory_buffer debug_string_buffer;
178
159
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
159
    return fmt::to_string(debug_string_buffer);
180
159
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei
_ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
118
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
118
    fmt::memory_buffer debug_string_buffer;
178
118
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
118
    return fmt::to_string(debug_string_buffer);
180
118
}
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei
Line
Count
Source
176
16.4k
std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const {
177
16.4k
    fmt::memory_buffer debug_string_buffer;
178
16.4k
    fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level));
179
16.4k
    return fmt::to_string(debug_string_buffer);
180
16.4k
}
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei
181
182
17.1k
std::string OperatorXBase::debug_string(int indentation_level) const {
183
17.1k
    fmt::memory_buffer debug_string_buffer;
184
17.1k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}",
185
17.1k
                   std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks,
186
17.1k
                   _is_serial_operator);
187
17.1k
    return fmt::to_string(debug_string_buffer);
188
17.1k
}
189
190
17.0k
std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
191
17.0k
    return state->get_local_state(operator_id())->debug_string(indentation_level);
192
17.0k
}
193
194
822k
Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
195
822k
    std::string node_name = print_plan_node_type(tnode.node_type);
196
822k
    _nereids_id = tnode.nereids_id;
197
822k
    if (!tnode.intermediate_output_tuple_id_list.empty()) {
198
4.02k
        if (!tnode.__isset.output_tuple_id) {
199
0
            return Status::InternalError("no final output tuple id");
200
0
        }
201
4.02k
        if (tnode.intermediate_output_tuple_id_list.size() !=
202
4.02k
            tnode.intermediate_projections_list.size()) {
203
0
            return Status::InternalError(
204
0
                    "intermediate_output_tuple_id_list size:{} not match "
205
0
                    "intermediate_projections_list size:{}",
206
0
                    tnode.intermediate_output_tuple_id_list.size(),
207
0
                    tnode.intermediate_projections_list.size());
208
0
        }
209
4.02k
    }
210
822k
    auto substr = node_name.substr(0, node_name.find("_NODE"));
211
822k
    _op_name = substr + "_OPERATOR";
212
213
822k
    if (tnode.__isset.vconjunct) {
214
0
        return Status::InternalError("vconjunct is not supported yet");
215
822k
    } else if (tnode.__isset.conjuncts) {
216
449k
        for (const auto& conjunct : tnode.conjuncts) {
217
449k
            VExprContextSPtr context;
218
449k
            RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context));
219
449k
            _conjuncts.emplace_back(context);
220
449k
        }
221
146k
    }
222
223
    // create the projections expr
224
822k
    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
822k
    if (!tnode.intermediate_projections_list.empty()) {
229
4.02k
        DCHECK(tnode.__isset.projections) << "no final projections";
230
4.02k
        _intermediate_projections.reserve(tnode.intermediate_projections_list.size());
231
8.17k
        for (const auto& tnode_projections : tnode.intermediate_projections_list) {
232
8.17k
            VExprContextSPtrs projections;
233
8.17k
            RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections));
234
8.17k
            _intermediate_projections.push_back(projections);
235
8.17k
        }
236
4.02k
    }
237
822k
    return Status::OK();
238
822k
}
239
240
855k
Status OperatorXBase::prepare(RuntimeState* state) {
241
855k
    for (auto& conjunct : _conjuncts) {
242
449k
        RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc()));
243
449k
    }
244
855k
    if (state->enable_adjust_conjunct_order_by_cost()) {
245
803k
        std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) {
246
595k
            return a->execute_cost() < b->execute_cost();
247
595k
        });
248
803k
    };
249
250
863k
    for (int i = 0; i < _intermediate_projections.size(); i++) {
251
8.17k
        RETURN_IF_ERROR(
252
8.17k
                VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i)));
253
8.17k
    }
254
855k
    RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc()));
255
256
855k
    if (has_output_row_desc()) {
257
320k
        RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor));
258
320k
    }
259
260
855k
    for (auto& conjunct : _conjuncts) {
261
449k
        RETURN_IF_ERROR(conjunct->open(state));
262
449k
    }
263
855k
    RETURN_IF_ERROR(VExpr::open(_projections, state));
264
855k
    for (auto& projections : _intermediate_projections) {
265
8.17k
        RETURN_IF_ERROR(VExpr::open(projections, state));
266
8.17k
    }
267
855k
    if (_child && !is_source()) {
268
130k
        RETURN_IF_ERROR(_child->prepare(state));
269
130k
    }
270
271
855k
    if (VExpr::contains_blockable_function(_conjuncts) ||
272
855k
        VExpr::contains_blockable_function(_projections)) {
273
0
        _blockable = true;
274
0
    }
275
276
855k
    return Status::OK();
277
855k
}
278
279
7.93k
Status OperatorXBase::terminate(RuntimeState* state) {
280
7.93k
    if (_child && !is_source()) {
281
1.45k
        RETURN_IF_ERROR(_child->terminate(state));
282
1.45k
    }
283
7.93k
    auto result = state->get_local_state_result(operator_id());
284
7.93k
    if (!result) {
285
0
        return result.error();
286
0
    }
287
7.93k
    return result.value()->terminate(state);
288
7.93k
}
289
290
6.58M
Status OperatorXBase::close(RuntimeState* state) {
291
6.58M
    if (_child && !is_source()) {
292
1.21M
        RETURN_IF_ERROR(_child->close(state));
293
1.21M
    }
294
6.58M
    auto result = state->get_local_state_result(operator_id());
295
6.58M
    if (!result) {
296
0
        return result.error();
297
0
    }
298
6.58M
    return result.value()->close(state);
299
6.58M
}
300
301
305k
void PipelineXLocalStateBase::clear_origin_block() {
302
305k
    _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots());
303
305k
}
304
305
652k
Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) {
306
652k
    RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns()));
307
308
652k
    _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts);
309
652k
    return Status::OK();
310
652k
}
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
305k
                                     Block* output_block) const {
319
305k
    auto* local_state = state->get_local_state(operator_id());
320
305k
    SCOPED_TIMER(local_state->exec_time_counter());
321
305k
    SCOPED_TIMER(local_state->_projection_timer);
322
305k
    const size_t rows = origin_block->rows();
323
305k
    if (rows == 0) {
324
162k
        return Status::OK();
325
162k
    }
326
143k
    Block input_block = *origin_block;
327
328
143k
    size_t bytes_usage = 0;
329
143k
    ColumnsWithTypeAndName new_columns;
330
143k
    for (const auto& projections : local_state->_intermediate_projections) {
331
1.51k
        if (projections.empty()) {
332
0
            return Status::InternalError("meet empty intermediate projection, node id: {}",
333
0
                                         node_id());
334
0
        }
335
1.51k
        new_columns.resize(projections.size());
336
10.4k
        for (int i = 0; i < projections.size(); i++) {
337
8.90k
            RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i]));
338
8.90k
            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
8.90k
        }
346
1.51k
        Block tmp_block {new_columns};
347
1.51k
        bytes_usage += tmp_block.allocated_bytes();
348
1.51k
        input_block.swap(tmp_block);
349
1.51k
    }
350
351
143k
    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
680k
    auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) {
358
680k
        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
680k
        } else {
368
680k
            if (_keep_origin || !from->is_exclusive()) {
369
680k
                to->insert_range_from(*from, 0, rows);
370
680k
                bytes_usage += from->allocated_bytes();
371
18.4E
            } else {
372
18.4E
                to = from->assert_mutable();
373
18.4E
            }
374
680k
        }
375
680k
    };
376
377
143k
    auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block(
378
143k
            output_block, *_output_row_descriptor);
379
143k
    auto& mutable_block = scoped_mutable_block.mutable_block();
380
143k
    auto& mutable_columns = mutable_block.mutable_columns();
381
143k
    if (rows != 0) {
382
143k
        DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string();
383
824k
        for (int i = 0; i < mutable_columns.size(); ++i) {
384
681k
            ColumnPtr column_ptr;
385
681k
            RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr));
386
680k
            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
680k
            column_ptr = column_ptr->convert_to_full_column_if_const();
393
680k
            bytes_usage += column_ptr->allocated_bytes();
394
680k
            insert_column_datas(mutable_columns[i], column_ptr, rows);
395
680k
        }
396
143k
        DCHECK(mutable_block.rows() == rows);
397
143k
    }
398
143k
    local_state->_estimate_memory_usage += bytes_usage;
399
400
143k
    return Status::OK();
401
143k
}
402
403
4.77M
Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) {
404
4.77M
    DBUG_EXECUTE_IF("Pipeline::return_empty_block", {
405
4.77M
        if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" ||
406
4.77M
            this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" ||
407
4.77M
            this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" ||
408
4.77M
            this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") {
409
4.77M
            if (_debug_point_count++ % 2 == 0) {
410
4.77M
                return Status::OK();
411
4.77M
            }
412
4.77M
        }
413
4.77M
    });
414
415
4.77M
    Status status;
416
4.77M
    auto* local_state = state->get_local_state(operator_id());
417
4.77M
    Defer defer([&]() {
418
4.77M
        if (status.ok()) {
419
4.77M
            local_state->update_output_block_counters(*block);
420
4.77M
        }
421
4.77M
    });
422
4.77M
    if (_output_row_descriptor) {
423
305k
        local_state->clear_origin_block();
424
305k
        status = get_block(state, &local_state->_origin_block, eos);
425
305k
        if (UNLIKELY(!status.ok())) {
426
19
            return status;
427
19
        }
428
305k
        status = do_projections(state, &local_state->_origin_block, block);
429
305k
        return status;
430
305k
    }
431
4.46M
    status = get_block(state, block, eos);
432
4.46M
    RETURN_IF_ERROR(block->check_type_and_column());
433
4.46M
    return status;
434
4.46M
}
435
436
3.20M
void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) {
437
3.20M
    if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) {
438
6.92k
        block->set_num_rows(_parent->_limit - _num_rows_returned);
439
6.92k
        *eos = true;
440
6.92k
    }
441
442
3.20M
    DBUG_EXECUTE_IF("Pipeline::reached_limit_early", {
443
3.20M
        auto op_name = to_lower(_parent->_op_name);
444
3.20M
        auto arg_op_name = dp->param<std::string>("op_name");
445
3.20M
        arg_op_name = to_lower(arg_op_name);
446
447
3.20M
        if (op_name == arg_op_name) {
448
3.20M
            *eos = true;
449
3.20M
        }
450
3.20M
    });
451
452
3.20M
    if (auto rows = block->rows()) {
453
902k
        _num_rows_returned += rows;
454
902k
        _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows);
455
902k
    }
456
3.20M
}
457
458
30.4k
Status DataSinkOperatorXBase::terminate(RuntimeState* state) {
459
30.4k
    auto result = state->get_sink_local_state_result();
460
30.4k
    if (!result) {
461
0
        return result.error();
462
0
    }
463
30.4k
    return result.value()->terminate(state);
464
30.4k
}
465
466
17.0k
std::string DataSinkOperatorXBase::debug_string(int indentation_level) const {
467
17.0k
    fmt::memory_buffer debug_string_buffer;
468
469
17.0k
    fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}",
470
17.0k
                   std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator);
471
17.0k
    return fmt::to_string(debug_string_buffer);
472
17.0k
}
473
474
16.9k
std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const {
475
16.9k
    return state->get_sink_local_state()->debug_string(indentation_level);
476
16.9k
}
477
478
459k
Status DataSinkOperatorXBase::init(const TDataSink& tsink) {
479
459k
    std::string op_name = "UNKNOWN_SINK";
480
459k
    auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type);
481
482
459k
    if (it != _TDataSinkType_VALUES_TO_NAMES.end()) {
483
459k
        op_name = it->second;
484
459k
    }
485
459k
    _name = op_name + "_OPERATOR";
486
459k
    return Status::OK();
487
459k
}
488
489
311k
Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) {
490
311k
    std::string op_name = print_plan_node_type(tnode.node_type);
491
311k
    _nereids_id = tnode.nereids_id;
492
311k
    auto substr = op_name.substr(0, op_name.find("_NODE"));
493
311k
    _name = substr + "_SINK_OPERATOR";
494
311k
    return Status::OK();
495
311k
}
496
497
template <typename LocalStateType>
498
Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state,
499
2.17M
                                                            LocalSinkStateInfo& info) {
500
2.17M
    auto local_state = LocalStateType::create_unique(this, state);
501
2.17M
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.17M
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.17M
    return Status::OK();
504
2.17M
}
_ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
125k
                                                            LocalSinkStateInfo& info) {
500
125k
    auto local_state = LocalStateType::create_unique(this, state);
501
125k
    RETURN_IF_ERROR(local_state->init(state, info));
502
125k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
125k
    return Status::OK();
504
125k
}
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
467k
                                                            LocalSinkStateInfo& info) {
500
467k
    auto local_state = LocalStateType::create_unique(this, state);
501
467k
    RETURN_IF_ERROR(local_state->init(state, info));
502
467k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
467k
    return Status::OK();
504
467k
}
_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
46.7k
                                                            LocalSinkStateInfo& info) {
500
46.7k
    auto local_state = LocalStateType::create_unique(this, state);
501
46.7k
    RETURN_IF_ERROR(local_state->init(state, info));
502
46.7k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
46.7k
    return Status::OK();
504
46.7k
}
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
9.35k
                                                            LocalSinkStateInfo& info) {
500
9.35k
    auto local_state = LocalStateType::create_unique(this, state);
501
9.35k
    RETURN_IF_ERROR(local_state->init(state, info));
502
9.35k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
9.35k
    return Status::OK();
504
9.35k
}
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
5.16k
                                                            LocalSinkStateInfo& info) {
500
5.16k
    auto local_state = LocalStateType::create_unique(this, state);
501
5.16k
    RETURN_IF_ERROR(local_state->init(state, info));
502
5.16k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
5.16k
    return Status::OK();
504
5.16k
}
_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.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_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
160
                                                            LocalSinkStateInfo& info) {
500
160
    auto local_state = LocalStateType::create_unique(this, state);
501
160
    RETURN_IF_ERROR(local_state->init(state, info));
502
160
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
160
    return Status::OK();
504
160
}
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
640
                                                            LocalSinkStateInfo& info) {
500
640
    auto local_state = LocalStateType::create_unique(this, state);
501
640
    RETURN_IF_ERROR(local_state->init(state, info));
502
640
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
640
    return Status::OK();
504
640
}
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
8.12k
                                                            LocalSinkStateInfo& info) {
500
8.12k
    auto local_state = LocalStateType::create_unique(this, state);
501
8.12k
    RETURN_IF_ERROR(local_state->init(state, info));
502
8.12k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
8.12k
    return Status::OK();
504
8.12k
}
_ZN5doris17DataSinkOperatorXINS_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
268k
                                                            LocalSinkStateInfo& info) {
500
268k
    auto local_state = LocalStateType::create_unique(this, state);
501
268k
    RETURN_IF_ERROR(local_state->init(state, info));
502
268k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
268k
    return Status::OK();
504
268k
}
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
34
                                                            LocalSinkStateInfo& info) {
500
34
    auto local_state = LocalStateType::create_unique(this, state);
501
34
    RETURN_IF_ERROR(local_state->init(state, info));
502
34
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
34
    return Status::OK();
504
34
}
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
298k
                                                            LocalSinkStateInfo& info) {
500
298k
    auto local_state = LocalStateType::create_unique(this, state);
501
298k
    RETURN_IF_ERROR(local_state->init(state, info));
502
298k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
298k
    return Status::OK();
504
298k
}
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
156k
                                                            LocalSinkStateInfo& info) {
500
156k
    auto local_state = LocalStateType::create_unique(this, state);
501
156k
    RETURN_IF_ERROR(local_state->init(state, info));
502
156k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
156k
    return Status::OK();
504
156k
}
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
658
                                                            LocalSinkStateInfo& info) {
500
658
    auto local_state = LocalStateType::create_unique(this, state);
501
658
    RETURN_IF_ERROR(local_state->init(state, info));
502
658
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
658
    return Status::OK();
504
658
}
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
140
                                                            LocalSinkStateInfo& info) {
500
140
    auto local_state = LocalStateType::create_unique(this, state);
501
140
    RETURN_IF_ERROR(local_state->init(state, info));
502
140
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
140
    return Status::OK();
504
140
}
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
741k
                                                            LocalSinkStateInfo& info) {
500
741k
    auto local_state = LocalStateType::create_unique(this, state);
501
741k
    RETURN_IF_ERROR(local_state->init(state, info));
502
741k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
741k
    return Status::OK();
504
741k
}
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
11.9k
                                                            LocalSinkStateInfo& info) {
500
11.9k
    auto local_state = LocalStateType::create_unique(this, state);
501
11.9k
    RETURN_IF_ERROR(local_state->init(state, info));
502
11.9k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
11.9k
    return Status::OK();
504
11.9k
}
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
7.58k
                                                            LocalSinkStateInfo& info) {
500
7.58k
    auto local_state = LocalStateType::create_unique(this, state);
501
7.58k
    RETURN_IF_ERROR(local_state->init(state, info));
502
7.58k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
7.58k
    return Status::OK();
504
7.58k
}
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.11k
                                                            LocalSinkStateInfo& info) {
500
4.11k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.11k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.11k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.11k
    return Status::OK();
504
4.11k
}
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
364
                                                            LocalSinkStateInfo& info) {
500
364
    auto local_state = LocalStateType::create_unique(this, state);
501
364
    RETURN_IF_ERROR(local_state->init(state, info));
502
364
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
364
    return Status::OK();
504
364
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
4.75k
                                                            LocalSinkStateInfo& info) {
500
4.75k
    auto local_state = LocalStateType::create_unique(this, state);
501
4.75k
    RETURN_IF_ERROR(local_state->init(state, info));
502
4.75k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
4.75k
    return Status::OK();
504
4.75k
}
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.56k
                                                            LocalSinkStateInfo& info) {
500
2.56k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.56k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.56k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.56k
    return Status::OK();
504
2.56k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.59k
                                                            LocalSinkStateInfo& info) {
500
2.59k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.59k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.59k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.59k
    return Status::OK();
504
2.59k
}
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
2.51k
                                                            LocalSinkStateInfo& info) {
500
2.51k
    auto local_state = LocalStateType::create_unique(this, state);
501
2.51k
    RETURN_IF_ERROR(local_state->init(state, info));
502
2.51k
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
2.51k
    return Status::OK();
504
2.51k
}
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
1
                                                            LocalSinkStateInfo& info) {
500
1
    auto local_state = LocalStateType::create_unique(this, state);
501
1
    RETURN_IF_ERROR(local_state->init(state, info));
502
1
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
1
    return Status::OK();
504
1
}
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
167
                                                            LocalSinkStateInfo& info) {
500
167
    auto local_state = LocalStateType::create_unique(this, state);
501
167
    RETURN_IF_ERROR(local_state->init(state, info));
502
167
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
167
    return Status::OK();
504
167
}
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
14
                                                            LocalSinkStateInfo& info) {
500
14
    auto local_state = LocalStateType::create_unique(this, state);
501
14
    RETURN_IF_ERROR(local_state->init(state, info));
502
14
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
14
    return Status::OK();
504
14
}
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
104
                                                            LocalSinkStateInfo& info) {
500
104
    auto local_state = LocalStateType::create_unique(this, state);
501
104
    RETURN_IF_ERROR(local_state->init(state, info));
502
104
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
104
    return Status::OK();
504
104
}
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
163
                                                            LocalSinkStateInfo& info) {
500
163
    auto local_state = LocalStateType::create_unique(this, state);
501
163
    RETURN_IF_ERROR(local_state->init(state, info));
502
163
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
163
    return Status::OK();
504
163
}
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
499
163
                                                            LocalSinkStateInfo& info) {
500
163
    auto local_state = LocalStateType::create_unique(this, state);
501
163
    RETURN_IF_ERROR(local_state->init(state, info));
502
163
    state->emplace_sink_local_state(operator_id(), std::move(local_state));
503
163
    return Status::OK();
504
163
}
505
506
template <typename LocalStateType>
507
1.83M
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.83M
    } else {
515
1.83M
        auto ss = LocalStateType::SharedStateType::create_shared();
516
1.83M
        ss->id = operator_id();
517
1.83M
        for (auto& dest : dests_id()) {
518
1.82M
            ss->related_op_ids.insert(dest);
519
1.82M
        }
520
1.83M
        return ss;
521
1.83M
    }
522
1.83M
}
_ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
106k
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
106k
    } else {
515
106k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
106k
        ss->id = operator_id();
517
106k
        for (auto& dest : dests_id()) {
518
106k
            ss->related_op_ids.insert(dest);
519
106k
        }
520
106k
        return ss;
521
106k
    }
522
106k
}
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
467k
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
467k
    } else {
515
467k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
467k
        ss->id = operator_id();
517
467k
        for (auto& dest : dests_id()) {
518
465k
            ss->related_op_ids.insert(dest);
519
465k
        }
520
467k
        return ss;
521
467k
    }
522
467k
}
_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
521
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
521
    } else {
515
521
        auto ss = LocalStateType::SharedStateType::create_shared();
516
521
        ss->id = operator_id();
517
522
        for (auto& dest : dests_id()) {
518
522
            ss->related_op_ids.insert(dest);
519
522
        }
520
521
        return ss;
521
521
    }
522
521
}
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
46.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
46.8k
    } else {
515
46.8k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
46.8k
        ss->id = operator_id();
517
46.8k
        for (auto& dest : dests_id()) {
518
46.7k
            ss->related_op_ids.insert(dest);
519
46.7k
        }
520
46.8k
        return ss;
521
46.8k
    }
522
46.8k
}
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv
Line
Count
Source
507
9.35k
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.35k
    } else {
515
9.35k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
9.35k
        ss->id = operator_id();
517
9.35k
        for (auto& dest : dests_id()) {
518
9.35k
            ss->related_op_ids.insert(dest);
519
9.35k
        }
520
9.35k
        return ss;
521
9.35k
    }
522
9.35k
}
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
5.16k
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.16k
    } else {
515
5.16k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
5.16k
        ss->id = operator_id();
517
5.16k
        for (auto& dest : dests_id()) {
518
5.16k
            ss->related_op_ids.insert(dest);
519
5.16k
        }
520
5.16k
        return ss;
521
5.16k
    }
522
5.16k
}
_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.38k
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.38k
    } else {
515
3.38k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
3.38k
        ss->id = operator_id();
517
3.39k
        for (auto& dest : dests_id()) {
518
3.39k
            ss->related_op_ids.insert(dest);
519
3.39k
        }
520
3.38k
        return ss;
521
3.38k
    }
522
3.38k
}
_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
160
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
160
    } else {
515
160
        auto ss = LocalStateType::SharedStateType::create_shared();
516
160
        ss->id = operator_id();
517
160
        for (auto& dest : dests_id()) {
518
160
            ss->related_op_ids.insert(dest);
519
160
        }
520
160
        return ss;
521
160
    }
522
160
}
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
640
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
640
    } else {
515
640
        auto ss = LocalStateType::SharedStateType::create_shared();
516
640
        ss->id = operator_id();
517
640
        for (auto& dest : dests_id()) {
518
640
            ss->related_op_ids.insert(dest);
519
640
        }
520
640
        return ss;
521
640
    }
522
640
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
8.14k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
8.14k
    } else {
515
8.14k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
8.14k
        ss->id = operator_id();
517
8.14k
        for (auto& dest : dests_id()) {
518
8.13k
            ss->related_op_ids.insert(dest);
519
8.13k
        }
520
8.14k
        return ss;
521
8.14k
    }
522
8.14k
}
_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
269k
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
269k
    } else {
515
269k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
269k
        ss->id = operator_id();
517
269k
        for (auto& dest : dests_id()) {
518
269k
            ss->related_op_ids.insert(dest);
519
269k
        }
520
269k
        return ss;
521
269k
    }
522
269k
}
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
36
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
36
    } else {
515
36
        auto ss = LocalStateType::SharedStateType::create_shared();
516
36
        ss->id = operator_id();
517
36
        for (auto& dest : dests_id()) {
518
36
            ss->related_op_ids.insert(dest);
519
36
        }
520
36
        return ss;
521
36
    }
522
36
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
157k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
157k
    } else {
515
157k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
157k
        ss->id = operator_id();
517
157k
        for (auto& dest : dests_id()) {
518
157k
            ss->related_op_ids.insert(dest);
519
157k
        }
520
157k
        return ss;
521
157k
    }
522
157k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
139
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
139
    } else {
515
139
        auto ss = LocalStateType::SharedStateType::create_shared();
516
139
        ss->id = operator_id();
517
139
        for (auto& dest : dests_id()) {
518
139
            ss->related_op_ids.insert(dest);
519
139
        }
520
139
        return ss;
521
139
    }
522
139
}
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
743k
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
743k
    } else {
515
743k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
743k
        ss->id = operator_id();
517
743k
        for (auto& dest : dests_id()) {
518
738k
            ss->related_op_ids.insert(dest);
519
738k
        }
520
743k
        return ss;
521
743k
    }
522
743k
}
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
11.9k
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
11.9k
    } else {
515
11.9k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
11.9k
        ss->id = operator_id();
517
11.9k
        for (auto& dest : dests_id()) {
518
11.9k
            ss->related_op_ids.insert(dest);
519
11.9k
        }
520
11.9k
        return ss;
521
11.9k
    }
522
11.9k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
466
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
466
    } else {
515
466
        auto ss = LocalStateType::SharedStateType::create_shared();
516
466
        ss->id = operator_id();
517
466
        for (auto& dest : dests_id()) {
518
466
            ss->related_op_ids.insert(dest);
519
466
        }
520
466
        return ss;
521
466
    }
522
466
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv
Line
Count
Source
507
2.62k
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.62k
    } else {
515
2.62k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.62k
        ss->id = operator_id();
517
2.62k
        for (auto& dest : dests_id()) {
518
2.62k
            ss->related_op_ids.insert(dest);
519
2.62k
        }
520
2.62k
        return ss;
521
2.62k
    }
522
2.62k
}
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv
Line
Count
Source
507
2.53k
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.53k
    } else {
515
2.53k
        auto ss = LocalStateType::SharedStateType::create_shared();
516
2.53k
        ss->id = operator_id();
517
2.53k
        for (auto& dest : dests_id()) {
518
2.53k
            ss->related_op_ids.insert(dest);
519
2.53k
        }
520
2.53k
        return ss;
521
2.53k
    }
522
2.53k
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
167
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
167
    } else {
515
167
        auto ss = LocalStateType::SharedStateType::create_shared();
516
167
        ss->id = operator_id();
517
167
        for (auto& dest : dests_id()) {
518
167
            ss->related_op_ids.insert(dest);
519
167
        }
520
167
        return ss;
521
167
    }
522
167
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv
_ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv
Line
Count
Source
507
104
std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const {
508
    if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
509
                                 LocalExchangeSharedState>) {
510
        return nullptr;
511
    } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType,
512
                                        MultiCastSharedState>) {
513
        throw Exception(Status::FatalError("should not reach here!"));
514
104
    } else {
515
104
        auto ss = LocalStateType::SharedStateType::create_shared();
516
104
        ss->id = operator_id();
517
104
        for (auto& dest : dests_id()) {
518
102
            ss->related_op_ids.insert(dest);
519
102
        }
520
104
        return ss;
521
104
    }
522
104
}
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv
523
524
template <typename LocalStateType>
525
2.70M
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.70M
    auto local_state = LocalStateType::create_unique(state, this);
527
2.70M
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.70M
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.70M
    return Status::OK();
530
2.70M
}
_ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
77.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
77.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
77.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
77.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
77.2k
    return Status::OK();
530
77.2k
}
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
297k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
297k
    auto local_state = LocalStateType::create_unique(state, this);
527
297k
    RETURN_IF_ERROR(local_state->init(state, info));
528
297k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
297k
    return Status::OK();
530
297k
}
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
78
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
78
    auto local_state = LocalStateType::create_unique(state, this);
527
78
    RETURN_IF_ERROR(local_state->init(state, info));
528
78
    state->emplace_local_state(operator_id(), std::move(local_state));
529
78
    return Status::OK();
530
78
}
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
34.1k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
34.1k
    auto local_state = LocalStateType::create_unique(state, this);
527
34.1k
    RETURN_IF_ERROR(local_state->init(state, info));
528
34.1k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
34.1k
    return Status::OK();
530
34.1k
}
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.09k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.09k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.09k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.09k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.09k
    return Status::OK();
530
8.09k
}
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
8.35k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
8.35k
    auto local_state = LocalStateType::create_unique(state, this);
527
8.35k
    RETURN_IF_ERROR(local_state->init(state, info));
528
8.35k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
8.35k
    return Status::OK();
530
8.35k
}
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
27
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
27
    auto local_state = LocalStateType::create_unique(state, this);
527
27
    RETURN_IF_ERROR(local_state->init(state, info));
528
27
    state->emplace_local_state(operator_id(), std::move(local_state));
529
27
    return Status::OK();
530
27
}
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
259k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
259k
    auto local_state = LocalStateType::create_unique(state, this);
527
259k
    RETURN_IF_ERROR(local_state->init(state, info));
528
259k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
259k
    return Status::OK();
530
259k
}
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
156k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
156k
    auto local_state = LocalStateType::create_unique(state, this);
527
156k
    RETURN_IF_ERROR(local_state->init(state, info));
528
156k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
156k
    return Status::OK();
530
156k
}
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
663
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
663
    auto local_state = LocalStateType::create_unique(state, this);
527
663
    RETURN_IF_ERROR(local_state->init(state, info));
528
663
    state->emplace_local_state(operator_id(), std::move(local_state));
529
663
    return Status::OK();
530
663
}
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
130
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
130
    auto local_state = LocalStateType::create_unique(state, this);
527
130
    RETURN_IF_ERROR(local_state->init(state, info));
528
130
    state->emplace_local_state(operator_id(), std::move(local_state));
529
130
    return Status::OK();
530
130
}
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
4.58k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
4.58k
    auto local_state = LocalStateType::create_unique(state, this);
527
4.58k
    RETURN_IF_ERROR(local_state->init(state, info));
528
4.58k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
4.58k
    return Status::OK();
530
4.58k
}
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
426k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
426k
    auto local_state = LocalStateType::create_unique(state, this);
527
426k
    RETURN_IF_ERROR(local_state->init(state, info));
528
426k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
426k
    return Status::OK();
530
426k
}
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.21k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.21k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.21k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.21k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.21k
    return Status::OK();
530
1.21k
}
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.9k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.9k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.9k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.9k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.9k
    return Status::OK();
530
11.9k
}
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
221
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
221
    auto local_state = LocalStateType::create_unique(state, this);
527
221
    RETURN_IF_ERROR(local_state->init(state, info));
528
221
    state->emplace_local_state(operator_id(), std::move(local_state));
529
221
    return Status::OK();
530
221
}
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
1.67k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.67k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.67k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.67k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.67k
    return Status::OK();
530
1.67k
}
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
56.2k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
56.2k
    auto local_state = LocalStateType::create_unique(state, this);
527
56.2k
    RETURN_IF_ERROR(local_state->init(state, info));
528
56.2k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
56.2k
    return Status::OK();
530
56.2k
}
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
11.3k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
11.3k
    auto local_state = LocalStateType::create_unique(state, this);
527
11.3k
    RETURN_IF_ERROR(local_state->init(state, info));
528
11.3k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
11.3k
    return Status::OK();
530
11.3k
}
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
363
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
363
    auto local_state = LocalStateType::create_unique(state, this);
527
363
    RETURN_IF_ERROR(local_state->init(state, info));
528
363
    state->emplace_local_state(operator_id(), std::move(local_state));
529
363
    return Status::OK();
530
363
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.45k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.45k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.45k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.45k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.45k
    return Status::OK();
530
2.45k
}
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.42k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.42k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.42k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.42k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.42k
    return Status::OK();
530
2.42k
}
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_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_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.08k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.08k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.08k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.08k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.08k
    return Status::OK();
530
2.08k
}
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
6.58k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
6.58k
    auto local_state = LocalStateType::create_unique(state, this);
527
6.58k
    RETURN_IF_ERROR(local_state->init(state, info));
528
6.58k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
6.58k
    return Status::OK();
530
6.58k
}
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
823k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
823k
    auto local_state = LocalStateType::create_unique(state, this);
527
823k
    RETURN_IF_ERROR(local_state->init(state, info));
528
823k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
823k
    return Status::OK();
530
823k
}
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
163
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
163
    auto local_state = LocalStateType::create_unique(state, this);
527
163
    RETURN_IF_ERROR(local_state->init(state, info));
528
163
    state->emplace_local_state(operator_id(), std::move(local_state));
529
163
    return Status::OK();
530
163
}
_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.65k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
1.65k
    auto local_state = LocalStateType::create_unique(state, this);
527
1.65k
    RETURN_IF_ERROR(local_state->init(state, info));
528
1.65k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
1.65k
    return Status::OK();
530
1.65k
}
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
2.82k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
2.82k
    auto local_state = LocalStateType::create_unique(state, this);
527
2.82k
    RETURN_IF_ERROR(local_state->init(state, info));
528
2.82k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
2.82k
    return Status::OK();
530
2.82k
}
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
10.8k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
10.8k
    auto local_state = LocalStateType::create_unique(state, this);
527
10.8k
    RETURN_IF_ERROR(local_state->init(state, info));
528
10.8k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
10.8k
    return Status::OK();
530
10.8k
}
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
525
493k
Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) {
526
493k
    auto local_state = LocalStateType::create_unique(state, this);
527
493k
    RETURN_IF_ERROR(local_state->init(state, info));
528
493k
    state->emplace_local_state(operator_id(), std::move(local_state));
529
493k
    return Status::OK();
530
493k
}
531
532
PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent,
533
                                                         RuntimeState* state)
534
2.17M
        : _parent(parent), _state(state) {}
535
536
PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent)
537
2.69M
        : _num_rows_returned(0),
538
2.69M
          _rows_returned_counter(nullptr),
539
2.69M
          _parent(parent),
540
2.69M
          _state(state),
541
2.69M
          _budget(state->batch_size(), state->preferred_block_size_bytes()) {}
542
543
template <typename SharedStateArg>
544
2.70M
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
2.70M
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
2.70M
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
2.70M
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
2.70M
    _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.70M
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
2.70M
    _operator_profile->add_child(_common_profile.get(), true);
553
2.70M
    _operator_profile->add_child(_custom_profile.get(), true);
554
2.70M
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
2.70M
    if constexpr (!is_fake_shared) {
556
1.42M
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
837k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
837k
                                    .first.get()
559
837k
                                    ->template cast<SharedStateArg>();
560
561
837k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
837k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
837k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
837k
        } else if (info.shared_state) {
565
514k
            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
514k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
514k
            _dependency = _shared_state->create_source_dependency(
572
514k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
514k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
514k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
514k
        } else {
576
73.8k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
10.2k
                DCHECK(false);
578
10.2k
            }
579
73.8k
        }
580
1.42M
    }
581
582
2.70M
    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.70M
    _rows_returned_counter =
587
2.70M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
2.70M
    _blocks_returned_counter =
589
2.70M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
2.70M
    _output_block_bytes_counter =
591
2.70M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
2.70M
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
2.70M
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
2.70M
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
2.70M
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
2.70M
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
2.70M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
2.70M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
2.70M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
2.70M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
2.70M
    _memory_used_counter =
602
2.70M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
2.70M
    _common_profile->add_info_string("IsColocate",
604
2.70M
                                     std::to_string(_parent->is_colocated_operator()));
605
2.70M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
2.70M
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
2.70M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
2.70M
    return Status::OK();
609
2.70M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
77.5k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
77.5k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
77.5k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
77.5k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
77.5k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
77.5k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
77.5k
    _operator_profile->add_child(_common_profile.get(), true);
553
77.5k
    _operator_profile->add_child(_custom_profile.get(), true);
554
77.5k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
77.5k
    if constexpr (!is_fake_shared) {
556
77.5k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
18.5k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
18.5k
                                    .first.get()
559
18.5k
                                    ->template cast<SharedStateArg>();
560
561
18.5k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
18.5k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
18.5k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
58.9k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
58.3k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
58.3k
            _dependency = _shared_state->create_source_dependency(
572
58.3k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
58.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
58.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
58.3k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
642
        }
580
77.5k
    }
581
582
77.5k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
77.5k
    _rows_returned_counter =
587
77.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
77.5k
    _blocks_returned_counter =
589
77.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
77.5k
    _output_block_bytes_counter =
591
77.5k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
77.5k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
77.5k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
77.5k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
77.5k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
77.5k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
77.5k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
77.5k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
77.5k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
77.5k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
77.5k
    _memory_used_counter =
602
77.5k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
77.5k
    _common_profile->add_info_string("IsColocate",
604
77.5k
                                     std::to_string(_parent->is_colocated_operator()));
605
77.5k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
77.5k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
77.5k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
77.5k
    return Status::OK();
609
77.5k
}
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
1
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
1
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
1
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
1
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
1
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
1
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
1
    _operator_profile->add_child(_common_profile.get(), true);
553
1
    _operator_profile->add_child(_custom_profile.get(), true);
554
1
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
1
    if constexpr (!is_fake_shared) {
556
1
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
1
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
1
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
1
            _dependency = _shared_state->create_source_dependency(
572
1
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
1
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
1
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
1
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
1
    }
581
582
1
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
1
    _rows_returned_counter =
587
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
1
    _blocks_returned_counter =
589
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
1
    _output_block_bytes_counter =
591
1
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
1
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
1
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
1
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
1
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
1
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
1
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
1
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
1
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
1
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
1
    _memory_used_counter =
602
1
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
1
    _common_profile->add_info_string("IsColocate",
604
1
                                     std::to_string(_parent->is_colocated_operator()));
605
1
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
1
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
1
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
1
    return Status::OK();
609
1
}
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
268k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
268k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
268k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
268k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
268k
    _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
268k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
268k
    _operator_profile->add_child(_common_profile.get(), true);
553
268k
    _operator_profile->add_child(_custom_profile.get(), true);
554
268k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
268k
    if constexpr (!is_fake_shared) {
556
268k
        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
268k
        } 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
261k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
261k
            _dependency = _shared_state->create_source_dependency(
572
261k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
261k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
261k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
261k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
7.22k
        }
580
268k
    }
581
582
268k
    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
268k
    _rows_returned_counter =
587
268k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
268k
    _blocks_returned_counter =
589
268k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
268k
    _output_block_bytes_counter =
591
268k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
268k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
268k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
268k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
268k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
268k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
268k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
268k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
268k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
268k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
268k
    _memory_used_counter =
602
268k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
268k
    _common_profile->add_info_string("IsColocate",
604
268k
                                     std::to_string(_parent->is_colocated_operator()));
605
268k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
268k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
268k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
268k
    return Status::OK();
609
268k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
27
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
27
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
27
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
27
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
27
    _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
27
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
27
    _operator_profile->add_child(_common_profile.get(), true);
553
27
    _operator_profile->add_child(_custom_profile.get(), true);
554
27
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
27
    if constexpr (!is_fake_shared) {
556
27
        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
27
        } 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
27
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
27
            _dependency = _shared_state->create_source_dependency(
572
27
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
27
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
27
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
27
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
27
    }
581
582
27
    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
27
    _rows_returned_counter =
587
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
27
    _blocks_returned_counter =
589
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
27
    _output_block_bytes_counter =
591
27
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
27
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
27
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
27
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
27
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
27
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
27
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
27
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
27
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
27
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
27
    _memory_used_counter =
602
27
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
27
    _common_profile->add_info_string("IsColocate",
604
27
                                     std::to_string(_parent->is_colocated_operator()));
605
27
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
27
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
27
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
27
    return Status::OK();
609
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.9k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.9k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.9k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.9k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.9k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
11.9k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.9k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.9k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.9k
    if constexpr (!is_fake_shared) {
556
11.9k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
11.9k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.9k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.9k
            _dependency = _shared_state->create_source_dependency(
572
11.9k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.9k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.9k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.9k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
66
        }
580
11.9k
    }
581
582
11.9k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
11.9k
    _rows_returned_counter =
587
11.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.9k
    _blocks_returned_counter =
589
11.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.9k
    _output_block_bytes_counter =
591
11.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.9k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.9k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.9k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.9k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.9k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.9k
    _memory_used_counter =
602
11.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.9k
    _common_profile->add_info_string("IsColocate",
604
11.9k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.9k
    return Status::OK();
609
11.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
8.13k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
8.13k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
8.13k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
8.13k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
8.13k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
8.13k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
8.13k
    _operator_profile->add_child(_common_profile.get(), true);
553
8.13k
    _operator_profile->add_child(_custom_profile.get(), true);
554
8.13k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
8.13k
    if constexpr (!is_fake_shared) {
556
8.13k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
8.13k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
8.06k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
8.06k
            _dependency = _shared_state->create_source_dependency(
572
8.06k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
8.06k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
8.06k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
8.06k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
65
        }
580
8.13k
    }
581
582
8.13k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
8.13k
    _rows_returned_counter =
587
8.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
8.13k
    _blocks_returned_counter =
589
8.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
8.13k
    _output_block_bytes_counter =
591
8.13k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
8.13k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
8.13k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
8.13k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
8.13k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
8.13k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
8.13k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
8.13k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
8.13k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
8.13k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
8.13k
    _memory_used_counter =
602
8.13k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
8.13k
    _common_profile->add_info_string("IsColocate",
604
8.13k
                                     std::to_string(_parent->is_colocated_operator()));
605
8.13k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
8.13k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
8.13k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
8.13k
    return Status::OK();
609
8.13k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
157k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
157k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
157k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
157k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
157k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
157k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
157k
    _operator_profile->add_child(_common_profile.get(), true);
553
157k
    _operator_profile->add_child(_custom_profile.get(), true);
554
157k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
157k
    if constexpr (!is_fake_shared) {
556
157k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
157k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
155k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
155k
            _dependency = _shared_state->create_source_dependency(
572
155k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
155k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
155k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
155k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
2.03k
        }
580
157k
    }
581
582
157k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
157k
    _rows_returned_counter =
587
157k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
157k
    _blocks_returned_counter =
589
157k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
157k
    _output_block_bytes_counter =
591
157k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
157k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
157k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
157k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
157k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
157k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
157k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
157k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
157k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
157k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
157k
    _memory_used_counter =
602
157k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
157k
    _common_profile->add_info_string("IsColocate",
604
157k
                                     std::to_string(_parent->is_colocated_operator()));
605
157k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
157k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
157k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
157k
    return Status::OK();
609
157k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
664
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
664
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
664
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
664
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
664
    _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
664
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
664
    _operator_profile->add_child(_common_profile.get(), true);
553
664
    _operator_profile->add_child(_custom_profile.get(), true);
554
664
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
664
    if constexpr (!is_fake_shared) {
556
665
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
665
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
665
                                    .first.get()
559
665
                                    ->template cast<SharedStateArg>();
560
561
665
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
665
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
665
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
18.4E
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
0
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
0
            _dependency = _shared_state->create_source_dependency(
572
0
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
18.4E
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
18.4E
        }
580
664
    }
581
582
664
    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
664
    _rows_returned_counter =
587
664
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
664
    _blocks_returned_counter =
589
664
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
664
    _output_block_bytes_counter =
591
664
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
664
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
664
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
664
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
664
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
664
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
664
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
664
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
664
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
664
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
664
    _memory_used_counter =
602
664
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
664
    _common_profile->add_info_string("IsColocate",
604
664
                                     std::to_string(_parent->is_colocated_operator()));
605
664
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
664
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
664
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
664
    return Status::OK();
609
664
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
130
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
130
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
130
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
130
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
130
    _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
130
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
130
    _operator_profile->add_child(_common_profile.get(), true);
553
130
    _operator_profile->add_child(_custom_profile.get(), true);
554
130
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
130
    if constexpr (!is_fake_shared) {
556
130
        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
130
        } 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
130
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
130
            _dependency = _shared_state->create_source_dependency(
572
130
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
130
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
130
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
130
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
130
    }
581
582
130
    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
130
    _rows_returned_counter =
587
130
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
130
    _blocks_returned_counter =
589
130
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
130
    _output_block_bytes_counter =
591
130
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
130
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
130
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
130
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
130
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
130
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
130
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
130
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
130
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
130
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
130
    _memory_used_counter =
602
130
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
130
    _common_profile->add_info_string("IsColocate",
604
130
                                     std::to_string(_parent->is_colocated_operator()));
605
130
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
130
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
130
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
130
    return Status::OK();
609
130
}
_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.3k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
56.3k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
56.3k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
56.3k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
56.3k
    _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.3k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
56.3k
    _operator_profile->add_child(_common_profile.get(), true);
553
56.3k
    _operator_profile->add_child(_custom_profile.get(), true);
554
56.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
56.3k
    if constexpr (!is_fake_shared) {
556
56.3k
        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.3k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
3.48k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
3.48k
            _dependency = _shared_state->create_source_dependency(
572
3.48k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
3.48k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
3.48k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
52.8k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
52.8k
        }
580
56.3k
    }
581
582
56.3k
    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.3k
    _rows_returned_counter =
587
56.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
56.3k
    _blocks_returned_counter =
589
56.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
56.3k
    _output_block_bytes_counter =
591
56.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
56.3k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
56.3k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
56.3k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
56.3k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
56.3k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
56.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
56.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
56.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
56.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
56.3k
    _memory_used_counter =
602
56.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
56.3k
    _common_profile->add_info_string("IsColocate",
604
56.3k
                                     std::to_string(_parent->is_colocated_operator()));
605
56.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
56.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
56.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
56.3k
    return Status::OK();
609
56.3k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
17
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
17
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
17
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
17
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
17
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
17
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
17
    _operator_profile->add_child(_common_profile.get(), true);
553
17
    _operator_profile->add_child(_custom_profile.get(), true);
554
17
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
17
    if constexpr (!is_fake_shared) {
556
17
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
17
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
17
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
17
            _dependency = _shared_state->create_source_dependency(
572
17
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
17
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
17
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
17
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
17
    }
581
582
17
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
17
    _rows_returned_counter =
587
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
17
    _blocks_returned_counter =
589
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
17
    _output_block_bytes_counter =
591
17
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
17
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
17
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
17
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
17
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
17
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
17
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
17
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
17
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
17
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
17
    _memory_used_counter =
602
17
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
17
    _common_profile->add_info_string("IsColocate",
604
17
                                     std::to_string(_parent->is_colocated_operator()));
605
17
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
17
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
17
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
17
    return Status::OK();
609
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
11.3k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
11.3k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
11.3k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
11.3k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
11.3k
    _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.3k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
11.3k
    _operator_profile->add_child(_common_profile.get(), true);
553
11.3k
    _operator_profile->add_child(_custom_profile.get(), true);
554
11.3k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
11.3k
    if constexpr (!is_fake_shared) {
556
11.3k
        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.3k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
11.3k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
11.3k
            _dependency = _shared_state->create_source_dependency(
572
11.3k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
11.3k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
11.3k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
11.3k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
31
        }
580
11.3k
    }
581
582
11.3k
    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.3k
    _rows_returned_counter =
587
11.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
11.3k
    _blocks_returned_counter =
589
11.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
11.3k
    _output_block_bytes_counter =
591
11.3k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
11.3k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
11.3k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
11.3k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
11.3k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
11.3k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
11.3k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
11.3k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
11.3k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
11.3k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
11.3k
    _memory_used_counter =
602
11.3k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
11.3k
    _common_profile->add_info_string("IsColocate",
604
11.3k
                                     std::to_string(_parent->is_colocated_operator()));
605
11.3k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
11.3k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
11.3k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
11.3k
    return Status::OK();
609
11.3k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
466
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
466
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
466
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
466
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
466
    _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
466
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
466
    _operator_profile->add_child(_common_profile.get(), true);
553
466
    _operator_profile->add_child(_custom_profile.get(), true);
554
466
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
466
    if constexpr (!is_fake_shared) {
556
466
        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
466
        } 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
466
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
466
            _dependency = _shared_state->create_source_dependency(
572
466
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
466
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
466
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
466
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
466
    }
581
582
466
    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
466
    _rows_returned_counter =
587
466
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
466
    _blocks_returned_counter =
589
466
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
466
    _output_block_bytes_counter =
591
466
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
466
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
466
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
466
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
466
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
466
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
466
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
466
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
466
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
466
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
466
    _memory_used_counter =
602
466
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
466
    _common_profile->add_info_string("IsColocate",
604
466
                                     std::to_string(_parent->is_colocated_operator()));
605
466
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
466
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
466
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
466
    return Status::OK();
609
466
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
5.02k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
5.02k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
5.02k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
5.02k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
5.02k
    _operator_profile->set_metadata(_parent->node_id());
549
    // indent is false so that source operator will have same
550
    // indentation_level with its parent operator.
551
5.02k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
5.02k
    _operator_profile->add_child(_common_profile.get(), true);
553
5.02k
    _operator_profile->add_child(_custom_profile.get(), true);
554
5.02k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
5.02k
    if constexpr (!is_fake_shared) {
556
5.02k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
0
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
0
                                    .first.get()
559
0
                                    ->template cast<SharedStateArg>();
560
561
0
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
0
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
0
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
5.02k
        } else if (info.shared_state) {
565
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
566
                DCHECK(false);
567
            }
568
            // For UnionSourceOperator without children, there is no shared state.
569
4.25k
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
4.25k
            _dependency = _shared_state->create_source_dependency(
572
4.25k
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
4.25k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
4.25k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
4.25k
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
764
        }
580
5.02k
    }
581
582
5.02k
    if (must_set_shared_state() && _shared_state == nullptr) {
583
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
584
0
    }
585
586
5.02k
    _rows_returned_counter =
587
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
5.02k
    _blocks_returned_counter =
589
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
5.02k
    _output_block_bytes_counter =
591
5.02k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
5.02k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
5.02k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
5.02k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
5.02k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
5.02k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
5.02k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
5.02k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
5.02k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
5.02k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
5.02k
    _memory_used_counter =
602
5.02k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
5.02k
    _common_profile->add_info_string("IsColocate",
604
5.02k
                                     std::to_string(_parent->is_colocated_operator()));
605
5.02k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
5.02k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
5.02k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
5.02k
    return Status::OK();
609
5.02k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
828k
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
828k
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
828k
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
828k
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
828k
    _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
828k
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
828k
    _operator_profile->add_child(_common_profile.get(), true);
553
828k
    _operator_profile->add_child(_custom_profile.get(), true);
554
828k
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
828k
    if constexpr (!is_fake_shared) {
556
828k
        if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) {
557
817k
            _shared_state = info.shared_state_map.at(_parent->operator_id())
558
817k
                                    .first.get()
559
817k
                                    ->template cast<SharedStateArg>();
560
561
817k
            _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get();
562
817k
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
563
817k
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
564
817k
        } 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
10.2k
        } else {
576
10.2k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
10.2k
                DCHECK(false);
578
10.2k
            }
579
10.2k
        }
580
828k
    }
581
582
828k
    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
828k
    _rows_returned_counter =
587
828k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
828k
    _blocks_returned_counter =
589
828k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
828k
    _output_block_bytes_counter =
591
828k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
828k
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
828k
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
828k
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
828k
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
828k
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
828k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
828k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
828k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
828k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
828k
    _memory_used_counter =
602
828k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
828k
    _common_profile->add_info_string("IsColocate",
604
828k
                                     std::to_string(_parent->is_colocated_operator()));
605
828k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
828k
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
828k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
828k
    return Status::OK();
609
828k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE
Line
Count
Source
544
163
Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) {
545
163
    _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix()));
546
163
    _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS));
547
163
    _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS));
548
163
    _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
163
    info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false);
552
163
    _operator_profile->add_child(_common_profile.get(), true);
553
163
    _operator_profile->add_child(_custom_profile.get(), true);
554
163
    constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>;
555
163
    if constexpr (!is_fake_shared) {
556
163
        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
163
        } 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
163
            _shared_state = info.shared_state->template cast<SharedStateArg>();
570
571
163
            _dependency = _shared_state->create_source_dependency(
572
163
                    _parent->operator_id(), _parent->node_id(), _parent->get_name());
573
163
            _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
574
163
                    _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
575
163
        } else {
576
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) {
577
                DCHECK(false);
578
            }
579
0
        }
580
163
    }
581
582
163
    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
163
    _rows_returned_counter =
587
163
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1);
588
163
    _blocks_returned_counter =
589
163
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1);
590
163
    _output_block_bytes_counter =
591
163
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
592
163
    _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
593
163
            _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
594
163
    _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL(
595
163
            _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1);
596
163
    _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2);
597
163
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
598
163
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
599
163
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
600
163
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
601
163
    _memory_used_counter =
602
163
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
603
163
    _common_profile->add_info_string("IsColocate",
604
163
                                     std::to_string(_parent->is_colocated_operator()));
605
163
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
606
163
    _common_profile->add_info_string("FollowedByShuffledOperator",
607
163
                                     std::to_string(_parent->followed_by_shuffled_operator()));
608
163
    return Status::OK();
609
163
}
610
611
template <typename SharedStateArg>
612
2.72M
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
2.72M
    _conjuncts.resize(_parent->_conjuncts.size());
614
2.72M
    _projections.resize(_parent->_projections.size());
615
3.22M
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
500k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
500k
    }
618
5.48M
    for (size_t i = 0; i < _projections.size(); i++) {
619
2.76M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
2.76M
    }
621
2.72M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
2.73M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
10.4k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
70.5k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
60.1k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
60.1k
                    state, _intermediate_projections[i][j]));
627
60.1k
        }
628
10.4k
    }
629
2.72M
    return Status::OK();
630
2.72M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
77.5k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
77.5k
    _conjuncts.resize(_parent->_conjuncts.size());
614
77.5k
    _projections.resize(_parent->_projections.size());
615
79.0k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
1.54k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
1.54k
    }
618
415k
    for (size_t i = 0; i < _projections.size(); i++) {
619
338k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
338k
    }
621
77.5k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
79.2k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
1.72k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
17.6k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
15.8k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
15.8k
                    state, _intermediate_projections[i][j]));
627
15.8k
        }
628
1.72k
    }
629
77.5k
    return Status::OK();
630
77.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
269k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
269k
    _conjuncts.resize(_parent->_conjuncts.size());
614
269k
    _projections.resize(_parent->_projections.size());
615
269k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
269k
    for (size_t i = 0; i < _projections.size(); i++) {
619
359
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
359
    }
621
269k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
269k
    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
269k
    return Status::OK();
630
269k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
27
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
27
    _conjuncts.resize(_parent->_conjuncts.size());
614
27
    _projections.resize(_parent->_projections.size());
615
27
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
27
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
27
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
27
    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
27
    return Status::OK();
630
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.9k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.9k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.9k
    _projections.resize(_parent->_projections.size());
615
12.0k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
51
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
51
    }
618
77.4k
    for (size_t i = 0; i < _projections.size(); i++) {
619
65.4k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
65.4k
    }
621
11.9k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
12.1k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
141
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
859
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
718
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
718
                    state, _intermediate_projections[i][j]));
627
718
        }
628
141
    }
629
11.9k
    return Status::OK();
630
11.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
8.14k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
8.14k
    _conjuncts.resize(_parent->_conjuncts.size());
614
8.14k
    _projections.resize(_parent->_projections.size());
615
8.96k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
813
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
813
    }
618
22.2k
    for (size_t i = 0; i < _projections.size(); i++) {
619
14.1k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
14.1k
    }
621
8.14k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
8.22k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
81
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
615
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
534
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
534
                    state, _intermediate_projections[i][j]));
627
534
        }
628
81
    }
629
8.14k
    return Status::OK();
630
8.14k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
157k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
157k
    _conjuncts.resize(_parent->_conjuncts.size());
614
157k
    _projections.resize(_parent->_projections.size());
615
162k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4.85k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4.85k
    }
618
422k
    for (size_t i = 0; i < _projections.size(); i++) {
619
265k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
265k
    }
621
157k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
157k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
229
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
1.53k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
1.30k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
1.30k
                    state, _intermediate_projections[i][j]));
627
1.30k
        }
628
229
    }
629
157k
    return Status::OK();
630
157k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
665
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
665
    _conjuncts.resize(_parent->_conjuncts.size());
614
665
    _projections.resize(_parent->_projections.size());
615
669
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
4
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
4
    }
618
1.53k
    for (size_t i = 0; i < _projections.size(); i++) {
619
866
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
866
    }
621
665
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
665
    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
665
    return Status::OK();
630
665
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
134
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
134
    _conjuncts.resize(_parent->_conjuncts.size());
614
134
    _projections.resize(_parent->_projections.size());
615
134
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
350
    for (size_t i = 0; i < _projections.size(); i++) {
619
216
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
216
    }
621
134
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
134
    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
134
    return Status::OK();
630
134
}
_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
489k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
489k
    }
618
3.27M
    for (size_t i = 0; i < _projections.size(); i++) {
619
1.98M
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
1.98M
    }
621
1.29M
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
1.29M
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
8.26k
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
49.9k
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
41.6k
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
41.6k
                    state, _intermediate_projections[i][j]));
627
41.6k
        }
628
8.26k
    }
629
1.29M
    return Status::OK();
630
1.29M
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
56.5k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
56.5k
    _conjuncts.resize(_parent->_conjuncts.size());
614
56.5k
    _projections.resize(_parent->_projections.size());
615
56.5k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
152k
    for (size_t i = 0; i < _projections.size(); i++) {
619
95.8k
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
95.8k
    }
621
56.5k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
56.5k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
56.5k
    return Status::OK();
630
56.5k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
17
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
17
    _conjuncts.resize(_parent->_conjuncts.size());
614
17
    _projections.resize(_parent->_projections.size());
615
17
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
17
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
17
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
17
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
17
    return Status::OK();
630
17
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
11.3k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
11.3k
    _conjuncts.resize(_parent->_conjuncts.size());
614
11.3k
    _projections.resize(_parent->_projections.size());
615
15.2k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
3.90k
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
3.90k
    }
618
11.3k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
11.3k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
11.3k
    for (int i = 0; i < _parent->_intermediate_projections.size(); i++) {
623
0
        _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size());
624
0
        for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) {
625
0
            RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone(
626
0
                    state, _intermediate_projections[i][j]));
627
0
        }
628
0
    }
629
11.3k
    return Status::OK();
630
11.3k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
466
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
466
    _conjuncts.resize(_parent->_conjuncts.size());
614
466
    _projections.resize(_parent->_projections.size());
615
466
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
466
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
466
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
466
    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
466
    return Status::OK();
630
466
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
5.22k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
5.22k
    _conjuncts.resize(_parent->_conjuncts.size());
614
5.22k
    _projections.resize(_parent->_projections.size());
615
5.22k
    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.39k
    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.22k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
5.22k
    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.22k
    return Status::OK();
630
5.22k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
832k
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
832k
    _conjuncts.resize(_parent->_conjuncts.size());
614
832k
    _projections.resize(_parent->_projections.size());
615
832k
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
0
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
0
    }
618
832k
    for (size_t i = 0; i < _projections.size(); i++) {
619
0
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
0
    }
621
832k
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
832k
    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
832k
    return Status::OK();
630
832k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE
Line
Count
Source
612
163
Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) {
613
163
    _conjuncts.resize(_parent->_conjuncts.size());
614
163
    _projections.resize(_parent->_projections.size());
615
170
    for (size_t i = 0; i < _conjuncts.size(); i++) {
616
7
        RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i]));
617
7
    }
618
479
    for (size_t i = 0; i < _projections.size(); i++) {
619
316
        RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i]));
620
316
    }
621
163
    _intermediate_projections.resize(_parent->_intermediate_projections.size());
622
166
    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
163
    return Status::OK();
630
163
}
631
632
template <typename SharedStateArg>
633
7.94k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
7.94k
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
7.94k
    _terminated = true;
638
7.94k
    return Status::OK();
639
7.94k
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
384
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
384
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
384
    _terminated = true;
638
384
    return Status::OK();
639
384
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
89
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
89
    if (_terminated) {
635
1
        return Status::OK();
636
1
    }
637
88
    _terminated = true;
638
88
    return Status::OK();
639
89
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
143
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
143
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
143
    _terminated = true;
638
143
    return Status::OK();
639
143
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
445
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
445
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
445
    _terminated = true;
638
445
    return Status::OK();
639
445
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
5.05k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
5.05k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
5.05k
    _terminated = true;
638
5.05k
    return Status::OK();
639
5.05k
}
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_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
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
4
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
4
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
4
    _terminated = true;
638
4
    return Status::OK();
639
4
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
402
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
402
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
402
    _terminated = true;
638
402
    return Status::OK();
639
402
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
1.39k
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
1.39k
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
1.39k
    _terminated = true;
638
1.39k
    return Status::OK();
639
1.39k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE
Line
Count
Source
633
15
Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) {
634
15
    if (_terminated) {
635
0
        return Status::OK();
636
0
    }
637
15
    _terminated = true;
638
15
    return Status::OK();
639
15
}
640
641
template <typename SharedStateArg>
642
3.02M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
3.02M
    if (_closed) {
644
302k
        return Status::OK();
645
302k
    }
646
2.72M
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
1.43M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
1.43M
    }
649
2.72M
    _closed = true;
650
2.72M
    return Status::OK();
651
3.02M
}
_ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
77.4k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
77.4k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
77.4k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
77.4k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
77.4k
    }
649
77.4k
    _closed = true;
650
77.4k
    return Status::OK();
651
77.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
536k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
536k
    if (_closed) {
644
268k
        return Status::OK();
645
268k
    }
646
267k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
267k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
267k
    }
649
267k
    _closed = true;
650
267k
    return Status::OK();
651
536k
}
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
27
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
27
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
27
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
27
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
27
    }
649
27
    _closed = true;
650
27
    return Status::OK();
651
27
}
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
11.9k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.9k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.9k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.9k
    }
649
11.9k
    _closed = true;
650
11.9k
    return Status::OK();
651
11.9k
}
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
16.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
16.3k
    if (_closed) {
644
8.21k
        return Status::OK();
645
8.21k
    }
646
8.12k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
8.12k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
8.12k
    }
649
8.12k
    _closed = true;
650
8.12k
    return Status::OK();
651
16.3k
}
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
157k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
157k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
157k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
157k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
157k
    }
649
157k
    _closed = true;
650
157k
    return Status::OK();
651
157k
}
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
663
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
663
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
663
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
663
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
663
    }
649
663
    _closed = true;
650
663
    return Status::OK();
651
663
}
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
129
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
129
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
129
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
129
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
129
    }
649
129
    _closed = true;
650
129
    return Status::OK();
651
129
}
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
1.31M
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
1.31M
    if (_closed) {
644
19.4k
        return Status::OK();
645
19.4k
    }
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.5k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
56.5k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
56.5k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
56.5k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
56.5k
    }
649
56.5k
    _closed = true;
650
56.5k
    return Status::OK();
651
56.5k
}
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
28
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
28
    if (_closed) {
644
14
        return Status::OK();
645
14
    }
646
14
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
14
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
14
    }
649
14
    _closed = true;
650
14
    return Status::OK();
651
28
}
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
11.3k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
11.3k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
11.3k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
11.3k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
11.3k
    }
649
11.3k
    _closed = true;
650
11.3k
    return Status::OK();
651
11.3k
}
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
728
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
728
    if (_closed) {
644
364
        return Status::OK();
645
364
    }
646
364
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
364
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
364
    }
649
364
    _closed = true;
650
364
    return Status::OK();
651
728
}
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
10.7k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
10.7k
    if (_closed) {
644
5.54k
        return Status::OK();
645
5.54k
    }
646
5.21k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
5.21k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
5.21k
    }
649
5.21k
    _closed = true;
650
5.21k
    return Status::OK();
651
10.7k
}
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
833k
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
833k
    if (_closed) {
644
0
        return Status::OK();
645
0
    }
646
833k
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
833k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
833k
    }
649
833k
    _closed = true;
650
833k
    return Status::OK();
651
833k
}
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE
_ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE
Line
Count
Source
642
336
Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) {
643
336
    if (_closed) {
644
182
        return Status::OK();
645
182
    }
646
154
    if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) {
647
154
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
648
154
    }
649
154
    _closed = true;
650
154
    return Status::OK();
651
336
}
652
653
template <typename SharedState>
654
2.17M
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
2.17M
    _operator_profile =
657
2.17M
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
2.17M
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
2.17M
    _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.17M
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
2.17M
    _operator_profile->add_child(_common_profile, true);
666
2.17M
    _operator_profile->add_child(_custom_profile, true);
667
668
2.17M
    _operator_profile->set_metadata(_parent->node_id());
669
2.17M
    _wait_for_finish_dependency_timer =
670
2.17M
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
2.17M
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
2.17M
    if constexpr (!is_fake_shared) {
673
1.42M
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
1.42M
            info.shared_state_map.end()) {
675
317k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
298k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
298k
            }
678
317k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
317k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
317k
                                                  ? 0
681
317k
                                                  : info.task_idx]
682
317k
                                  .get();
683
317k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
1.11M
        } else {
685
18.4E
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
18.4E
                DCHECK(false);
687
18.4E
            }
688
1.11M
            _shared_state = info.shared_state->template cast<SharedState>();
689
1.11M
            _dependency = _shared_state->create_sink_dependency(
690
1.11M
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
1.11M
        }
692
1.42M
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
1.42M
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
1.42M
    }
695
696
2.17M
    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.17M
    _rows_input_counter =
701
2.17M
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
2.17M
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
2.17M
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
2.17M
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
2.17M
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
2.17M
    _memory_used_counter =
707
2.17M
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
2.17M
    _common_profile->add_info_string("IsColocate",
709
2.17M
                                     std::to_string(_parent->is_colocated_operator()));
710
2.17M
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
2.17M
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
2.17M
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
2.17M
    return Status::OK();
714
2.17M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
125k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
125k
    _operator_profile =
657
125k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
125k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
125k
    _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
125k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
125k
    _operator_profile->add_child(_common_profile, true);
666
125k
    _operator_profile->add_child(_custom_profile, true);
667
668
125k
    _operator_profile->set_metadata(_parent->node_id());
669
125k
    _wait_for_finish_dependency_timer =
670
125k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
125k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
125k
    if constexpr (!is_fake_shared) {
673
125k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
125k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
18.5k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
18.5k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
18.5k
                                                  ? 0
681
18.5k
                                                  : info.task_idx]
682
18.5k
                                  .get();
683
18.5k
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
106k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
106k
            _shared_state = info.shared_state->template cast<SharedState>();
689
106k
            _dependency = _shared_state->create_sink_dependency(
690
106k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
106k
        }
692
125k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
125k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
125k
    }
695
696
125k
    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
125k
    _rows_input_counter =
701
125k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
125k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
125k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
125k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
125k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
125k
    _memory_used_counter =
707
125k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
125k
    _common_profile->add_info_string("IsColocate",
709
125k
                                     std::to_string(_parent->is_colocated_operator()));
710
125k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
125k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
125k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
125k
    return Status::OK();
714
125k
}
_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
267k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
267k
    _operator_profile =
657
267k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
267k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
267k
    _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
267k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
267k
    _operator_profile->add_child(_common_profile, true);
666
267k
    _operator_profile->add_child(_custom_profile, true);
667
668
267k
    _operator_profile->set_metadata(_parent->node_id());
669
267k
    _wait_for_finish_dependency_timer =
670
267k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
267k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
267k
    if constexpr (!is_fake_shared) {
673
267k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
267k
            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
267k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
267k
            _shared_state = info.shared_state->template cast<SharedState>();
689
267k
            _dependency = _shared_state->create_sink_dependency(
690
267k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
267k
        }
692
267k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
267k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
267k
    }
695
696
267k
    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
267k
    _rows_input_counter =
701
267k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
267k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
267k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
267k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
267k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
267k
    _memory_used_counter =
707
267k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
267k
    _common_profile->add_info_string("IsColocate",
709
267k
                                     std::to_string(_parent->is_colocated_operator()));
710
267k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
267k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
267k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
267k
    return Status::OK();
714
267k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
34
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
34
    _operator_profile =
657
34
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
34
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
34
    _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
34
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
34
    _operator_profile->add_child(_common_profile, true);
666
34
    _operator_profile->add_child(_custom_profile, true);
667
668
34
    _operator_profile->set_metadata(_parent->node_id());
669
34
    _wait_for_finish_dependency_timer =
670
34
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
34
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
34
    if constexpr (!is_fake_shared) {
673
34
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
34
            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
34
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
34
            _shared_state = info.shared_state->template cast<SharedState>();
689
34
            _dependency = _shared_state->create_sink_dependency(
690
34
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
34
        }
692
34
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
34
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
34
    }
695
696
34
    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
34
    _rows_input_counter =
701
34
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
34
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
34
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
34
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
34
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
34
    _memory_used_counter =
707
34
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
34
    _common_profile->add_info_string("IsColocate",
709
34
                                     std::to_string(_parent->is_colocated_operator()));
710
34
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
34
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
34
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
34
    return Status::OK();
714
34
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
11.9k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
11.9k
    _operator_profile =
657
11.9k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
11.9k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
11.9k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
11.9k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
11.9k
    _operator_profile->add_child(_common_profile, true);
666
11.9k
    _operator_profile->add_child(_custom_profile, true);
667
668
11.9k
    _operator_profile->set_metadata(_parent->node_id());
669
11.9k
    _wait_for_finish_dependency_timer =
670
11.9k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
11.9k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
11.9k
    if constexpr (!is_fake_shared) {
673
11.9k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
11.9k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
11.9k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
11.9k
            _shared_state = info.shared_state->template cast<SharedState>();
689
11.9k
            _dependency = _shared_state->create_sink_dependency(
690
11.9k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
11.9k
        }
692
11.9k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
11.9k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
11.9k
    }
695
696
11.9k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
11.9k
    _rows_input_counter =
701
11.9k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
11.9k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
11.9k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
11.9k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
11.9k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
11.9k
    _memory_used_counter =
707
11.9k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
11.9k
    _common_profile->add_info_string("IsColocate",
709
11.9k
                                     std::to_string(_parent->is_colocated_operator()));
710
11.9k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
11.9k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
11.9k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
11.9k
    return Status::OK();
714
11.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
8.12k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
8.12k
    _operator_profile =
657
8.12k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
8.12k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
8.12k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
8.12k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
8.12k
    _operator_profile->add_child(_common_profile, true);
666
8.12k
    _operator_profile->add_child(_custom_profile, true);
667
668
8.12k
    _operator_profile->set_metadata(_parent->node_id());
669
8.12k
    _wait_for_finish_dependency_timer =
670
8.12k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
8.12k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
8.12k
    if constexpr (!is_fake_shared) {
673
8.12k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
8.12k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
8.12k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
8.12k
            _shared_state = info.shared_state->template cast<SharedState>();
689
8.12k
            _dependency = _shared_state->create_sink_dependency(
690
8.12k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
8.12k
        }
692
8.12k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
8.12k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
8.12k
    }
695
696
8.12k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
8.12k
    _rows_input_counter =
701
8.12k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
8.12k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
8.12k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
8.12k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
8.12k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
8.12k
    _memory_used_counter =
707
8.12k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
8.12k
    _common_profile->add_info_string("IsColocate",
709
8.12k
                                     std::to_string(_parent->is_colocated_operator()));
710
8.12k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
8.12k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
8.12k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
8.12k
    return Status::OK();
714
8.12k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
157k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
157k
    _operator_profile =
657
157k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
157k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
157k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
157k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
157k
    _operator_profile->add_child(_common_profile, true);
666
157k
    _operator_profile->add_child(_custom_profile, true);
667
668
157k
    _operator_profile->set_metadata(_parent->node_id());
669
157k
    _wait_for_finish_dependency_timer =
670
157k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
157k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
157k
    if constexpr (!is_fake_shared) {
673
157k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
157k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
157k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
157k
            _shared_state = info.shared_state->template cast<SharedState>();
689
157k
            _dependency = _shared_state->create_sink_dependency(
690
157k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
157k
        }
692
157k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
157k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
157k
    }
695
696
157k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
157k
    _rows_input_counter =
701
157k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
157k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
157k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
157k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
157k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
157k
    _memory_used_counter =
707
157k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
157k
    _common_profile->add_info_string("IsColocate",
709
157k
                                     std::to_string(_parent->is_colocated_operator()));
710
157k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
157k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
157k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
157k
    return Status::OK();
714
157k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
659
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
659
    _operator_profile =
657
659
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
659
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
659
    _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
659
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
659
    _operator_profile->add_child(_common_profile, true);
666
659
    _operator_profile->add_child(_custom_profile, true);
667
668
659
    _operator_profile->set_metadata(_parent->node_id());
669
659
    _wait_for_finish_dependency_timer =
670
659
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
659
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
659
    if constexpr (!is_fake_shared) {
673
659
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
662
            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
662
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
662
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
662
                                                  ? 0
681
662
                                                  : info.task_idx]
682
662
                                  .get();
683
662
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
18.4E
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
18.4E
            _shared_state = info.shared_state->template cast<SharedState>();
689
18.4E
            _dependency = _shared_state->create_sink_dependency(
690
18.4E
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
18.4E
        }
692
659
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
659
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
659
    }
695
696
659
    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
659
    _rows_input_counter =
701
659
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
659
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
659
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
659
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
659
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
659
    _memory_used_counter =
707
659
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
659
    _common_profile->add_info_string("IsColocate",
709
659
                                     std::to_string(_parent->is_colocated_operator()));
710
659
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
659
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
659
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
659
    return Status::OK();
714
659
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
140
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
140
    _operator_profile =
657
140
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
140
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
140
    _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
140
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
140
    _operator_profile->add_child(_common_profile, true);
666
140
    _operator_profile->add_child(_custom_profile, true);
667
668
140
    _operator_profile->set_metadata(_parent->node_id());
669
140
    _wait_for_finish_dependency_timer =
670
140
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
140
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
140
    if constexpr (!is_fake_shared) {
673
140
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
140
            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
140
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
140
            _shared_state = info.shared_state->template cast<SharedState>();
689
140
            _dependency = _shared_state->create_sink_dependency(
690
140
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
140
        }
692
140
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
140
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
140
    }
695
696
140
    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
140
    _rows_input_counter =
701
140
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
140
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
140
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
140
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
140
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
140
    _memory_used_counter =
707
140
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
140
    _common_profile->add_info_string("IsColocate",
709
140
                                     std::to_string(_parent->is_colocated_operator()));
710
140
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
140
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
140
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
140
    return Status::OK();
714
140
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
746k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
746k
    _operator_profile =
657
746k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
746k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
746k
    _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
746k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
746k
    _operator_profile->add_child(_common_profile, true);
666
746k
    _operator_profile->add_child(_custom_profile, true);
667
668
746k
    _operator_profile->set_metadata(_parent->node_id());
669
746k
    _wait_for_finish_dependency_timer =
670
746k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
746k
    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
746k
    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
746k
    _rows_input_counter =
701
746k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
746k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
746k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
746k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
746k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
746k
    _memory_used_counter =
707
746k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
746k
    _common_profile->add_info_string("IsColocate",
709
746k
                                     std::to_string(_parent->is_colocated_operator()));
710
746k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
746k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
746k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
746k
    return Status::OK();
714
746k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
7.59k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
7.59k
    _operator_profile =
657
7.59k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
7.59k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
7.59k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
7.59k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
7.59k
    _operator_profile->add_child(_common_profile, true);
666
7.59k
    _operator_profile->add_child(_custom_profile, true);
667
668
7.59k
    _operator_profile->set_metadata(_parent->node_id());
669
7.59k
    _wait_for_finish_dependency_timer =
670
7.59k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
7.59k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
7.59k
    if constexpr (!is_fake_shared) {
673
7.59k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
7.59k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
7.59k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
7.59k
            _shared_state = info.shared_state->template cast<SharedState>();
689
7.59k
            _dependency = _shared_state->create_sink_dependency(
690
7.59k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
7.59k
        }
692
7.59k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
7.59k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
7.59k
    }
695
696
7.59k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
7.59k
    _rows_input_counter =
701
7.59k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
7.59k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
7.59k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
7.59k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
7.59k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
7.59k
    _memory_used_counter =
707
7.59k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
7.59k
    _common_profile->add_info_string("IsColocate",
709
7.59k
                                     std::to_string(_parent->is_colocated_operator()));
710
7.59k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
7.59k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
7.59k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
7.59k
    return Status::OK();
714
7.59k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
466
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
466
    _operator_profile =
657
466
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
466
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
466
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
466
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
466
    _operator_profile->add_child(_common_profile, true);
666
466
    _operator_profile->add_child(_custom_profile, true);
667
668
466
    _operator_profile->set_metadata(_parent->node_id());
669
466
    _wait_for_finish_dependency_timer =
670
466
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
466
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
466
    if constexpr (!is_fake_shared) {
673
466
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
466
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
466
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
466
            _shared_state = info.shared_state->template cast<SharedState>();
689
466
            _dependency = _shared_state->create_sink_dependency(
690
466
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
466
        }
692
466
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
466
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
466
    }
695
696
466
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
466
    _rows_input_counter =
701
466
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
466
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
466
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
466
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
466
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
466
    _memory_used_counter =
707
466
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
466
    _common_profile->add_info_string("IsColocate",
709
466
                                     std::to_string(_parent->is_colocated_operator()));
710
466
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
466
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
466
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
466
    return Status::OK();
714
466
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
4.10k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
4.10k
    _operator_profile =
657
4.10k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
4.10k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
4.10k
    _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
4.10k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
4.10k
    _operator_profile->add_child(_common_profile, true);
666
4.10k
    _operator_profile->add_child(_custom_profile, true);
667
668
4.10k
    _operator_profile->set_metadata(_parent->node_id());
669
4.10k
    _wait_for_finish_dependency_timer =
670
4.10k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
4.10k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
4.10k
    if constexpr (!is_fake_shared) {
673
4.10k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
4.10k
            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
4.10k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
4.10k
            _shared_state = info.shared_state->template cast<SharedState>();
689
4.10k
            _dependency = _shared_state->create_sink_dependency(
690
4.10k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
4.10k
        }
692
4.10k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
4.10k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
4.10k
    }
695
696
4.10k
    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
4.10k
    _rows_input_counter =
701
4.10k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
4.10k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
4.10k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
4.10k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
4.10k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
4.10k
    _memory_used_counter =
707
4.10k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
4.10k
    _common_profile->add_info_string("IsColocate",
709
4.10k
                                     std::to_string(_parent->is_colocated_operator()));
710
4.10k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
4.10k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
4.10k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
4.10k
    return Status::OK();
714
4.10k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
12.4k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
12.4k
    _operator_profile =
657
12.4k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
12.4k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
12.4k
    _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS));
660
661
    // indentation is true
662
    // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask.
663
    // So we should set the indentation to true.
664
12.4k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
12.4k
    _operator_profile->add_child(_common_profile, true);
666
12.4k
    _operator_profile->add_child(_custom_profile, true);
667
668
12.4k
    _operator_profile->set_metadata(_parent->node_id());
669
12.4k
    _wait_for_finish_dependency_timer =
670
12.4k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
12.4k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
12.4k
    if constexpr (!is_fake_shared) {
673
12.4k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
12.4k
            info.shared_state_map.end()) {
675
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
            }
678
0
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
0
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
0
                                                  ? 0
681
0
                                                  : info.task_idx]
682
0
                                  .get();
683
0
            _shared_state = _dependency->shared_state()->template cast<SharedState>();
684
12.4k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
12.4k
            _shared_state = info.shared_state->template cast<SharedState>();
689
12.4k
            _dependency = _shared_state->create_sink_dependency(
690
12.4k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
12.4k
        }
692
12.4k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
12.4k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
12.4k
    }
695
696
12.4k
    if (must_set_shared_state() && _shared_state == nullptr) {
697
0
        return Status::InternalError("must set shared state, in {}", _parent->get_name());
698
0
    }
699
700
12.4k
    _rows_input_counter =
701
12.4k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
12.4k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
12.4k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
12.4k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
12.4k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
12.4k
    _memory_used_counter =
707
12.4k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
12.4k
    _common_profile->add_info_string("IsColocate",
709
12.4k
                                     std::to_string(_parent->is_colocated_operator()));
710
12.4k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
12.4k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
12.4k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
12.4k
    return Status::OK();
714
12.4k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
298k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
298k
    _operator_profile =
657
298k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
298k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
298k
    _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
298k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
298k
    _operator_profile->add_child(_common_profile, true);
666
298k
    _operator_profile->add_child(_custom_profile, true);
667
668
298k
    _operator_profile->set_metadata(_parent->node_id());
669
298k
    _wait_for_finish_dependency_timer =
670
298k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
298k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
298k
    if constexpr (!is_fake_shared) {
673
298k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
298k
            info.shared_state_map.end()) {
675
298k
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
676
298k
                DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1);
677
298k
            }
678
298k
            _dependency = info.shared_state_map.at(_parent->dests_id().front())
679
298k
                                  .second[std::is_same_v<LocalExchangeSharedState, SharedState>
680
298k
                                                  ? 0
681
298k
                                                  : info.task_idx]
682
298k
                                  .get();
683
298k
            _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
298k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
298k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
298k
    }
695
696
298k
    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
298k
    _rows_input_counter =
701
298k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
298k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
298k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
298k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
298k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
298k
    _memory_used_counter =
707
298k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
298k
    _common_profile->add_info_string("IsColocate",
709
298k
                                     std::to_string(_parent->is_colocated_operator()));
710
298k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
298k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
298k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
298k
    return Status::OK();
714
298k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
654
534k
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
534k
    _operator_profile =
657
534k
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
534k
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
534k
    _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
534k
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
534k
    _operator_profile->add_child(_common_profile, true);
666
534k
    _operator_profile->add_child(_custom_profile, true);
667
668
534k
    _operator_profile->set_metadata(_parent->node_id());
669
534k
    _wait_for_finish_dependency_timer =
670
534k
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
534k
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
534k
    if constexpr (!is_fake_shared) {
673
534k
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
534k
            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
534k
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
534k
            _shared_state = info.shared_state->template cast<SharedState>();
689
534k
            _dependency = _shared_state->create_sink_dependency(
690
534k
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
534k
        }
692
534k
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
534k
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
534k
    }
695
696
534k
    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
534k
    _rows_input_counter =
701
534k
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
534k
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
534k
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
534k
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
534k
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
534k
    _memory_used_counter =
707
534k
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
534k
    _common_profile->add_info_string("IsColocate",
709
534k
                                     std::to_string(_parent->is_colocated_operator()));
710
534k
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
534k
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
534k
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
534k
    return Status::OK();
714
534k
}
_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
326
Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) {
655
    // create profile
656
326
    _operator_profile =
657
326
            state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix()));
658
326
    _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS));
659
326
    _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
326
    info.parent_profile->add_child(_operator_profile, /*indent=*/true);
665
326
    _operator_profile->add_child(_common_profile, true);
666
326
    _operator_profile->add_child(_custom_profile, true);
667
668
326
    _operator_profile->set_metadata(_parent->node_id());
669
326
    _wait_for_finish_dependency_timer =
670
326
            ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY);
671
326
    constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>;
672
326
    if constexpr (!is_fake_shared) {
673
326
        if (info.shared_state_map.find(_parent->dests_id().front()) !=
674
326
            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
326
        } else {
685
            if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) {
686
                DCHECK(false);
687
            }
688
326
            _shared_state = info.shared_state->template cast<SharedState>();
689
326
            _dependency = _shared_state->create_sink_dependency(
690
326
                    _parent->dests_id().front(), _parent->node_id(), _parent->get_name());
691
326
        }
692
326
        _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
693
326
                _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1);
694
326
    }
695
696
326
    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
326
    _rows_input_counter =
701
326
            ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1);
702
326
    _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2);
703
326
    _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2);
704
326
    _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2);
705
326
    _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1);
706
326
    _memory_used_counter =
707
326
            _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1);
708
326
    _common_profile->add_info_string("IsColocate",
709
326
                                     std::to_string(_parent->is_colocated_operator()));
710
326
    _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator()));
711
326
    _common_profile->add_info_string("FollowedByShuffledOperator",
712
326
                                     std::to_string(_parent->followed_by_shuffled_operator()));
713
326
    return Status::OK();
714
326
}
715
716
template <typename SharedState>
717
2.18M
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
2.18M
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
2.18M
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
1.43M
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
1.43M
    }
724
2.18M
    _closed = true;
725
2.18M
    return Status::OK();
726
2.18M
}
_ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
125k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
125k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
125k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
125k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
125k
    }
724
125k
    _closed = true;
725
125k
    return Status::OK();
726
125k
}
_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
268k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
268k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
268k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
268k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
268k
    }
724
268k
    _closed = true;
725
268k
    return Status::OK();
726
268k
}
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
25
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
25
    if (_closed) {
719
2
        return Status::OK();
720
2
    }
721
23
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
23
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
23
    }
724
23
    _closed = true;
725
23
    return Status::OK();
726
25
}
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
11.9k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
11.9k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
11.9k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
11.9k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
11.9k
    }
724
11.9k
    _closed = true;
725
11.9k
    return Status::OK();
726
11.9k
}
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
8.11k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
8.11k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
8.11k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
8.11k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
8.11k
    }
724
8.11k
    _closed = true;
725
8.11k
    return Status::OK();
726
8.11k
}
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
156k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
156k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
156k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
156k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
156k
    }
724
156k
    _closed = true;
725
156k
    return Status::OK();
726
156k
}
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
654
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
654
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
654
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
654
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
654
    }
724
654
    _closed = true;
725
654
    return Status::OK();
726
654
}
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
129
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
129
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
129
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
129
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
129
    }
724
129
    _closed = true;
725
129
    return Status::OK();
726
129
}
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
749k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
749k
    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
749k
    _closed = true;
725
749k
    return Status::OK();
726
749k
}
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
7.62k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
7.62k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
7.62k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
7.62k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
7.62k
    }
724
7.62k
    _closed = true;
725
7.62k
    return Status::OK();
726
7.62k
}
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
364
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
364
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
364
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
364
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
364
    }
724
364
    _closed = true;
725
364
    return Status::OK();
726
364
}
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
4.11k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
4.11k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
4.11k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
4.11k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
4.11k
    }
724
4.11k
    _closed = true;
725
4.11k
    return Status::OK();
726
4.11k
}
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
12.6k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
12.6k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
12.6k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
12.6k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
12.6k
    }
724
12.6k
    _closed = true;
725
12.6k
    return Status::OK();
726
12.6k
}
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
299k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
299k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
299k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
299k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
299k
    }
724
299k
    _closed = true;
725
299k
    return Status::OK();
726
299k
}
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
717
537k
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
537k
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
537k
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
537k
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
537k
    }
724
537k
    _closed = true;
725
537k
    return Status::OK();
726
537k
}
_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
326
Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) {
718
326
    if (_closed) {
719
0
        return Status::OK();
720
0
    }
721
326
    if constexpr (!std::is_same_v<SharedState, FakeSharedState>) {
722
326
        COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time());
723
326
    }
724
326
    _closed = true;
725
326
    return Status::OK();
726
326
}
727
728
template <typename LocalStateType>
729
Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
730
10.7k
                                                          bool* eos) {
731
10.7k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
10.7k
    return pull(state, block, eos);
733
10.7k
}
_ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
432
                                                          bool* eos) {
731
432
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
432
    return pull(state, block, eos);
733
432
}
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
730
10.3k
                                                          bool* eos) {
731
10.3k
    RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos));
732
10.3k
    return pull(state, block, eos);
733
10.3k
}
734
735
template <typename LocalStateType>
736
Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block,
737
764k
                                                         bool* eos) {
738
764k
    auto& local_state = get_local_state(state);
739
764k
    if (need_more_input_data(state)) {
740
733k
        local_state._child_block->clear_column_data(
741
733k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
733k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
733k
                state, local_state._child_block.get(), &local_state._child_eos));
744
733k
        *eos = local_state._child_eos;
745
733k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
57.0k
            return Status::OK();
747
57.0k
        }
748
676k
        {
749
676k
            SCOPED_TIMER(local_state.exec_time_counter());
750
676k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
676k
        }
752
676k
    }
753
754
707k
    if (!need_more_input_data(state)) {
755
660k
        SCOPED_TIMER(local_state.exec_time_counter());
756
660k
        bool new_eos = false;
757
660k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
660k
        if (new_eos) {
759
578k
            *eos = true;
760
578k
        } else if (!need_more_input_data(state)) {
761
24.5k
            *eos = false;
762
24.5k
        }
763
660k
    }
764
707k
    return Status::OK();
765
707k
}
_ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
144k
                                                         bool* eos) {
738
144k
    auto& local_state = get_local_state(state);
739
144k
    if (need_more_input_data(state)) {
740
126k
        local_state._child_block->clear_column_data(
741
126k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
126k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
126k
                state, local_state._child_block.get(), &local_state._child_eos));
744
126k
        *eos = local_state._child_eos;
745
126k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
33.9k
            return Status::OK();
747
33.9k
        }
748
93.0k
        {
749
93.0k
            SCOPED_TIMER(local_state.exec_time_counter());
750
93.0k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
93.0k
        }
752
93.0k
    }
753
754
111k
    if (!need_more_input_data(state)) {
755
111k
        SCOPED_TIMER(local_state.exec_time_counter());
756
111k
        bool new_eos = false;
757
111k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
111k
        if (new_eos) {
759
53.1k
            *eos = true;
760
57.9k
        } else if (!need_more_input_data(state)) {
761
9.84k
            *eos = false;
762
9.84k
        }
763
111k
    }
764
111k
    return Status::OK();
765
111k
}
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
_ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.12k
                                                         bool* eos) {
738
4.12k
    auto& local_state = get_local_state(state);
739
4.12k
    if (need_more_input_data(state)) {
740
2.27k
        local_state._child_block->clear_column_data(
741
2.27k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
2.27k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
2.27k
                state, local_state._child_block.get(), &local_state._child_eos));
744
2.27k
        *eos = local_state._child_eos;
745
2.27k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
553
            return Status::OK();
747
553
        }
748
1.71k
        {
749
1.71k
            SCOPED_TIMER(local_state.exec_time_counter());
750
1.71k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
1.71k
        }
752
1.71k
    }
753
754
3.57k
    if (!need_more_input_data(state)) {
755
3.57k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.57k
        bool new_eos = false;
757
3.57k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.57k
        if (new_eos) {
759
1.22k
            *eos = true;
760
2.35k
        } else if (!need_more_input_data(state)) {
761
1.84k
            *eos = false;
762
1.84k
        }
763
3.57k
    }
764
3.57k
    return Status::OK();
765
3.57k
}
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
4.82k
                                                         bool* eos) {
738
4.82k
    auto& local_state = get_local_state(state);
739
4.82k
    if (need_more_input_data(state)) {
740
4.82k
        local_state._child_block->clear_column_data(
741
4.82k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
4.82k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
4.82k
                state, local_state._child_block.get(), &local_state._child_eos));
744
4.82k
        *eos = local_state._child_eos;
745
4.82k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
1.62k
            return Status::OK();
747
1.62k
        }
748
3.20k
        {
749
3.20k
            SCOPED_TIMER(local_state.exec_time_counter());
750
3.20k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
3.20k
        }
752
3.20k
    }
753
754
3.20k
    if (!need_more_input_data(state)) {
755
3.20k
        SCOPED_TIMER(local_state.exec_time_counter());
756
3.20k
        bool new_eos = false;
757
3.20k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
3.20k
        if (new_eos) {
759
1.65k
            *eos = true;
760
1.65k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
3.20k
    }
764
3.20k
    return Status::OK();
765
3.20k
}
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
31.4k
                                                         bool* eos) {
738
31.4k
    auto& local_state = get_local_state(state);
739
31.4k
    if (need_more_input_data(state)) {
740
31.4k
        local_state._child_block->clear_column_data(
741
31.4k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
31.4k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
31.4k
                state, local_state._child_block.get(), &local_state._child_eos));
744
31.4k
        *eos = local_state._child_eos;
745
31.4k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
4.05k
            return Status::OK();
747
4.05k
        }
748
27.4k
        {
749
27.4k
            SCOPED_TIMER(local_state.exec_time_counter());
750
27.4k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
27.4k
        }
752
27.4k
    }
753
754
27.4k
    if (!need_more_input_data(state)) {
755
10.8k
        SCOPED_TIMER(local_state.exec_time_counter());
756
10.8k
        bool new_eos = false;
757
10.8k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
10.8k
        if (new_eos) {
759
10.7k
            *eos = true;
760
10.7k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
10.8k
    }
764
27.4k
    return Status::OK();
765
27.4k
}
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
539k
                                                         bool* eos) {
738
539k
    auto& local_state = get_local_state(state);
739
540k
    if (need_more_input_data(state)) {
740
540k
        local_state._child_block->clear_column_data(
741
540k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
540k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
540k
                state, local_state._child_block.get(), &local_state._child_eos));
744
540k
        *eos = local_state._child_eos;
745
540k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
13.3k
            return Status::OK();
747
13.3k
        }
748
527k
        {
749
527k
            SCOPED_TIMER(local_state.exec_time_counter());
750
527k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
527k
        }
752
527k
    }
753
754
525k
    if (!need_more_input_data(state)) {
755
496k
        SCOPED_TIMER(local_state.exec_time_counter());
756
496k
        bool new_eos = false;
757
496k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
496k
        if (new_eos) {
759
494k
            *eos = true;
760
494k
        } else if (!need_more_input_data(state)) {
761
0
            *eos = false;
762
0
        }
763
496k
    }
764
525k
    return Status::OK();
765
525k
}
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
32.6k
                                                         bool* eos) {
738
32.6k
    auto& local_state = get_local_state(state);
739
32.6k
    if (need_more_input_data(state)) {
740
20.1k
        local_state._child_block->clear_column_data(
741
20.1k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
20.1k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
20.1k
                state, local_state._child_block.get(), &local_state._child_eos));
744
20.1k
        *eos = local_state._child_eos;
745
20.1k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
2.76k
            return Status::OK();
747
2.76k
        }
748
17.3k
        {
749
17.3k
            SCOPED_TIMER(local_state.exec_time_counter());
750
17.3k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
17.3k
        }
752
17.3k
    }
753
754
29.8k
    if (!need_more_input_data(state)) {
755
29.3k
        SCOPED_TIMER(local_state.exec_time_counter());
756
29.3k
        bool new_eos = false;
757
29.3k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
29.3k
        if (new_eos) {
759
11.9k
            *eos = true;
760
17.3k
        } else if (!need_more_input_data(state)) {
761
12.4k
            *eos = false;
762
12.4k
        }
763
29.3k
    }
764
29.8k
    return Status::OK();
765
29.8k
}
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb
Line
Count
Source
737
7.44k
                                                         bool* eos) {
738
7.44k
    auto& local_state = get_local_state(state);
739
7.44k
    if (need_more_input_data(state)) {
740
7.07k
        local_state._child_block->clear_column_data(
741
7.07k
                OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots());
742
7.07k
        RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(
743
7.07k
                state, local_state._child_block.get(), &local_state._child_eos));
744
7.07k
        *eos = local_state._child_eos;
745
7.07k
        if (local_state._child_block->rows() == 0 && !local_state._child_eos) {
746
812
            return Status::OK();
747
812
        }
748
6.26k
        {
749
6.26k
            SCOPED_TIMER(local_state.exec_time_counter());
750
6.26k
            RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos));
751
6.26k
        }
752
6.26k
    }
753
754
6.63k
    if (!need_more_input_data(state)) {
755
6.63k
        SCOPED_TIMER(local_state.exec_time_counter());
756
6.63k
        bool new_eos = false;
757
6.63k
        RETURN_IF_ERROR(pull(state, block, &new_eos));
758
6.63k
        if (new_eos) {
759
4.57k
            *eos = true;
760
4.57k
        } else if (!need_more_input_data(state)) {
761
366
            *eos = false;
762
366
        }
763
6.63k
    }
764
6.62k
    return Status::OK();
765
6.62k
}
766
767
template <typename Writer, typename Parent>
768
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
769
66.0k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
66.0k
    RETURN_IF_ERROR(Base::init(state, info));
771
66.0k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
66.0k
                                                         "AsyncWriterDependency", true);
773
66.0k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
66.0k
                             _finish_dependency));
775
776
66.0k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
66.0k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
66.0k
    return Status::OK();
779
66.0k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
523
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
523
    RETURN_IF_ERROR(Base::init(state, info));
771
523
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
523
                                                         "AsyncWriterDependency", true);
773
523
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
523
                             _finish_dependency));
775
776
523
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
523
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
523
    return Status::OK();
779
523
}
_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
46.5k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
46.5k
    RETURN_IF_ERROR(Base::init(state, info));
771
46.5k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
46.5k
                                                         "AsyncWriterDependency", true);
773
46.5k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
46.5k
                             _finish_dependency));
775
776
46.5k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
46.5k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
46.5k
    return Status::OK();
779
46.5k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
9.35k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
9.35k
    RETURN_IF_ERROR(Base::init(state, info));
771
9.35k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
9.35k
                                                         "AsyncWriterDependency", true);
773
9.35k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
9.35k
                             _finish_dependency));
775
776
9.35k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
9.35k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
9.35k
    return Status::OK();
779
9.35k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
5.16k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
5.16k
    RETURN_IF_ERROR(Base::init(state, info));
771
5.16k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
5.16k
                                                         "AsyncWriterDependency", true);
773
5.16k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
5.16k
                             _finish_dependency));
775
776
5.16k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
5.16k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
5.16k
    return Status::OK();
779
5.16k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
3.39k
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
3.39k
    RETURN_IF_ERROR(Base::init(state, info));
771
3.39k
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
3.39k
                                                         "AsyncWriterDependency", true);
773
3.39k
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
3.39k
                             _finish_dependency));
775
776
3.39k
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
3.39k
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
3.39k
    return Status::OK();
779
3.39k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
32
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
32
    RETURN_IF_ERROR(Base::init(state, info));
771
32
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
32
                                                         "AsyncWriterDependency", true);
773
32
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
32
                             _finish_dependency));
775
776
32
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
32
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
32
    return Status::OK();
779
32
}
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
160
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
160
    RETURN_IF_ERROR(Base::init(state, info));
771
160
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
160
                                                         "AsyncWriterDependency", true);
773
160
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
160
                             _finish_dependency));
775
776
160
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
160
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
160
    return Status::OK();
779
160
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
640
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
640
    RETURN_IF_ERROR(Base::init(state, info));
771
640
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
640
                                                         "AsyncWriterDependency", true);
773
640
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
640
                             _finish_dependency));
775
776
640
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
640
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
640
    return Status::OK();
779
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE
Line
Count
Source
769
156
Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) {
770
156
    RETURN_IF_ERROR(Base::init(state, info));
771
156
    _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(),
772
156
                                                         "AsyncWriterDependency", true);
773
156
    _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency,
774
156
                             _finish_dependency));
775
776
156
    _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL(
777
156
            common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1);
778
156
    return Status::OK();
779
156
}
780
781
template <typename Writer, typename Parent>
782
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
783
66.5k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
66.5k
    RETURN_IF_ERROR(Base::open(state));
785
66.5k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
592k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
525k
        RETURN_IF_ERROR(
788
525k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
525k
    }
790
66.5k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
66.5k
    return Status::OK();
792
66.5k
}
_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
47.1k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
47.1k
    RETURN_IF_ERROR(Base::open(state));
785
47.1k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
345k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
298k
        RETURN_IF_ERROR(
788
298k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
298k
    }
790
47.1k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
47.1k
    return Status::OK();
792
47.1k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
9.30k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
9.30k
    RETURN_IF_ERROR(Base::open(state));
785
9.30k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
57.8k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
48.5k
        RETURN_IF_ERROR(
788
48.5k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
48.5k
    }
790
9.30k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
9.30k
    return Status::OK();
792
9.30k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
5.15k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
5.15k
    RETURN_IF_ERROR(Base::open(state));
785
5.15k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
137k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
132k
        RETURN_IF_ERROR(
788
132k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
132k
    }
790
5.15k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
5.15k
    return Status::OK();
792
5.15k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
3.39k
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
3.39k
    RETURN_IF_ERROR(Base::open(state));
785
3.39k
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
42.2k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
38.8k
        RETURN_IF_ERROR(
788
38.8k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
38.8k
    }
790
3.39k
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
3.39k
    return Status::OK();
792
3.39k
}
_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
160
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
160
    RETURN_IF_ERROR(Base::open(state));
785
160
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
478
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
318
        RETURN_IF_ERROR(
788
318
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
318
    }
790
160
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
160
    return Status::OK();
792
160
}
_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.38k
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
3.74k
        RETURN_IF_ERROR(
788
3.74k
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
3.74k
    }
790
640
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
640
    return Status::OK();
792
640
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE
Line
Count
Source
783
156
Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) {
784
156
    RETURN_IF_ERROR(Base::open(state));
785
156
    _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size());
786
786
    for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) {
787
630
        RETURN_IF_ERROR(
788
630
                _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i]));
789
630
    }
790
156
    RETURN_IF_ERROR(_writer->start_writer(state, operator_profile()));
791
156
    return Status::OK();
792
156
}
793
794
template <typename Writer, typename Parent>
795
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
796
90.2k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
90.2k
    return _writer->sink(block, eos);
798
90.2k
}
_ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
2.18k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
2.18k
    return _writer->sink(block, eos);
798
2.18k
}
_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
63.0k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
63.0k
    return _writer->sink(block, eos);
798
63.0k
}
_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.52k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
7.52k
    return _writer->sink(block, eos);
798
7.52k
}
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
5.35k
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
5.35k
    return _writer->sink(block, eos);
798
5.35k
}
_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
180
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
180
    return _writer->sink(block, eos);
798
180
}
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
802
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
802
    return _writer->sink(block, eos);
798
802
}
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
_ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb
Line
Count
Source
796
310
Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) {
797
310
    return _writer->sink(block, eos);
798
310
}
799
800
template <typename Writer, typename Parent>
801
    requires(std::is_base_of_v<AsyncResultWriter, Writer>)
802
66.7k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
66.7k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
66.7k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
66.7k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
66.7k
    if (_writer) {
810
66.7k
        Status st = _writer->get_writer_status();
811
66.7k
        if (exec_status.ok()) {
812
66.5k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
66.5k
                                                       : Status::Cancelled("force close"));
814
66.5k
        } else {
815
176
            _writer->force_close(exec_status);
816
176
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
66.7k
        RETURN_IF_ERROR(st);
821
66.7k
    }
822
66.6k
    return Base::close(state, exec_status);
823
66.7k
}
_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
47.2k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
47.2k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
47.2k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
47.2k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
47.2k
    if (_writer) {
810
47.2k
        Status st = _writer->get_writer_status();
811
47.2k
        if (exec_status.ok()) {
812
47.1k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
47.1k
                                                       : Status::Cancelled("force close"));
814
47.1k
        } else {
815
66
            _writer->force_close(exec_status);
816
66
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
47.2k
        RETURN_IF_ERROR(st);
821
47.2k
    }
822
47.1k
    return Base::close(state, exec_status);
823
47.2k
}
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
9.34k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
9.34k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
9.34k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
9.34k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
9.35k
    if (_writer) {
810
9.35k
        Status st = _writer->get_writer_status();
811
9.35k
        if (exec_status.ok()) {
812
9.24k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
9.24k
                                                       : Status::Cancelled("force close"));
814
9.24k
        } else {
815
106
            _writer->force_close(exec_status);
816
106
        }
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.35k
        RETURN_IF_ERROR(st);
821
9.35k
    }
822
9.34k
    return Base::close(state, exec_status);
823
9.34k
}
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE
Line
Count
Source
802
5.16k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
5.16k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
5.16k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
5.16k
    COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time());
808
    // if the init failed, the _writer may be nullptr. so here need check
809
5.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.38k
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
3.38k
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
3.38k
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
3.38k
    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.39k
    if (_writer) {
810
3.39k
        Status st = _writer->get_writer_status();
811
3.39k
        if (exec_status.ok()) {
812
3.38k
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
3.38k
                                                       : Status::Cancelled("force close"));
814
3.38k
        } else {
815
2
            _writer->force_close(exec_status);
816
2
        }
817
        // If there is an error in process_block thread, then we should get the writer
818
        // status before call force_close. For example, the thread may failed in commit
819
        // transaction.
820
3.39k
        RETURN_IF_ERROR(st);
821
3.39k
    }
822
3.38k
    return Base::close(state, exec_status);
823
3.38k
}
_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
160
Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) {
803
160
    if (_closed) {
804
0
        return Status::OK();
805
0
    }
806
160
    COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time());
807
160
    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
160
    if (_writer) {
810
160
        Status st = _writer->get_writer_status();
811
160
        if (exec_status.ok()) {
812
160
            _writer->force_close(state->is_cancelled() ? state->cancel_reason()
813
160
                                                       : Status::Cancelled("force close"));
814
160
        } 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
160
        RETURN_IF_ERROR(st);
821
160
    }
822
160
    return Base::close(state, exec_status);
823
160
}
_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