amogh-jahagirdar commented on code in PR #19019:
URL: https://github.com/apache/iceberg/pull/19019#discussion_r4727910372


##########
core/src/main/java/org/apache/iceberg/TrackingStruct.java:
##########
@@ -39,6 +39,7 @@ class TrackingStruct extends SupportsIndexProjection 
implements Tracking, Serial
           Tracking.FIRST_ROW_ID,
           Tracking.DELETED_POSITIONS,
           Tracking.REPLACED_POSITIONS,
+          Tracking.SNAPSHOT_TIMESTAMP,

Review Comment:
   I'd add it to SCAN_TYPE in the next PR where timestamps actually get 
populated. I think this PR should be focused on the schema, interface, and 
struct changes, and since nothing populates the timestamp yet, there's nothing 
for the scan path to read. Also don't think we need to test across Avro and 
Parquet for this, the projection is format agnostic (and in v4 anyways is only 
parquet).



##########
core/src/main/java/org/apache/iceberg/RootManifestFile.java:
##########
@@ -42,6 +43,7 @@ static RootManifestFile from(Snapshot snapshot, String 
tableLocation, FileIO io)
         io.newInputFile(location).getLength(),
         snapshot.snapshotId(),
         snapshot.sequenceNumber(),
+        TimeUnit.MILLISECONDS.toMicros(snapshot.timestampMillis()),

Review Comment:
   +1 to verifying millis to micros conversion behavior but we probably 
shouldn't put it in `fromResolvesRelativeRootLocation` though, since that test 
is about verifying location resolution behavior. I think we should just add 
separate test like `fromConvertsSnapshotTimestampToMicros` that stubs 
`timestampMillis()` and checks `snapshotTimestampMicros()`?



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