Use the finer grained reading and writing example for the pyarrow documentation
writer = pq.ParquetWriter('example2.parquet', table.schema)
for i in range(300000):
writer.write_table(table)
# Is it possible to know how many bytes have been written out to the files after compression?
writer.close()
I want to limit the output file size to 200-300MB, If tried to get the writer.file_handle.size() but that raises a *** OSError: only valid on readable files. Is there a good way to limit the size the output file?