Skip to content

Check format version rather than TableMetadataV3 type for encryption - #4368

Merged
kevinjqliu merged 1 commit into
apache:mainfrom
xanderbailey:xb/encryption-format-version-check
Nov 13, 2026
Merged

kevinjqliu merged 1 commit into
apache:mainfrom
xanderbailey:xb/encryption-format-version-check

Conversation

@xanderbailey

Copy link
Copy Markdown
Contributor

Working towards #3222

Rationale for this change

Follow-up from #4328 (comment): the encryption checks used isinstance(..., TableMetadataV3), while the rest of the codebase compares format_version. This switches the encryption manager and the encryption key updates to format_version < 3.

Are these changes tested?

Covered by the existing tests for encryption on pre-v3 tables.

Are there any user-facing changes?

No.

Matches how the rest of the codebase gates v3 features.

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thank you!

@kevinjqliu
kevinjqliu enabled auto-merge November 13, 2026 19:57
@kevinjqliu
kevinjqliu added this pull request to the merge queue Nov 13, 2026
Merged via the queue into apache:main with commit dfb0405 Nov 13, 2026
20 checks passed
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.

2 participants