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

Introduce row ID write table feature and table property #1702

Closed
wants to merge 2 commits into from

Conversation

johanl-db
Copy link
Collaborator

Description

This change adds knobs to enable Row IDs when creating a new Delta table, as defined in the Row ID specification (#1610):

  • Write table feature rowIds: Require writers to support row IDs. Used to enable row IDs on newly created tables.
  • Table property: rowIds.enabled: Indicate whether all rows have an assigned row ID.
  • SQL conf rowIds.allowForDevOnly: restrict the use of Row IDs to testing for now.

How was this patch tested?

Adding test suite RowIdSuite:

  • Test enabling Row IDs on a new table succeeds
  • Test enabling Row IDs on an existing table fails.

Does this PR introduce any user-facing changes?

No, an internal configuration rowIds.allowForDevOnly is introduced to hide the partial row ID implementation during development. The flag is enabled in tests only.

Copy link
Collaborator

@scottsand-db scottsand-db left a comment

Choose a reason for hiding this comment

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

LGTM left some minor comments!

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