You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "laskoviymishka (via GitHub)" <gi...@apache.org> on 2026/05/05 19:22:55 UTC
[I] feat(schema): reject non-single-value-parseable defaults on complex types [iceberg-go]
laskoviymishka opened a new issue, #1011:
URL: https://github.com/apache/iceberg-go/issues/1011
Parent: #589
v3 spec: `initial-default` / `write-default` on struct/list/map fields must be null or a single-value-parseable JSON value. Java enforces this in `SchemaParser`; iceberg-go has rejection rules for `UnknownType` defaults but does not gate complex-type defaults the same way — non-null defaults on struct / list / map fields are silently accepted.
Walk the schema during validation; for every nested-type field with a non-null default, validate that the default parses cleanly under the type's encoding rules (a JSON object for struct, JSON array for list, JSON object-of-pairs for map). Mirror the existing `UnknownType` default rejection's error-message style for consistency.
Tests cover struct, list, and map separately (each a clear failure case + a passing null-default case), plus a primitive case to confirm primitive defaults still pass through unchanged.
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] feat(schema): reject non-single-value-parseable defaults on complex types [iceberg-go]
Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka closed issue #1011: feat(schema): reject non-single-value-parseable defaults on complex types
URL: https://github.com/apache/iceberg-go/issues/1011
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org