smaheshwar-pltr opened a new pull request, #16796: URL: https://github.com/apache/iceberg/pull/16796
Previously the property was silently floored to 1 via Math.max(1, ...) in TableMetadata.addPreviousFile, so the metadata log always retained at least one previous metadata file. Allow a value of 0, meaning no previous metadata files are tracked (an empty metadata-log), which is permitted by the spec. To keep this coherent with write.metadata.delete-after-commit.enabled=true, CatalogUtil.deleteRemovedMetadataFiles now also deletes the just-superseded metadata file when it is no longer tracked. This is a no-op for max >= 1 (the superseded file is always re-added to the log there) and only takes effect at max = 0, where the file would otherwise be orphaned. -- 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]
