You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "qingwei727 (via GitHub)" <gi...@apache.org> on 2026/04/15 12:00:27 UTC

[PR] [core] Clean up field-level options when dropping columns [paimon]

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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [core] Clean up field-level options when dropping columns [paimon]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 closed pull request #7659: [core] Clean up field-level options when dropping columns
URL: https://github.com/apache/paimon/pull/7659


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org