pvary commented on code in PR #8803: URL: https://github.com/apache/iceberg/pull/8803#discussion_r1389360789
########## core/src/main/java/org/apache/iceberg/BaseFile.java: ########## @@ -185,13 +190,25 @@ public PartitionData copy() { this.partitionType = toCopy.partitionType; this.recordCount = toCopy.recordCount; this.fileSizeInBytes = toCopy.fileSizeInBytes; - if (fullCopy) { - this.columnSizes = SerializableMap.copyOf(toCopy.columnSizes); - this.valueCounts = SerializableMap.copyOf(toCopy.valueCounts); - this.nullValueCounts = SerializableMap.copyOf(toCopy.nullValueCounts); - this.nanValueCounts = SerializableMap.copyOf(toCopy.nanValueCounts); - this.lowerBounds = SerializableByteBufferMap.wrap(SerializableMap.copyOf(toCopy.lowerBounds)); - this.upperBounds = SerializableByteBufferMap.wrap(SerializableMap.copyOf(toCopy.upperBounds)); + if (copyStats) { Review Comment: Had to move the proposed `SerializableMap` changes back to the `BaseFile` to avoid changing the default serialization of the `SerializableMap`: ``` * Just this break: ./gradlew :iceberg-core:revapiAcceptBreak --justification "{why this break is ok}" \ --code "java.class.defaultSerializationChanged" \ --old "class org.apache.iceberg.util.SerializableMap<K extends java.lang.Object, V extends java.lang.Object>" \ --new "class org.apache.iceberg.util.SerializableMap<K extends java.lang.Object, V extends java.lang.Object>" ``` -- 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