Tishj opened a new issue, #16596:
URL: https://github.com/apache/iceberg/issues/16596
### Apache Iceberg version
1.11.0 (latest release)
### Query engine
None
### Please describe the bug 🐞
The spec has a very clear table listing behavior for struct defaults, and
makes it clear that a `struct` column can either have `null` as its default
value, or `{}`, the default values for its fields should be decomposed.
But in the Iceberg REST API spec, both `initial-default` and `write-default`
are modeled as a `PrimitiveTypeValue`:
```yaml
initial-default:
$ref: "#/components/schemas/PrimitiveTypeValue"
write-default:
$ref: "#/components/schemas/PrimitiveTypeValue"
```
So I don't think we can currently represent `{}` for an `initial-default` or
`write-default`
### Willingness to contribute
- [ ] I can contribute a fix for this bug independently
- [ ] I would be willing to contribute a fix for this bug with guidance from
the Iceberg community
- [x] I cannot contribute a fix for this bug at this time
--
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]