Skip to content

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

Closed
601madman wants to merge 2 commits into
apache:mainfrom
601madman:fix/identifier-fields-merge-on-read
Closed

601madman wants to merge 2 commits into
apache:mainfrom
601madman:fix/identifier-fields-merge-on-read

Conversation

@601madman

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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