ediconss commented on code in PR #27883:
URL: https://github.com/apache/shardingsphere/pull/27883#discussion_r1296992437
##########
parser/sql/dialect/postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/type/PostgreSQLDDLStatementVisitor.java:
##########
@@ -419,6 +419,9 @@ public ASTNode visitAlterDefinitionClause(final
AlterDefinitionClauseContext ctx
if (null != ctx.alterTableActions()) {
result.getValue().addAll(ctx.alterTableActions().alterTableAction().stream().flatMap(each
-> getAlterDefinitionSegments(each).stream()).collect(Collectors.toList()));
}
+ if (null != ctx.renameColumnSpecification()) {
Review Comment:
https://github.com/apache/shardingsphere/blob/0a62ba2670f3eee6becf1e2aebaf1817c60282ee/test/it/parser/src/main/resources/case/ddl/alter-table.xml#L972-L974,
it`s no assert
##########
parser/sql/dialect/postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/type/PostgreSQLDDLStatementVisitor.java:
##########
@@ -419,6 +419,9 @@ public ASTNode visitAlterDefinitionClause(final
AlterDefinitionClauseContext ctx
if (null != ctx.alterTableActions()) {
result.getValue().addAll(ctx.alterTableActions().alterTableAction().stream().flatMap(each
-> getAlterDefinitionSegments(each).stream()).collect(Collectors.toList()));
}
+ if (null != ctx.renameColumnSpecification()) {
Review Comment:
https://github.com/apache/shardingsphere/blob/0a62ba2670f3eee6becf1e2aebaf1817c60282ee/test/it/parser/src/main/resources/case/ddl/alter-table.xml#L972-L974
it`s no assert
--
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]