rdblue commented on code in PR #6799:
URL: https://github.com/apache/iceberg/pull/6799#discussion_r1111315347
##########
core/src/test/java/org/apache/iceberg/TableTestBase.java:
##########
@@ -307,6 +353,30 @@ ManifestFile writeDeleteManifest(int newFormatVersion,
Long snapshotId, DeleteFi
return writer.toManifestFile();
}
+ InputFile writeManifestList(String compressionCodec, ManifestFile...
manifestFiles)
+ throws IOException {
+ File manifestListFile = temp.newFile();
+ Assert.assertTrue(manifestListFile.delete());
+ OutputFile outputFile =
+ org.apache.iceberg.Files.localOutput(
+ FileFormat.AVRO.addExtension(manifestListFile.toString()));
+
+ try (FileAppender<ManifestFile> writer =
+ ManifestLists.write(
+ formatVersion,
+ outputFile,
+ SNAPSHOT_ID,
+ SNAPSHOT_ID - 1,
+ formatVersion > 1 ? 34L : 0,
+ compressionCodec,
+ /* compressionLevel */ null)) {
+ for (ManifestFile manifestFile : manifestFiles) {
+ writer.add(manifestFile);
+ }
+ }
+ return outputFile.toInputFile();
Review Comment:
Style: there should be an empty newline between a control flow block and the
following statement.
--
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]