rdblue commented on code in PR #6799: URL: https://github.com/apache/iceberg/pull/6799#discussion_r1111314373
########## core/src/main/java/org/apache/iceberg/ManifestWriter.java: ########## @@ -52,20 +52,38 @@ private long deletedRows = 0L; private Long minDataSequenceNumber = null; - private ManifestWriter(PartitionSpec spec, OutputFile file, Long snapshotId) { + private ManifestWriter( + PartitionSpec spec, + OutputFile file, + Long snapshotId, + String compressionCodec, + Integer compressionLevel) { this.file = file; this.specId = spec.specId(); - this.writer = newAppender(spec, file); + this.writer = newAppender(spec, file, compressionCodec, compressionLevel); this.snapshotId = snapshotId; this.reused = new GenericManifestEntry<>(spec.partitionType()); this.stats = new PartitionSummary(spec); } protected abstract ManifestEntry<F> prepare(ManifestEntry<F> entry); + /** + * @deprecated since 1.2.0, will be removed in 1.3.0; use {@link + * ManifestWriter#newAppender(PartitionSpec, OutputFile, String, Integer)} instead. + */ + @Deprecated Review Comment: Why remove this? I don't think it makes sense to force people to set compression and level. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org