[ 
https://issues.apache.org/jira/browse/CALCITE-5659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17714235#comment-17714235
 ] 

Julian Hyde commented on CALCITE-5659:
--------------------------------------

{quote}
What are the complications if we relax the requirement for parentheses?
{quote}

Try changing the parser. You may find that the grammar becomes ambiguous - the 
parser doesn't know whether to wait for the following {{YEAR}} token. But I 
don't know. Try it.

> Allow CAST in an INTERVAL definition 
> -------------------------------------
>
>                 Key: CALCITE-5659
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5659
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Oliver Lee
>            Assignee: Oliver Lee
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Running queries that contain a CAST as part of the INTERVAL definition is 
> throwing a parser error.
> i.e.
> {{INTERVAL CAST(5 as int64) YEAR}}
> We can make parser changes to allow the Cast function tokens to be accepted 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to