Skip to content

fix(rest-catalog): omit null optional fields in CreateTableRequest JSON#2136

Open
jonbjo wants to merge 1 commit intoapache:mainfrom
jonbjo:fix/skip-serialize-null-fields
Open

fix(rest-catalog): omit null optional fields in CreateTableRequest JSON#2136
jonbjo wants to merge 1 commit intoapache:mainfrom
jonbjo:fix/skip-serialize-null-fields

Conversation

@jonbjo
Copy link

@jonbjo jonbjo commented Feb 12, 2026

Which issue does this PR close?

What changes are included in this PR?

Adds #[serde(skip_serializing_if = "Option::is_none")] to optional fields in REST catalog request types to prevent serializing explicit null values.

Are these changes tested?

Existing serialization tests continue to pass. This change affects JSON wire format only (omitting null vs. including it), which maintains compatibility with catalogs that accept either format while fixing compatibility with stricter implementations like Apache Polaris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REST catalog CreateTableRequest sends explicit null values, causing 400 errors with Polaris

1 participant