anoopj commented on code in PR #19266:
URL: https://github.com/apache/iceberg/pull/19266#discussion_r4806829406


##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -194,6 +194,12 @@ private Function<TrackedFile, TrackedFile> 
applyInheritance() {
       };
     }
 
+    Long snapshotTimestampMicros = manifest.snapshotTimestampMicros();
+    Preconditions.checkArgument(
+        snapshotTimestampMicros != null,
+        "Invalid snapshot timestamp for committed manifest %s: null",
+        manifest.path());

Review Comment:
   Since this class is used for reading root manifest also, this means that the 
implementation is more lenient than the spec. ie  it allows inheritance from 
snapshot -> root manifest also. (`RootManifestFile` is getting the snapshot 
time) 
   
   I don't see a big problem with it because technically this only has an 
impact on malformed writers producing root entries with `NULL` values, but I 
just wanted to call out this deviation from the spec. 



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