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

Support time zones when parsing TIMESTAMP WITH LOCAL TIME ZONE

    XMLWordPrintableJSON

Details

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

    Description

      In Avatica, DateTimeUtils TIMESTAMP_FORMAT_STRING doesn't handle time zones.

      TIMESTAMP_FORMAT_STRING consists of DATE_FORMAT_STRING + " " + TIME_FORMAT_STRING which is "HH:mm:ss"
       
      i.e. in Calcite quidem tests if we run 
      DATETIME(TIMESTAMP "2008-12-25 05:30:00+07", "America/Los_Angeles") as datetime_tstz
       
       

      Error:

       

      Illegal TIMESTAMP WITH LOCAL TIME ZONE literal '2008-12-25 05:30:00+07': not in format 'yyyy-MM-dd HH:mm:ss'

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oliverlee Oliver Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: