You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by si...@apache.org on 2026/07/01 20:08:22 UTC

(iceberg) branch main updated: Core: Remove unused TestTrackedFileStruct.CONTENT_STATS_ORDINAL (#17031)

This is an automated email from the ASF dual-hosted git repository.

singhpk234 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new 41113b1f69 Core: Remove unused TestTrackedFileStruct.CONTENT_STATS_ORDINAL (#17031)
41113b1f69 is described below

commit 41113b1f691d34a7b62c933e2303836c029f2142
Author: gaborkaszab <ga...@gmail.com>
AuthorDate: Wed Jul 1 22:08:13 2026 +0200

    Core: Remove unused TestTrackedFileStruct.CONTENT_STATS_ORDINAL (#17031)
---
 core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java b/core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java
index 8e0d5c0682..c3391bcbbe 100644
--- a/core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java
+++ b/core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java
@@ -49,10 +49,7 @@ class TestTrackedFileStruct {
   private static final int FILE_SIZE_IN_BYTES_ORDINAL =
       SCHEMA_FIELDS.indexOf(TrackedFile.FILE_SIZE_IN_BYTES);
   private static final int SPEC_ID_ORDINAL = SCHEMA_FIELDS.indexOf(TrackedFile.SPEC_ID);
-  // partition and content_stats are rebuilt with the supplied struct types inside
-  // schemaWithContentStats, so their ordinals are looked up by field ID.
   private static final int PARTITION_ORDINAL = ordinalOf(TrackedFile.PARTITION_ID);
-  private static final int CONTENT_STATS_ORDINAL = ordinalOf(TrackedFile.CONTENT_STATS_ID);
   private static final int SORT_ORDER_ID_ORDINAL = SCHEMA_FIELDS.indexOf(TrackedFile.SORT_ORDER_ID);
   private static final int DELETION_VECTOR_ORDINAL =
       SCHEMA_FIELDS.indexOf(TrackedFile.DELETION_VECTOR);