gaborkaszab commented on code in PR #17144:
URL: https://github.com/apache/iceberg/pull/17144#discussion_r3556939701


##########
core/src/test/java/org/apache/iceberg/TestTrackedFileAdapters.java:
##########
@@ -59,40 +59,41 @@ class TestTrackedFileAdapters {
           .build();
   private static final PartitionData PARTITION = partition("books");
 
-  // Tracking field ordinals, looked up from the schema so the tests do not 
hard-code offsets.
-  private static final int DATA_SEQUENCE_NUMBER_ORDINAL =
-      ordinalOf(Tracking.schema(), "sequence_number");
-  private static final int FILE_SEQUENCE_NUMBER_ORDINAL =
-      ordinalOf(Tracking.schema(), "file_sequence_number");
-  private static final int FIRST_ROW_ID_ORDINAL = ordinalOf(Tracking.schema(), 
"first_row_id");
-  // manifestPos is appended after the tracking schema fields by the manifest 
reader.
   private static final int MANIFEST_POS_ORDINAL = 
Tracking.schema().fields().size();
 
-  // TrackedFile optional field ordinals, looked up from the schema.
-  private static final Types.StructType TRACKED_FILE_SCHEMA =
-      TrackedFile.schemaWithContentStats(Types.StructType.of(), 
Types.StructType.of());
-  private static final int CONTENT_TYPE_ORDINAL = 
ordinalOf(TRACKED_FILE_SCHEMA, "content_type");
-  private static final int SPEC_ID_ORDINAL = ordinalOf(TRACKED_FILE_SCHEMA, 
"spec_id");
-  private static final int DELETION_VECTOR_ORDINAL =
-      ordinalOf(TRACKED_FILE_SCHEMA, "deletion_vector");
-
   @Test
   void testDataFileAdapterDelegation() {
+    TrackingStruct tracking =
+        new TrackingStruct(

Review Comment:
   First let's see if @stevenzwu 's [wrapper 
PR](https://github.com/apache/iceberg/pull/16936) could leverage 
`TrackingBuilder`. If not, we can drop it.



-- 
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]

Reply via email to