File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,10 @@ impl CachingDeleteFileManager {
359
359
) -> Result < HashMap < String , DeleteVector > > {
360
360
// TODO
361
361
362
- Ok ( HashMap :: default ( ) )
362
+ Err ( Error :: new (
363
+ ErrorKind :: FeatureUnsupported ,
364
+ "parsing of positional deletes is not yet supported" ,
365
+ ) )
363
366
}
364
367
365
368
/// Parses record batch streams from individual equality delete files
@@ -370,7 +373,10 @@ impl CachingDeleteFileManager {
370
373
) -> Result < Predicate > {
371
374
// TODO
372
375
373
- Ok ( AlwaysTrue )
376
+ Err ( Error :: new (
377
+ ErrorKind :: FeatureUnsupported ,
378
+ "parsing of equality deletes is not yet supported" ,
379
+ ) )
374
380
}
375
381
376
382
/// Builds eq delete predicate for the provided task.
@@ -471,15 +477,16 @@ mod tests {
471
477
. unwrap ( ) ;
472
478
473
479
// Note that with the delete file parsing not yet in place, all we can test here is that
474
- // the call to the loader does not fail .
480
+ // the call to the loader fails with the expected FeatureUnsupportedError .
475
481
let delete_file_manager = CachingDeleteFileManager :: new ( file_io. clone ( ) , 10 ) ;
476
482
477
483
let file_scan_tasks = setup ( table_location) ;
478
484
479
- delete_file_manager
485
+ let result = delete_file_manager
480
486
. load_deletes ( & file_scan_tasks[ 0 ] . deletes )
481
- . await
482
- . unwrap ( ) ;
487
+ . await ;
488
+
489
+ assert ! ( result. is_err_and( |e| e. kind( ) == ErrorKind :: FeatureUnsupported ) ) ;
483
490
}
484
491
485
492
fn setup ( table_location : & Path ) -> Vec < FileScanTask > {
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ impl ArrowReader {
307
307
if let Some ( positional_delete_indexes) = positional_delete_indexes {
308
308
let delete_row_selection = {
309
309
let positional_delete_indexes = positional_delete_indexes. read ( ) . unwrap ( ) ;
310
-
310
+
311
311
Self :: build_deletes_row_selection (
312
312
record_batch_stream_builder. metadata ( ) . row_groups ( ) ,
313
313
& selected_row_group_indices,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl DeleteVector {
39
39
DeleteVectorIterator { outer, inner : None }
40
40
}
41
41
42
- pub fn intersect_assign ( & mut self , other : & DeleteVector ) {
42
+ pub ( crate ) fn intersect_assign ( & mut self , other : & DeleteVector ) {
43
43
self . inner . bitor_assign ( & other. inner ) ;
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments