huaxingao opened a new pull request, #15977: URL: https://github.com/apache/iceberg/pull/15977
Fixes #15932. Parsing "write-default": null in JSON crashes because Expressions.lit(null) rejects null. This makes it impossible to set write-default to null when initial-default is non-null — the fallback always wins. This PR adds a NullLiteral sentinel (Literal.ofNull()) to distinguish "not set" from "explicitly null," and fixes the parser, serializer, and SchemaUpdate to handle it correctly. Used Cursor - Claude-4.6-opus-high -- 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]
