Skip to content

[Kernel][#4] Introduce IcebergWriterCompatV3 #4774

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 4 commits into
base: master
Choose a base branch
from

Conversation

murali-db
Copy link
Contributor

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

Which Delta project/connector is this regarding?

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

Description

  • Implement IcebergWriterCompatV3. We skipped v2 to align with IcebergCompatV3 which maps to iceberg format v3.

How was this patch tested?

Unit tests.

Does this PR introduce any user-facing changes?

Yes. Introduces IcebergWriterCompatV3.

@murali-db murali-db force-pushed the introduce-writer-v3-validator branch from f180378 to 11a6b7c Compare June 18, 2025 16:13
@murali-db murali-db changed the title [wip] introduce writer v3 validator [Kernel][#4] Introduce IcebergWriterCompatV3 Jun 18, 2025
validateMaxRetriesSetToZero(transactionState);

/* ----- Validate this is valid write given the table's protocol & configurations ----- */
checkState(
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this is probably just borrowed from writer v1 but I wonder if we can put these checks on the table level instead of doing for each action.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

@vkorukanti vkorukanti left a comment

Choose a reason for hiding this comment

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

Looks great!

Need tests.

newProtocol.orElse(baseProtocol));
if (icebergWriterCompatV3.isPresent()) {
newMetadata = icebergWriterCompatV3;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can we move this and the above into IcebergWriterCompatMetadataValidatorAndUpdater.validateAndUpdateIcebergWriterCompatMetadata?

We should do the same of the icebergCompatV* as well.

validateMaxRetriesSetToZero(transactionState);

/* ----- Validate this is valid write given the table's protocol & configurations ----- */
checkState(
Copy link
Collaborator

Choose a reason for hiding this comment

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

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