apache / iceberg-python

Apache PyIceberg
https://py.iceberg.apache.org/
Apache License 2.0
309 stars 114 forks source link

Disallow writing empty Avro files/blocks #876

Open Fokko opened 2 days ago

Fokko commented 2 days ago

This is a bit opinionated, but with this PR we're raising an exception when writing an empty Avro file or a block. This might look extreme, but there is no real good reason to allow this.

Noticed this while going over Honah's awesome work in https://github.com/apache/iceberg-python/pull/363