File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -404,15 +404,15 @@ def get_data_files_count(identifier: str) -> int:
404
404
405
405
# writes multiple data files once target file size is overridden
406
406
target_file_size = arrow_table_with_null .nbytes
407
- tbl = tbl .transaction ().set_properties ({TableProperties .WRITE_TARGET_FILE_SIZE_BYTES : str ( target_file_size ) }).commit_transaction ()
407
+ tbl = tbl .transaction ().set_properties ({TableProperties .WRITE_TARGET_FILE_SIZE_BYTES : target_file_size }).commit_transaction ()
408
408
assert str (target_file_size ) == tbl .properties .get (TableProperties .WRITE_TARGET_FILE_SIZE_BYTES )
409
409
assert target_file_size < bigger_arrow_tbl .nbytes
410
410
tbl .overwrite (bigger_arrow_tbl )
411
411
assert get_data_files_count (identifier ) == 10
412
412
413
413
# writes half the number of data files when target file size doubles
414
414
target_file_size = arrow_table_with_null .nbytes * 2
415
- tbl = tbl .transaction ().set_properties ({TableProperties .WRITE_TARGET_FILE_SIZE_BYTES : str ( target_file_size ) }).commit_transaction ()
415
+ tbl = tbl .transaction ().set_properties ({TableProperties .WRITE_TARGET_FILE_SIZE_BYTES : target_file_size }).commit_transaction ()
416
416
assert str (target_file_size ) == tbl .properties .get (TableProperties .WRITE_TARGET_FILE_SIZE_BYTES )
417
417
assert target_file_size < bigger_arrow_tbl .nbytes
418
418
tbl .overwrite (bigger_arrow_tbl )
You can’t perform that action at this time.
0 commit comments