pvary commented on code in PR #12550: URL: https://github.com/apache/iceberg/pull/12550#discussion_r1998295651
########## data/src/main/java/org/apache/iceberg/data/PartitionStatsHandler.java: ########## @@ -61,30 +61,29 @@ public class PartitionStatsHandler { private PartitionStatsHandler() {} - public enum Column { - PARTITION(0), - SPEC_ID(1), - DATA_RECORD_COUNT(2), - DATA_FILE_COUNT(3), - TOTAL_DATA_FILE_SIZE_IN_BYTES(4), - POSITION_DELETE_RECORD_COUNT(5), - POSITION_DELETE_FILE_COUNT(6), - EQUALITY_DELETE_RECORD_COUNT(7), - EQUALITY_DELETE_FILE_COUNT(8), - TOTAL_RECORD_COUNT(9), - LAST_UPDATED_AT(10), - LAST_UPDATED_SNAPSHOT_ID(11); - - private final int id; - - Column(int id) { - this.id = id; - } - - public int id() { - return id; - } - } + public static final int PARTITION_FIELD_ID = 0; Review Comment: Why is this starting with 0? In the previous code the id was started with 1 -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org