Skip to content
Merged
Prev Previous commit
Next Next commit
configure PackingIterator
  • Loading branch information
kevinjqliu committed Mar 9, 2024
commit f92de1a1af2f71e7a2058acb7457b265ca14f75c
4 changes: 2 additions & 2 deletions pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,9 +1777,9 @@ def bin_pack_arrow_table(tbl: pa.Table, target_file_size: int) -> Iterator[List[
bin_packed_record_batches = PackingIterator(
items=batches,
target_weight=target_file_size,
lookback=2,
lookback=len(batches), # ignore lookback
weight_func=lambda x: x.nbytes,
largest_bin_first=True,
largest_bin_first=False,
)
return bin_packed_record_batches

Expand Down