strongduanmu commented on a change in pull request #13570:
URL: https://github.com/apache/shardingsphere/pull/13570#discussion_r748070935



##########
File path: 
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-opengauss/src/main/java/org/apache/shardingsphere/sql/parser/opengauss/visitor/statement/impl/OpenGaussStatementSQLVisitor.java
##########
@@ -531,6 +527,9 @@ public final ASTNode visitSortby(final SortbyContext ctx) {
             LiteralExpressionSegment index = (LiteralExpressionSegment) 
astNode;
             return new IndexOrderByItemSegment(index.getStartIndex(), 
index.getStopIndex(), Integer.parseInt(index.getLiterals().toString()), 
orderDirection);
         }
+        if (astNode instanceof ExpressionSegment) {

Review comment:
       @tuichenchuxin May use `expr` is better.




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