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

Mihai Budiu commented on CALCITE-7515:
--------------------------------------

This has been already fixed CALCITE-6138

> TIMESTAMP WITH ZONE literal throwing cast error
> -----------------------------------------------
>
>                 Key: CALCITE-7515
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7515
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Jerome Isaac Haltom
>            Priority: Minor
>
> VALUES (TIMESTAMP WITH TIME ZONE '1969-07-20 20:17:40 UTC')
> This is throwing a cast exception for me. I believe on this line: 
> [https://github.com/apache/calcite/blob/a83681020b682a3253dbe523cf9ce817fe5756c2/core/src/main/java/org/apache/calcite/sql2rel/SqlNodeToRexConverterImpl.java#L135]
>  
> literal is of type SqlTimestampLiteral. Not of type SqlTimestampTzLiteral
> Is the problem that the parser should be detecting it as 
> SqlTimestampTzLiteral before consdiering it SqlTimestampLiteral?



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

Reply via email to