File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1415,22 +1415,22 @@ def _task_to_record_batches(
1415
1415
if current_batch .num_rows == 0 :
1416
1416
continue
1417
1417
1418
- yield _to_requested_schema (
1418
+ result_batch = _to_requested_schema (
1419
1419
projected_schema ,
1420
1420
file_project_schema ,
1421
1421
current_batch ,
1422
1422
downcast_ns_timestamp_to_us = True ,
1423
1423
use_large_types = use_large_types ,
1424
1424
)
1425
1425
1426
- # Inject projected column values if available
1427
- if should_project_columns :
1428
- for name , value in projected_missing_fields .items ():
1429
- index = result_batch .schema .get_field_index (name )
1430
- if index != - 1 :
1431
- result_batch = result_batch .set_column (index , name , [value ])
1426
+ # Inject projected column values if available
1427
+ if should_project_columns :
1428
+ for name , value in projected_missing_fields .items ():
1429
+ index = result_batch .schema .get_field_index (name )
1430
+ if index != - 1 :
1431
+ result_batch = result_batch .set_column (index , name , [value ])
1432
1432
1433
- yield result_batch
1433
+ yield result_batch
1434
1434
1435
1435
1436
1436
def _read_all_delete_files (io : FileIO , tasks : Iterable [FileScanTask ]) -> Dict [str , List [ChunkedArray ]]:
You can’t perform that action at this time.
0 commit comments