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] Add Read support for RowCommitVersion and Row Tracking Preservation in Read/Write #2878

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

longvu-db
Copy link
Contributor

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

  1. Adding the row_commit_version field to the _metadata column for Delta tables, allowing us to read the row_commit_version from the file metadata after it is stored.
  2. Adding Row Tracking preservation in Read/Write.

How was this patch tested?

Added UTs.

Does this PR introduce any user-facing changes?

No.

@longvu-db longvu-db force-pushed the stack/delta-row-commit-version branch from d3c16a0 to 88fd1a9 Compare April 15, 2024 19:48
Comment on lines +84 to +85
RowIdMetadataStructField.isRowIdColumn(field) ||
RowCommitVersion.MetadataStructField.isRowCommitVersionColumn(field)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not for now but we'll probably want to unify naming later on: RowIdMetadataStructField -> RowId.MetadataStructField

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@johanl-db I already have that plan in mind for a future PR :)

@longvu-db longvu-db force-pushed the stack/delta-row-commit-version branch from 88fd1a9 to bf7f8e7 Compare April 16, 2024 13:25
@vkorukanti
Copy link
Collaborator

The failure is known on master and was fixed an hour ago after the actions on this PR were started. Merging this.

@vkorukanti vkorukanti merged commit 1b210c2 into delta-io:master Apr 17, 2024
5 of 7 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.

3 participants