From 1082465fb32192a28931680e8a8018882d2917b6 Mon Sep 17 00:00:00 2001 From: chinmay-bhat <12948588+chinmay-bhat@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:54:42 +0530 Subject: [PATCH] set tempDir protected when used in a subclass --- .../iceberg/spark/source/TestIcebergSourceTablesBase.java | 2 +- .../org/apache/iceberg/spark/source/TestReadProjection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java b/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java index 7fd1649df759..4a03b93e6d3c 100644 --- a/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java +++ b/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java @@ -117,7 +117,7 @@ public abstract class TestIcebergSourceTablesBase extends TestBase { private static final PartitionSpec SPEC = PartitionSpec.builderFor(SCHEMA).identity("id").build(); - @TempDir private Path temp; + @TempDir protected Path temp; public abstract Table createTable( TableIdentifier ident, Schema schema, PartitionSpec spec, Map properties); diff --git a/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestReadProjection.java b/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestReadProjection.java index ce0edba8d516..d5156a0d8fac 100644 --- a/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestReadProjection.java +++ b/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestReadProjection.java @@ -50,7 +50,7 @@ public abstract class TestReadProjection { protected abstract Record writeAndRead( String desc, Schema writeSchema, Schema readSchema, Record record) throws IOException; - @TempDir private Path temp; + @TempDir protected Path temp; @Test public void testFullProjection() throws Exception {