leaves12138 opened a new pull request, #8063: URL: https://github.com/apache/paimon/pull/8063
### Purpose `SchemaManager.generateTableSchema` can produce an invalid option combination after applying schema changes. For example, resetting `fields.<seq>.sequence-group` may leave a field-specific `aggregate-function` that requires that sequence group, and the failure is only exposed later when the table is loaded. ### Changes - Validate the generated `TableSchema` before returning it from `SchemaManager.generateTableSchema`. - Add regression coverage for resetting a sequence group used by `fields.<field>.aggregate-function`. - Keep `last_non_null_value` behavior unchanged, since it does not require a sequence group. ### Tests ```bash mvn -U -pl paimon-core -am -DskipITs -Dcheckstyle.skip -Drat.skip=true -Dspotless.check.skip=true -DfailIfNoTests=false -Dtest=SchemaManagerTest#testResetSequenceGroupForAggregateFunction+testResetSequenceGroupForLastNonNullAggregateFunction test ``` -- 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]
