slfan1989 commented on PR #2761: URL: https://github.com/apache/iceberg-go/pull/2761#issuecomment-7295118131
> LGTM, thanks @slfan1989! `go test ./cmd/iceberg -run 'Snapshot|Rollback'` passes locally. > > +1 to both of @laskoviymishka's suggestions before merge: > > * a fixed `"2006-01-02T15:04:05.000Z07:00"` layout, so the JSON `timestamp` keeps one shape across rows (`parseRollbackTimestamp` uses `RFC3339Nano`, which accepts `.000Z`); > * asserting the exact `entry.Timestamp` string in the test, to pin the format. > > One more: `cmd/iceberg/expire_snapshots.go:152` builds its snapshot timestamps with `time.RFC3339` too. Since that command also lists snapshots that users may paste into `rollback --timestamp`, it has the same off-by-one-snapshot problem. Could you apply the same layout there in this PR? `info`'s `last-updated` is only displayed, so it's fine to leave for the follow-up issue. Thanks for reviewing and running the tests, @zeroshade! I’ve updated `iceberg snapshots` to always print three millisecond digits and added an assertion for the exact timestamp. I’ll apply the same format to `expire-snapshots` in this PR and update #2775 to track the `info` change. -- 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]
