smaheshwar-pltr opened a new issue, #16797: URL: https://github.com/apache/iceberg/issues/16797
### Feature Request / Improvement `write.metadata.previous-versions-max` is currently floored to 1: https://github.com/apache/iceberg/blob/70b90330582e4023a097330620a3e63746b2375b/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1801-L1807 so a table always retains at least one previous metadata file in the `metadata-log`. I was a bit confused by this, because I don't see a concrete reason to disallow _empty_ metadata logs; I'd therefore like to know what folks think about permitting a value of 0 instead to enable this. With [`write.metadata.delete-after-commit.enabled=true`](https://iceberg.apache.org/docs/latest/maintenance/#remove-old-metadata-files), this would then delete the superseded metadata file on every commit. ### Query engine None ### Willingness to contribute - [x] I can contribute this improvement/feature independently - [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community - [ ] I cannot contribute this improvement/feature at this time -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
