Skip to content

Commit d80054d

Browse files
committed
set int property
1 parent c6cb8de commit d80054d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_writes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,15 @@ def get_data_files_count(identifier: str) -> int:
404404

405405
# writes multiple data files once target file size is overridden
406406
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()
408408
assert str(target_file_size) == tbl.properties.get(TableProperties.WRITE_TARGET_FILE_SIZE_BYTES)
409409
assert target_file_size < bigger_arrow_tbl.nbytes
410410
tbl.overwrite(bigger_arrow_tbl)
411411
assert get_data_files_count(identifier) == 10
412412

413413
# writes half the number of data files when target file size doubles
414414
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()
416416
assert str(target_file_size) == tbl.properties.get(TableProperties.WRITE_TARGET_FILE_SIZE_BYTES)
417417
assert target_file_size < bigger_arrow_tbl.nbytes
418418
tbl.overwrite(bigger_arrow_tbl)

0 commit comments

Comments
 (0)