tristaZero opened a new issue #10696: URL: https://github.com/apache/shardingsphere/issues/10696
Hi community, This issue needs more effort than good-first-issue. Hope you can enjoy it. :) ### Target - Create a class named `AlterTableStatementFederateRefresher` which is to renew `FederateSchemaMetadata` when users execute `alter table xxx` SQL. (It is simple to figure out that once the table structure changes, the metadata needs to be refreshed accordingly) - Add a unit test for your change ### How - Create a class named `AlterTableStatementFederateRefresher` implementing `FederateRefresher<AlterTableStatement>` Here are some tips, 1. Please refer to `CreateTableStatementFederateRefresher` and `AlterTableStatementSchemaRefresher` 2. The keypoint is to get the latest `TableMetaData` and call `FederateSchemaMetadata`.`renew()`. That way, `AlterTableStatementSchemaRefresher` will help you know how to create a `TableMetaData` - Add a unit test similar to `AlterTableStatementSchemaRefresherTest` and #10695 -- 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. For queries about this service, please contact Infrastructure at: [email protected]
