Repository navigation
fix(view): field ID preservation and error handling for RCK compatibility - #647
Merged
Merged
Conversation
1. Field ID Reassignment: NewMetadataWithUUID() was calling iceberg.AssignFreshSchemaIDs() which reassigned all field IDs starting from 1, breaking clients that expect their original field IDs to be preserved. 2. Error Message Format: Duplicate dialect validation error wasn't wrapped with ErrInvalidViewMetadata and lacked proper capitalization, preventing MinIO from mapping it to IllegalArgumentException. 3. Schema ID Handling: While MetadataBuilder.addSchema() already normalizes schema IDs to 0 for new views, the test expected consistent behavior across view version updates. Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
zeroshade
approved these changes
Dec 9, 2025
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem it solves
Three RCK (REST Compatibility Kit) view tests were failing:
expected: struct<3: id: required int, 4: data: required string>
but was: struct<1: id: required int, 2: data: required string>
Expected: "Invalid view version: Cannot add multiple queries for dialect trino"
Actual: "cannot add multiple queries for dialect trino"
expected: schemaId=0
but was: schemaId=2