Skip to content

[POC] [Kernel] Support for V3 deletion vectors #4727

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

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

Conversation

murali-db
Copy link
Contributor

@murali-db murali-db commented Jun 9, 2025

Which Delta project/connector is this regarding?

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

Description

This POC PR introduces support for Deletion Vectors in the Kernel as a part of Iceberg V3 support.
In order to enable this feature, we make the following updates:

  • IcebergCompatV3 and WriterCompatV2 are introduced
    • This includes TableConfig, DeltaErrors, TransactionBuilder, Generating Actions, ValidatorAndUpdator, TableFeatures, TypeWideningChecker
  • AddFile now supports DeletionVectorDescriptor
    • Also includes DataFileStatus
    • We only use the DeletionVectorDescriptor class internally (for the IRC service) so we do not refactor this class out of the kernel.internal namespace

Pending Questions

  • ParquetFileWriter: how do we include DeletionVectorDescriptor?
  • TransactionBuilderImpl: is the current way I have added CompatV3 and WriterCompatV2 correct?
  • TypeWideningChecker: Check if the type change is supported by Iceberg V3 schema evolution.
  • Any additional tests?

How was this patch tested?

Unit tests.

Does this PR introduce any user-facing changes?

Yes, introduces IcebergCompatV3, IcebergWriterCompatV2.

return new DataFileStatus(
resolvedPath,
fileStatus.getSize(),
fileStatus.getModificationTime(),
Optional.ofNullable(stats));
Optional.ofNullable(stats),
Optional.empty());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: How do we include Deletion Vector Descriptor here?

@murali-db murali-db changed the title [wip] Support for V3 deletion vectors Support for V3 deletion vectors Jun 9, 2025
@murali-db murali-db changed the title Support for V3 deletion vectors [Kernel] Support for V3 deletion vectors Jun 9, 2025
@raveeram-db raveeram-db self-requested a review June 9, 2025 16:48
@murali-db murali-db changed the title [Kernel] Support for V3 deletion vectors [POC] [Kernel] Support for V3 deletion vectors Jun 9, 2025
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