zeroshade commented on PR #2717: URL: https://github.com/apache/iceberg-go/pull/2717#issuecomment-7287709090
Thanks @ShivamSharma43, all three points from my earlier review are resolved in 80050d9: - legacy numeric `timestamp_ns` defaults now decode through `int64` and round-trip exactly; - out-of-range dates, timestamps and times are rejected when written, and still load as legacy `int64`s; - `normalizeDefaults` stores the ISO strings, so `Equals` holds across a metadata round trip. One thing before this can merge: #2726 landed on main after your last merge, and its `TestTimestampTzDefaults` (`table/update_schema_test.go`) fails once this branch is merged with current main. The merge itself is clean. The test asserts `InitialDefault`/`WriteDefault` equal `iceberg.Timestamp(...)`/`iceberg.TimestampNano(...)`, but with this PR they're the ISO strings (e.g. `"2017-11-16T22:31:08.123456+00:00"`). Could you merge main again and update those assertions to the strings, or compare after `iceberg.NewLiteral(s).To(typ)`? Everything else in `./table/...` passes on the merged tree. I'll approve once CI is green on the updated head. Optional, not blocking: `normalizeDefaults` only converts typed values, so a string default from another writer (e.g. a `timestamptz` with a non-UTC offset) is kept exactly as read. Two schemas whose defaults are the same instant in different offset forms would compare unequal. -- 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]
