8888public abstract class CatalogTests <C extends Catalog & SupportsNamespaces > {
8989 private static final String BASE_TABLE_LOCATION = "file:/tmp" ;
9090 protected static final Namespace NS = Namespace .of ("newdb" );
91- public static final TableIdentifier TABLE = TableIdentifier .of (NS , "newtable" );
91+ protected static final TableIdentifier TABLE = TableIdentifier .of (NS , "newtable" );
9292 protected static final TableIdentifier RENAMED_TABLE = TableIdentifier .of (NS , "table_renamed" );
9393 protected static final TableIdentifier TBL = TableIdentifier .of ("ns" , "tbl" );
9494
@@ -115,8 +115,7 @@ public abstract class CatalogTests<C extends Catalog & SupportsNamespaces> {
115115 new Schema (required (1 , "some_id" , Types .IntegerType .get ()));
116116
117117 // Partition spec used to create tables
118- public static final PartitionSpec SPEC =
119- PartitionSpec .builderFor (SCHEMA ).bucket ("id" , 16 ).build ();
118+ static final PartitionSpec SPEC = PartitionSpec .builderFor (SCHEMA ).bucket ("id" , 16 ).build ();
120119
121120 protected static final PartitionSpec TABLE_SPEC =
122121 PartitionSpec .builderFor (TABLE_SCHEMA ).bucket ("id" , 16 ).build ();
@@ -150,7 +149,7 @@ public abstract class CatalogTests<C extends Catalog & SupportsNamespaces> {
150149 .withRecordCount (2 ) // needs at least one record or else metrics will filter it out
151150 .build ();
152151
153- public static final DataFile FILE_C =
152+ static final DataFile FILE_C =
154153 DataFiles .builder (SPEC )
155154 .withPath ("/path/to/data-c.parquet" )
156155 .withFileSizeInBytes (10 )
@@ -159,7 +158,7 @@ public abstract class CatalogTests<C extends Catalog & SupportsNamespaces> {
159158 .build ();
160159
161160 // Delete files for testing
162- public static final DeleteFile FILE_A_DELETES =
161+ static final DeleteFile FILE_A_DELETES =
163162 FileMetadata .deleteFileBuilder (SPEC )
164163 .ofPositionDeletes ()
165164 .withPath ("/path/to/data-a-deletes.parquet" )
@@ -168,16 +167,7 @@ public abstract class CatalogTests<C extends Catalog & SupportsNamespaces> {
168167 .withRecordCount (1 )
169168 .build ();
170169
171- public static final DeleteFile FILE_A_EQUALITY_DELETES =
172- FileMetadata .deleteFileBuilder (SPEC )
173- .ofEqualityDeletes (1 ) // delete on column 1 (id column)
174- .withPath ("/path/to/data-a-equality-deletes.parquet" )
175- .withFileSizeInBytes (10 )
176- .withPartitionPath ("id_bucket=0" ) // same partition as FILE_A
177- .withRecordCount (1 )
178- .build ();
179-
180- public static final DeleteFile FILE_B_DELETES =
170+ static final DeleteFile FILE_B_DELETES =
181171 FileMetadata .deleteFileBuilder (SPEC )
182172 .ofPositionDeletes ()
183173 .withPath ("/path/to/data-b-deletes.parquet" )
@@ -186,24 +176,6 @@ public abstract class CatalogTests<C extends Catalog & SupportsNamespaces> {
186176 .withRecordCount (1 )
187177 .build ();
188178
189- public static final DeleteFile FILE_B_EQUALITY_DELETES =
190- FileMetadata .deleteFileBuilder (SPEC )
191- .ofEqualityDeletes (1 ) // delete on column 1 (id column)
192- .withPath ("/path/to/data-b-equality-deletes.parquet" )
193- .withFileSizeInBytes (10 )
194- .withPartitionPath ("id_bucket=1" ) // same partition as FILE_B
195- .withRecordCount (1 )
196- .build ();
197-
198- public static final DeleteFile FILE_C_EQUALITY_DELETES =
199- FileMetadata .deleteFileBuilder (SPEC )
200- .ofEqualityDeletes (1 ) // delete on column 1 (id column)
201- .withPath ("/path/to/data-c-equality-deletes.parquet" )
202- .withFileSizeInBytes (10 )
203- .withPartitionPath ("id_bucket=2" ) // same partition as FILE_C
204- .withRecordCount (1 )
205- .build ();
206-
207179 protected abstract C catalog ();
208180
209181 protected abstract C initCatalog (String catalogName , Map <String , String > additionalProperties );
0 commit comments