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

Spark3.5: Resolve IDENTIFIER FIELDS with merge-on-read bug #11757

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

601madman
Copy link

Problem

When IDENTIFIER FIELDS are set, and merge-on-read mode is used, a validation error occurs due to incorrect metadata schema checks.

Solution

Adjusted the calculateMetadataSchema() method in SparkScanBuilder to avoid validating identifier fields in metadata columns.

Tests

Added unit tests in TestMergeOnReadWithIdentifierFieldsDeleteTestMergeOnReadWithIdentifierFieldsMerge and TestMergeOnReadWithIdentifierFieldsUpdate to validate the fix.

Closes #11709

@github-actions github-actions bot added the spark label Dec 12, 2024
@601madman 601madman changed the title Fix: Resolve IDENTIFIER FIELDS with merge-on-read bug Spark3.5: Resolve IDENTIFIER FIELDS with merge-on-read bug Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with IDENTIFIER FIELDS and merge-on-read Mode in Iceberg
1 participant