Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5244

Postgres dialect should support traditional postgres interval format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • babel
    • None

    Description

      Postgres dialect should support "Traditional Postgres format" for interval. https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT

      Query

      select interval '1 year 3 hours 20 minutes 10 seconds 5 milliseconds'

      throws exception:

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmsysolyatin Dmitry Sysolyatin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: