dragonknightk commented on code in PR #2791:
URL: https://github.com/apache/iceberg-go/pull/2791#discussion_r4780199158


##########
cmd/iceberg/expire_snapshots_test.go:
##########
@@ -109,6 +109,24 @@ func TestDiffSnapshotsNoneExpired(t *testing.T) {
        assert.Empty(t, expired)
 }
 
+func TestDiffSnapshotsPreservesMillisecondPrecision(t *testing.T) {
+       // Expected values come from issue 2775 and match the iceberg snapshots

Review Comment:
   Done, thanks.



##########
cmd/iceberg/info.go:
##########
@@ -62,7 +62,7 @@ func tableIDString(tbl *table.Table) string {
 func buildTableInfo(tbl *table.Table) TableInfo {
        meta := tbl.Metadata()
 
-       lastUpdated := 
time.UnixMilli(meta.LastUpdatedMillis()).UTC().Format(time.RFC3339)
+       lastUpdated := 
time.UnixMilli(meta.LastUpdatedMillis()).UTC().Format("2006-01-02T15:04:05.000Z07:00")

Review Comment:
   Done, thanks.



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