Skip to content

Comments

Fix/skip serialize null fields unit tests#2155

Open
mattefunnel wants to merge 2 commits intoapache:mainfrom
mattefunnel:fix/skip-serialize-null-fields-unit-tests
Open

Fix/skip serialize null fields unit tests#2155
mattefunnel wants to merge 2 commits intoapache:mainfrom
mattefunnel:fix/skip-serialize-null-fields-unit-tests

Conversation

@mattefunnel
Copy link

@mattefunnel mattefunnel commented Feb 20, 2026

Which issue does this PR close?

Closes #2135

What changes are included in this PR?

Unit tests for #2136

(But it is based on jonbjo:fix/skip-serialize-null-fields from that PR, so it also has those changes.)

Are these changes tested?

Yes. The original PR contained the changes, this PR contains those changes and additional unit tests.

Note about failing Bindings Python CI test:

  • I don't think that it is related to my changes
  • This Workflow seems to be broken for everybody since Feb 20

Add round-trip serialization tests that verify optional fields are
omitted (not serialized as null) when absent, as requested in apache#2136.

- CreateTableRequest: full and minimal round-trip serde test
- UnboundPartitionSpec: assert serialized output matches expected JSON
@mattefunnel mattefunnel force-pushed the fix/skip-serialize-null-fields-unit-tests branch from 1105050 to d490ec3 Compare February 20, 2026 23:58
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