rdblue commented on a change in pull request #2343:
URL: https://github.com/apache/iceberg/pull/2343#discussion_r597901399



##########
File path: core/src/main/java/org/apache/iceberg/BaseFile.java
##########
@@ -309,17 +306,17 @@ public Object get(int i) {
       case 5:
         return fileSizeInBytes;
       case 6:
-        return columnSizes;
+        return toReadableMap(columnSizes);
       case 7:
-        return valueCounts;
+        return toReadableMap(valueCounts);
       case 8:
-        return nullValueCounts;
+        return toReadableMap(nullValueCounts);
       case 9:
-        return nanValueCounts;
+        return toReadableMap(nanValueCounts);
       case 10:
-        return lowerBounds;
+        return toReadableMap(lowerBounds);
       case 11:
-        return upperBounds;
+        return toReadableMap(upperBounds);

Review comment:
       I don't think we need to use `toReadableMap` in this method because it 
is only used for serialization. We don't expose the Avro methods publicly, so 
we only need the unmodifiable maps to be returned by the `ContentFile` accessor 
methods.




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

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