anoopj commented on code in PR #18108:
URL: https://github.com/apache/iceberg/pull/18108#discussion_r4161543200
##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -161,6 +165,19 @@ private TrackedFile applyInheritance(TrackedFile file) {
return file;
}
+ private TrackedFile projectPartition(TrackedFile file) {
+ Integer specId = file.specId();
+ StructProjection projection = specId != null ?
partitionProjections.get(specId) : null;
+ TrackedFileStruct struct = (TrackedFileStruct) file;
+ if (specId != null && projection == null) {
Review Comment:
Good catch. Yes we only want to clear the partition when the spec ID isn't
in the map at all. I switched to `containsKey` rather than relying on `null`.
--
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]