nssalian opened a new pull request, #17256:
URL: https://github.com/apache/iceberg/pull/17256

   ## Rationale for the change
   Adds the variant type to the REST catalog OpenAPI spec so that variant 
columns are representable in table schemas exchanged over the REST protocol.
   
   Builds on [#14242](https://github.com/apache/iceberg/pull/14242). That 
change modeled variant as an object (`{"type": "variant"}`); this change 
instead models it as a bare string `const: "variant"` to match how 
`SchemaParser` serializes it on the wire (`SchemaParser` writes the type as the 
string `"variant"`), so the spec matches the REST payload.
   
   ### Changes
   
   - `open-api/rest-catalog-open-api.yaml` Added a `VariantType` schema
   - `open-api/rest-catalog-open-api.py` - regenerated via `make generate`
   
   
   ### Testing
   - Added `testCreateTableWithVariantColumn` to `CatalogTests`. The test 
creates a format-v3 table with a variant column and asserts the schema 
round-trips through the catalog. Enabled for `TestRESTCatalog` and the REST 
compatibility kit (`RESTCompatibilityKitCatalogTests`)


-- 
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]

Reply via email to