@@ -28,12 +28,10 @@ use databend_common_sql::IndexType;
28
28
use crate :: pipelines:: processors:: transforms:: range_join:: RangeJoinState ;
29
29
use crate :: pipelines:: processors:: transforms:: range_join:: TransformRangeJoinLeft ;
30
30
use crate :: pipelines:: processors:: transforms:: range_join:: TransformRangeJoinRight ;
31
- use crate :: pipelines:: processors:: transforms:: BuildSpillState ;
32
31
use crate :: pipelines:: processors:: transforms:: HashJoinBuildState ;
33
32
use crate :: pipelines:: processors:: transforms:: HashJoinProbeState ;
34
33
use crate :: pipelines:: processors:: transforms:: MaterializedCteSink ;
35
34
use crate :: pipelines:: processors:: transforms:: MaterializedCteState ;
36
- use crate :: pipelines:: processors:: transforms:: ProbeSpillState ;
37
35
use crate :: pipelines:: processors:: transforms:: TransformHashJoinBuild ;
38
36
use crate :: pipelines:: processors:: transforms:: TransformHashJoinProbe ;
39
37
use crate :: pipelines:: processors:: HashJoinDesc ;
@@ -161,19 +159,9 @@ impl PipelineBuilder {
161
159
) ?;
162
160
163
161
let create_sink_processor = |input| {
164
- let spill_state = if join_state. enable_spill {
165
- Some ( Box :: new ( BuildSpillState :: create (
166
- self . ctx . clone ( ) ,
167
- build_state. clone ( ) ,
168
- ) ?) )
169
- } else {
170
- None
171
- } ;
172
-
173
162
Ok ( ProcessorPtr :: create ( TransformHashJoinBuild :: try_create (
174
163
input,
175
164
build_state. clone ( ) ,
176
- spill_state,
177
165
) ?) )
178
166
} ;
179
167
// for distributed merge into when source as build side.
@@ -192,7 +180,6 @@ impl PipelineBuilder {
192
180
193
181
let max_block_size = self . settings . get_max_block_size ( ) ? as usize ;
194
182
let barrier = Barrier :: new ( self . main_pipeline . output_len ( ) ) ;
195
- let restore_barrier = Barrier :: new ( self . main_pipeline . output_len ( ) ) ;
196
183
let probe_state = Arc :: new ( HashJoinProbeState :: create (
197
184
self . ctx . clone ( ) ,
198
185
self . func_ctx . clone ( ) ,
@@ -203,29 +190,18 @@ impl PipelineBuilder {
203
190
& join. join_type ,
204
191
self . main_pipeline . output_len ( ) ,
205
192
barrier,
206
- restore_barrier,
207
193
) ?) ;
208
194
let mut has_string_column = false ;
209
195
for field in join. output_schema ( ) ?. fields ( ) {
210
196
has_string_column |= field. data_type ( ) . is_string_column ( ) ;
211
197
}
212
198
213
199
self . main_pipeline . add_transform ( |input, output| {
214
- let probe_spill_state = if state. enable_spill {
215
- Some ( Box :: new ( ProbeSpillState :: create (
216
- self . ctx . clone ( ) ,
217
- probe_state. clone ( ) ,
218
- ) ?) )
219
- } else {
220
- None
221
- } ;
222
-
223
200
Ok ( ProcessorPtr :: create ( TransformHashJoinProbe :: create (
224
201
input,
225
202
output,
226
203
join. projections . clone ( ) ,
227
204
probe_state. clone ( ) ,
228
- probe_spill_state,
229
205
max_block_size,
230
206
self . func_ctx . clone ( ) ,
231
207
& join. join_type ,
0 commit comments