Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5209

PrestoDB uses different date format pattern syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 8.12.11.6_4
    • Misc. Connectors
    • None

    Description

      PrestoDB uses different date format (1) than Teiid (2).

      (1) http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html
      (2) https://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html

      That's why a similar query will fail as it is being pushed to PrestoDB:

      SELECT FORMATDATE(DateValue, 'F MMM-dd-yyyy GG') FROM BQT1.SmallA
      

      because (1) doesn't support 'F' pattern, whereas (2) does.

      If it is not convenient to handle in Teiid, please add a note to the docs.

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            jstastny@redhat.com Jan Stastny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: