attilakreiner commented on code in PR #10657:
URL: https://github.com/apache/iceberg/pull/10657#discussion_r1668929997
##########
data/src/test/java/org/apache/iceberg/TestMergingMetrics.java:
##########
@@ -110,22 +110,17 @@ public abstract class TestMergingMetrics<T> {
MAP_FIELD_2,
STRUCT_FIELD);
- protected final FileFormat fileFormat;
-
- @Parameterized.Parameters(name = "fileFormat = {0}")
- public static Object[] parameters() {
- return new Object[] {FileFormat.PARQUET, FileFormat.ORC};
- }
+ protected abstract FileAppender<T> writeAndGetAppender(List<Record> records)
throws Exception;
- public TestMergingMetrics(FileFormat fileFormat) {
- this.fileFormat = fileFormat;
+ @Parameters(name = "fileFormat = {0}")
+ public static Collection<FileFormat> parameters() {
Review Comment:
It looks to me that most places in the code that have already been converted
to Junit 5 use the signature
```
@Parameters(...)
private static List<Object> parameters() {...}
```
The old signature with `Object[]` doesn't seem to work with Junit 5.
I updated all my changes to return `List<Object>` to match the rest of the
code. Pls LMK if that's OK.
--
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]