RaigorJiang commented on a change in pull request #14619:
URL: https://github.com/apache/shardingsphere/pull/14619#discussion_r780899145



##########
File path: 
shardingsphere-distsql/shardingsphere-distsql-parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/common/CommonDistSQLStatementVisitor.java
##########
@@ -96,6 +99,12 @@ public ASTNode visitAlterResource(final AlterResourceContext 
ctx) {
         return new AlterResourceStatement(ctx.dataSource().stream().map(each 
-> (DataSourceSegment) visit(each)).collect(Collectors.toList()));
     }
     
+    @Override
+    public ASTNode visitShowTableMetadata(final ShowTableMetadataContext ctx) {
+        Set<String> tableNames = ctx.tableName().stream().map(each -> 
getIdentifierValue(each)).collect(Collectors.toSet());

Review comment:
       Please change the type definition of `tableNames` to Collection<String>.




-- 
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]


Reply via email to