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


##########
core/src/main/java/org/apache/iceberg/PartitionStatsHandler.java:
##########
@@ -495,7 +495,9 @@ static void appendStats(PartitionStatistics targetStats, 
PartitionStatistics inp
         PartitionStatistics.EQUALITY_DELETE_FILE_COUNT_POSITION,
         targetStats.equalityDeleteFileCount() + 
inputStats.equalityDeleteFileCount());
 
-    if (inputStats.dvCount() != null) {
+    // For backward compatibility, for V2 tables we have to check that the 
position of dv_count is
+    // within the schema of the stats file.

Review Comment:
   @pvary this is the workaround we talked about to avoid 
IndexOutOfBoundException when targetStats has V2 schema while inputStats has 
dv_count always initialized to zero



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