tomtongue commented on code in PR #10663:
URL: https://github.com/apache/iceberg/pull/10663#discussion_r1670611096
##########
flink/v1.17/flink/src/test/java/org/apache/iceberg/flink/source/reader/ReaderFunctionTestBase.java:
##########
@@ -49,19 +52,18 @@ public static Object[][] parameters() {
};
}
- @ClassRule public static final TemporaryFolder TEMPORARY_FOLDER = new
TemporaryFolder();
+ @TempDir protected Path temporaryFolder;
protected abstract ReaderFunction<T> readerFunction();
protected abstract void assertRecords(List<Record> expected, List<T> actual,
Schema schema);
- private final FileFormat fileFormat;
- private final GenericAppenderFactory appenderFactory;
+ @Parameter(index = 0)
+ private FileFormat fileFormat;
- public ReaderFunctionTestBase(FileFormat fileFormat) {
- this.fileFormat = fileFormat;
- this.appenderFactory = new GenericAppenderFactory(TestFixtures.SCHEMA);
- }
+ @Parameter(index = 1)
Review Comment:
Yes, the parameterization isn't needed here. Fix all the versions.
--
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]