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

Dmitry Sysolyatin commented on CALCITE-5244:
--------------------------------------------

Do I understand correctly that calcite does not support milliseconds and 
microseconds for interval at the moment ?

> Postgres dialect should support traditional postgres interval format
> --------------------------------------------------------------------
>
>                 Key: CALCITE-5244
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5244
>             Project: Calcite
>          Issue Type: Bug
>          Components: babel
>            Reporter: Dmitry Sysolyatin
>            Priority: Major
>
> Postgres dialect should support "Traditional Postgres format"  for interval. 
> https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT
> Query {code}select interval '1 year 3 hours 20 minutes 10 seconds 5 
> milliseconds'{code} throws exception:
> {code}Caused by: java.lang.RuntimeException: 
> org.apache.calcite.sql.parser.SqlParseException: Encountered "\'1 year 3 
> hours 20 minutes 10 seconds 5 milliseconds\' <EOF>" at line 1, column 
> 17.{code}



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

Reply via email to