slfan1989 opened a new pull request, #2761:
URL: https://github.com/apache/iceberg-go/pull/2761

   `iceberg snapshots` displays timestamps at whole-second precision. Copying a 
displayed timestamp into `iceberg rollback --timestamp` can select an older 
snapshot.
   
   ### Steps to reproduce
   
   1. Use a table named `db.events` where the current snapshot `200` became 
current at `2019-04-12T20:29:15.770Z` and the previous snapshot is `100`.
   2. Run `iceberg snapshots db.events`. The CLI displays 
`2019-04-12T20:29:15Z` for snapshot `200`.
   3. Run `iceberg rollback db.events --timestamp 2019-04-12T20:29:15Z`. Check 
the snapshot ID in the confirmation prompt, then answer `n` to leave the table 
as-is.
   
   ### Actual behavior
   
   The displayed timestamp is 770 milliseconds earlier than the snapshot's 
actual timestamp. The rollback command resolves it to snapshot `100`.
   
   ### Expected behavior
   
   Both text and JSON output from `iceberg snapshots` should preserve 
millisecond precision. Passing the displayed timestamp back to `rollback 
--timestamp` should resolve to snapshot `200` in this example.
   


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