fallintoplace opened a new pull request, #1628: URL: https://github.com/apache/iceberg-go/pull/1628
`Schema.UnmarshalJSON` decoded through the existing receiver, so omitted fields could retain values from an earlier document. Validation failures could also leave the receiver partially modified. Decode into fresh temporary state, validate it, and replace the receiver only after success. Reinitialize the lazy schema indexes after replacement. Tests cover successful reuse, clearing omitted values and cached indexes, plus preserving the original schema after invalid input. Tested with: `go test .` -- 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]
