Skip to content

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
@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 17, 2025
@github-actions
Copy link

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Jan 25, 2025
@and124578963
Copy link

Hello, the problem has been appeared since 1.6.0 after PR #10547
The proposed solution seems to be correct.
Analysis in #11709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants