Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently in parser, there is [1]:
SqlCall GroupByWindowingCall(): { final Span s; final List<SqlNode> args; final SqlOperator op; } { ( <TUMBLE> { s = span(); op = SqlStdOperatorTable.TUMBLE_OLD; } | <HOP> { s = span(); op = SqlStdOperatorTable.HOP_OLD; } | <SESSION> { s = span(); op = SqlStdOperatorTable.SESSION_OLD; } ) args = UnquantifiedFunctionParameterList(ExprContext.ACCEPT_SUB_QUERY) { return op.createCall(s.end(this), args); } }
The s=span() are duplicates and there could be a way to keep only one s=span().
[1]: https://github.com/apache/calcite/blob/master/core/src/main/codegen/templates/Parser.jj#L6049
Attachments
Issue Links
- links to