peng128 commented on code in PR #3057:
URL: https://github.com/apache/calcite/pull/3057#discussion_r1111244422
##########
core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java:
##########
@@ -615,6 +615,13 @@ public SqlNode orderField(int ordinal) {
final String strValue = ((SqlNumericLiteral) node).toValue();
return SqlLiteral.createCharString(strValue, node.getParserPosition());
}
+ if (node instanceof SqlCall
+ && dialect.getConformance().isSortByOrdinal()) {
+ // If the filed is expression and sort by ordinal is set in dialect,
Review Comment:
Fixed it. Thanks~
--
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]