lasdf1234 opened a new pull request, #14759: URL: https://github.com/apache/gravitino/pull/14759
### What changes were proposed in this pull request? Cherry-pick of #14748 (`426f8908e`) to `branch-1.3`. IcebergCommitValidation refuses an add-schema that changes an existing field from optional to required when the table has data. Adds tests for that case and for decimal scale/precision promotion. Conflict resolution vs closed auto cherry-pick #14750: keep `branch-1.3`'s `checkTypeChange(existing, field)` signature; only add `checkNullabilityChange` (do not bring main's `formatVersion` arity or other #14751 changes). ### Why are the changes needed? #14748 was labeled for `branch-1.3`; auto cherry-pick #14750 closed with conflicts. Issue #14429 targets `1.3.2`. ### Does this PR introduce _any_ user-facing change? Yes. An IRC commit that makes an existing optional column required on a table with snapshots returns 400. ### How was this patch tested? Same unit tests as #14748 (`testOptionalFieldCannotBecomeRequired`, `testDecimalChangesFollowPromotionRules`), adapted to `branch-1.3`. Made with [Cursor](https://cursor.com) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
