Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Transition Type Widening table feature from preview to stable #4127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

johanl-db
Copy link
Collaborator

Description

What changes were proposed in this pull request?

The type widening spec has been stable since June 2024, both the preview and stable table features are supported since Delta 3.3.
Until now, the preview feature was enabled by default when enabling type widening. This change switches to enabling the stable feature instead by default.
Clients that only understand the preview feature (Delta 3.2, Delta 4.0 Preview) won't be able to read newly created tables. That means clients will need to upgrade from Delta 3.2 to 3.3 for that specific use case.

The preview and stable features are compatible, the only difference is that the stable spec doesn't require storing the table version as part of the type widening metadata. The stable feature doesn't write and ignores on read this tableVersion field.

How was this patch tested?

Updated existing tests.

Does this PR introduce any user-facing changes?

The stable table feature typeWidening is now added to the table when enabling type widening instead of the preview table feature typeWidening-preview.

This will prevent Delta 3.2 from reading newly created tables with upcoming Delta versions (3.4/4.0?), requiring readers to upgrade to Delta 3.3 and above.

@johanl-db johanl-db force-pushed the type-widening-transition-stable branch from f2cfb47 to 4fdf7fa Compare February 6, 2025 14:02
@johanl-db johanl-db force-pushed the type-widening-transition-stable branch from 4fdf7fa to 19e7083 Compare February 6, 2025 14:38
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