snuyanzin commented on code in PR #4899:
URL: https://github.com/apache/calcite/pull/4899#discussion_r3131635883
##########
core/src/main/codegen/templates/Parser.jj:
##########
@@ -7514,8 +7514,8 @@ SqlCall MatchRecognizeCallWithModifier() :
<FINAL> { runningOp = SqlStdOperatorTable.FINAL; }
)
{ s = span(); }
- func = NamedFunctionCall() {
- return runningOp.createCall(s.end(func), func);
+ e = Expression3(ExprContext.ACCEPT_NON_QUERY) {
Review Comment:
I spotted another case where this PR will help
https://github.com/apache/calcite/pull/4907
I tried other case where expression under `FIRST`, `LAST`, `NEXT` , `PREV`
might be expanded however parser after that not able to parse it.
After changing to expression parser started to parse such unparsed queries,
example in linked PR
##########
core/src/main/codegen/templates/Parser.jj:
##########
@@ -7514,8 +7514,8 @@ SqlCall MatchRecognizeCallWithModifier() :
<FINAL> { runningOp = SqlStdOperatorTable.FINAL; }
)
{ s = span(); }
- func = NamedFunctionCall() {
- return runningOp.createCall(s.end(func), func);
+ e = Expression3(ExprContext.ACCEPT_NON_QUERY) {
Review Comment:
I spotted another case where this PR will help
https://github.com/apache/calcite/pull/4907
I tried other case where expression under `FIRST`, `LAST`, `NEXT` , `PREV`
might be expanded however parser after that not able to parse it.
After changing to expression parser started to parse such unparsed queries,
example in linked PR and related jira
--
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]