Skip to content

Commit

Permalink
close parquet writer (huggingface#4081)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq committed Apr 1, 2022
1 parent 3e1086b commit 763ae47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datasets/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@ def _write(self, file_obj: BinaryIO, batch_size: int, **parquet_writer_kwargs) -
)
writer.write_table(batch)
written += batch.nbytes
writer.close()
return written

0 comments on commit 763ae47

Please sign in to comment.