Skip to content

Commit ad54850

Browse files
committed
change variable names
1 parent b794ca8 commit ad54850

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyiceberg/io/pyarrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,8 +1766,8 @@ def bin_pack_arrow_table(tbl: pa.Table, target_file_size: int) -> Iterator[List[
17661766
from pyiceberg.utils.bin_packing import PackingIterator
17671767

17681768
avg_row_size_bytes = tbl.nbytes / tbl.num_rows
1769-
max_chunksize = target_file_size // avg_row_size_bytes
1770-
batches = tbl.to_batches(max_chunksize)
1769+
target_rows_per_file = target_file_size // avg_row_size_bytes
1770+
batches = tbl.to_batches(max_chunksize=target_rows_per_file)
17711771
bin_packed_record_batches = PackingIterator(
17721772
items=batches,
17731773
target_weight=target_file_size,

0 commit comments

Comments
 (0)