-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[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
base: master
Are you sure you want to change the base?
[Kernel][#4] Introduce IcebergWriterCompatV3 #4774
Conversation
f180378
to
11a6b7c
Compare
validateMaxRetriesSetToZero(transactionState); | ||
|
||
/* ----- Validate this is valid write given the table's protocol & configurations ----- */ | ||
checkState( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...io/delta/kernel/internal/icebergcompat/IcebergWriterCompatV3MetadataValidatorAndUpdater.java
Show resolved
Hide resolved
...io/delta/kernel/internal/icebergcompat/IcebergWriterCompatV3MetadataValidatorAndUpdater.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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; | ||
} |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which Delta project/connector is this regarding?
Description
How was this patch tested?
Unit tests.
Does this PR introduce any user-facing changes?
Yes. Introduces IcebergWriterCompatV3.