slfan1989 opened a new issue, #2775:
URL: https://github.com/apache/iceberg-go/issues/2775

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   ### Description
   
   `iceberg expire-snapshots` displays snapshot timestamps at whole-second 
precision, and `iceberg info` does the same for the table's last-updated 
timestamp. Both values are stored in milliseconds in Iceberg metadata.
   
   For example, a timestamp of `2019-04-12T20:29:15.770Z` is displayed as 
`2019-04-12T20:29:15Z`. This affects both text and JSON output.
   
   ### Steps to reproduce
   
   1. Use a table named `db.events` whose `last-updated-ms` has a nonzero 
millisecond component. The table should also have an unreferenced historical 
snapshot older than one hour with a nonzero millisecond component in 
`timestamp-ms`.
   2. Run `iceberg info db.events` and check the `Last updated` field.
   3. Run `iceberg expire-snapshots db.events --older-than 1h --retain-last 1 
--dry-run` and check the historical snapshot's `TIMESTAMP` column.
   4. Repeat with `--output json` and check `last_updated` and 
`expired_snapshots[].timestamp`.
   
   ### Expected behavior
   
   Both commands should preserve millisecond precision in text and JSON output, 
using exactly three fractional digits. For example, display 
`2019-04-12T20:29:15.770Z` and use `.000Z` for timestamps that fall on a whole 
second. This matches the format introduced for `iceberg snapshots` in #2761.


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