qingwei727 opened a new pull request, #7659:
URL: https://github.com/apache/paimon/pull/7659
### Purpose
Fix IllegalArgumentException: Field xxx can not be found in table schema
when dropping a column that has field-level options (e.g.
fields.xxx.default-value).
SchemaManager.generateTableSchema() removes the column from the field list
but leaves its fields.<column>.* entries in options, causing
SchemaValidation.validateFieldsPrefix() to fail. This fix removes those
orphaned options during DropColumn processing.
### Tests
SchemaManagerTest#testDropColumnCleansUpFieldOptions — creates a table with
fields.extra_col.default-value, drops the column, and verifies both the
column and its options are removed.
--
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]