prodeezy commented on a change in pull request #695: [WIP] Cherrypick snapshot 
feature
URL: https://github.com/apache/incubator-iceberg/pull/695#discussion_r367642262
 
 

 ##########
 File path: api/src/main/java/org/apache/iceberg/ManageSnapshots.java
 ##########
 @@ -48,6 +58,7 @@
    * @return this for method chaining
    * @throws IllegalArgumentException If the table has no old snapshot before 
the given timestamp
    */
-  Rollback toSnapshotAtTime(long timestampMillis);
+  ManageSnapshots rollbackAtTime(long timestampMillis);
 
 Review comment:
   Current behavior is to use the latest snapshot that is older than the set 
timestamp :   As per your example A, B, C, B .. if i rollback to a time that C 
was current (as in rollback to `C.timestampMillis()`  ) then B would be set as 
current snapshot. Since B.timestamp() is the latest that's less than the set ts.
   
   I spoke with a couple folks here and we seem to agree that setting the 
snapshot to the timestamp that's inclusive of the set timestamp makes most 
sense. As per your example setting it to C makes sense. what do you think? If 
you agree I can change it to reflect that. 

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to