snuyanzin commented on code in PR #5107:
URL: https://github.com/apache/calcite/pull/5107#discussion_r3601038291
##########
core/src/main/codegen/templates/Parser.jj:
##########
@@ -1728,7 +1728,8 @@ SqlNode PartitionedQueryOrQueryOrExpr(ExprContext
exprContext) :
SqlNode e;
}
{
- e = OrderedQueryOrExpr(exprContext)
+ // QueryOrExpr, not OrderedQueryOrExpr: ORDER BY is handled by
PartitionedByAndOrderBy below.
+ e = QueryOrExpr(exprContext)
Review Comment:
this fixes the case of `ORDER BY (....)` where some fields have `ASC`/`DESC`
--
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]