Skip to content

OpenAPI, Core: Add VariantType to the REST catalog spec#17256

Open
nssalian wants to merge 1 commit into
apache:mainfrom
nssalian:rest-api-spec-variant
Open

OpenAPI, Core: Add VariantType to the REST catalog spec#17256
nssalian wants to merge 1 commit into
apache:mainfrom
nssalian:rest-api-spec-variant

Conversation

@nssalian

@nssalian nssalian commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

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. 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")

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)

Co-authored-by: Amogh Jahagirdar <amoghj@apache.org>
@nssalian
nssalian marked this pull request as ready for review July 16, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant