Skip to content

fix(metadata): reject writes with unsupported stats-fields - #1172

Draft
manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:codex/fix-stats-fields-writes-20261125
Draft

manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:codex/fix-stats-fields-writes-20261125

Conversation

@manuzhang

@manuzhang manuzhang commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Currently, table metadata loading ignored stats-fields, so a property-only SQL commit could silently discard stats-only definitions.

This PR tracks their presence and reject metadata builds and serialization with NotSupported while definitions cannot be preserved. Tables remain readable, including unknown stats-only field types; omitted, null, and empty lists remain writable. Covers format 3 and later as defined by the spec.

Prerequisite for #1070; full stats-field support remains deferred.

Validation: the new SQL/serde regressions failed before the fix and passed afterward; six standalone suites, table/JSON/SQL composition with #1070 (including format 4), pre-commit, and clang-tidy.

Track nonempty stats-fields while loading metadata and reject builders and
serialization before they can discard unsupported definitions. Keep reads
available for unknown definition types and allow absent, null or empty
stats-fields.

Cover the SQL property-update data-loss regression and metadata boundaries.

Co-authored-by: Codex <[email protected]>

This branch has not been deployed

No deployments
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.

1 participant