You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Dmitry Sysolyatin (Jira)" <ji...@apache.org> on 2022/08/25 12:40:00 UTC
[jira] [Created] (CALCITE-5244) Postgres dialect should support traditional postgres interval format
Dmitry Sysolyatin created CALCITE-5244:
------------------------------------------
Summary: 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
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)