RaigorJiang commented on a change in pull request #14051:
URL: https://github.com/apache/shardingsphere/pull/14051#discussion_r767399736
##########
File path:
shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-distsql/shardingsphere-sharding-distsql-parser/src/main/java/org/apache/shardingsphere/sharding/distsql/parser/core/ShardingDistSQLStatementVisitor.java
##########
@@ -171,6 +173,15 @@ public ASTNode visitAlterShardingBroadcastTableRules(final
AlterShardingBroadcas
return new
AlterShardingBroadcastTableRulesStatement(ctx.tableName().stream().map(each ->
getIdentifierValue(each)).collect(Collectors.toList()));
}
+ @Override
+ public ASTNode visitAlterShardingKeyGenerator(final
AlterShardingKeyGeneratorContext ctx) {
+ return new
AlterShardingKeyGeneratorStatement(ctx.keyGeneratorDefination().stream().map(this::buildKeyGeneratorSegment).collect(Collectors.toCollection(LinkedList::new)));
+ }
+
+ private ShardingKeyGeneratorSegment buildKeyGeneratorSegment(final
KeyGeneratorDefinationContext ctx) {
Review comment:
duplicated with line 369
--
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]