strongduanmu commented on issue #21230:
URL:
https://github.com/apache/shardingsphere/issues/21230#issuecomment-1260504626
I have test the master branch, this exception is caused by following logic.
```java
/**
* Schema refresher for alter view statement.
*/
public final class AlterViewStatementSchemaRefresher implements
MetaDataRefresher<AlterViewStatement> {
@Override
public Optional<MetaDataRefreshedEvent> refresh(final
ShardingSphereDatabase database, final Collection<String> logicDataSourceNames,
final String schemaName,
final AlterViewStatement sqlStatement, final ConfigurationProperties props)
throws SQLException {
String viewName =
sqlStatement.getView().getTableName().getIdentifier().getValue();
String viewDefinition =
sqlStatement.getViewSQL().substring(sqlStatement.getViewSQL().substring(0,
sqlStatement.getViewSQL().indexOf(" as ")).length() + 4).trim();
SchemaAlteredEvent event = new
SchemaAlteredEvent(database.getName(), schemaName);
Optional<SimpleTableSegment> renameView =
AlterViewStatementHandler.getRenameView(sqlStatement);
```
--
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]