strongduanmu commented on code in PR #29633:
URL: https://github.com/apache/shardingsphere/pull/29633#discussion_r1440024012
##########
parser/sql/dialect/sqlserver/src/main/java/org/apache/shardingsphere/sql/parser/sqlserver/visitor/statement/SQLServerStatementVisitor.java:
##########
@@ -862,6 +863,7 @@ public ASTNode visitProjections(final ProjectionsContext
ctx) {
projections.add((ProjectionSegment) visit(each));
}
ProjectionsSegment result = new
ProjectionsSegment(ctx.getStart().getStartIndex(),
ctx.getStop().getStopIndex());
+
projections.sort(Comparator.comparingInt(ProjectionSegment::getStartIndex));
Review Comment:
Why call sort method here?
--
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]