Skip to content

Commit

Permalink
Revert "use List<Object[]> for parameters()"
Browse files Browse the repository at this point in the history
This reverts commit ade28f5.
  • Loading branch information
chinmay-bhat committed Jan 15, 2024
1 parent ade28f5 commit c1d2008
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public abstract class DeleteFileIndexTestBase<
extends TestBase {

@Parameters(name = "formatVersion = {0}")
public static List<Object[]> parameters() {
return Arrays.asList(new Object[][] {{2}});
public static List<Object> parameters() {
return Arrays.asList(new Object[] {2});
}

static final DeleteFile FILE_A_POS_1 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public abstract class ScanPlanningAndReportingTestBase<
private final TestMetricsReporter reporter = new TestMetricsReporter();

@Parameters(name = "formatVersion = {0}")
public static List<Object[]> parameters() {
return Arrays.asList(new Object[][] {{2}});
public static List<Object> parameters() {
return Arrays.asList(new Object[] {2});
}

protected abstract ScanT newScan(Table table);
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/java/org/apache/iceberg/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public class TestBase {
public TestTables.TestTable table = null;

@Parameters(name = "formatVersion = {0}")
protected static List<Object[]> parameters() {
protected static List<Object> parameters() {
return Arrays.asList(new Object[] {1}, new Object[] {2});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class TestLocalFilterFiles
extends FilterFilesTestBase<TableScan, FileScanTask, CombinedScanTask> {

@Parameters(name = "formatVersion = {0}")
public static List<Object[]> parameters() {
public static List<Object> parameters() {
return Arrays.asList(new Object[] {1}, new Object[] {2});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class TestGenericSortedPosDeleteWriter extends TestBase {
private Record gRecord;

@Parameters(name = "formatVersion = {0}, fileFormat = {1}")
public static List<Object[]> parameters() {
public static List<Object> parameters() {
return Arrays.asList(
new Object[] {FORMAT_V2, FileFormat.AVRO},
new Object[] {FORMAT_V2, FileFormat.ORC},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class SparkDistributedDataScanTestBase
extends DataTableScanTestBase<BatchScan, ScanTask, ScanTaskGroup<ScanTask>> {

@Parameters(name = "formatVersion = {0}, dataMode = {1}, deleteMode = {2}")
public static List<Object[]> parameters() {
public static List<Object> parameters() {
return Arrays.asList(
new Object[] {1, LOCAL, LOCAL},
new Object[] {1, LOCAL, DISTRIBUTED},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class TestSparkDistributedDataScanDeletes
extends DeleteFileIndexTestBase<BatchScan, ScanTask, ScanTaskGroup<ScanTask>> {

@Parameters(name = "formatVersion = {0}, dataMode = {1}, deleteMode = {2}")
public static List<Object[]> parameters() {
public static List<Object> parameters() {
return Arrays.asList(
new Object[] {2, LOCAL, LOCAL},
new Object[] {2, LOCAL, DISTRIBUTED},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TestSparkDistributedDataScanReporting
extends ScanPlanningAndReportingTestBase<BatchScan, ScanTask, ScanTaskGroup<ScanTask>> {

@Parameters(name = "formatVersion = {0}, dataMode = {1}, deleteMode = {2}")
public static List<Object[]> parameters() {
public static List<Object> parameters() {
return Arrays.asList(
new Object[] {2, LOCAL, LOCAL},
new Object[] {2, LOCAL, DISTRIBUTED},
Expand Down

0 comments on commit c1d2008

Please sign in to comment.