Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-648

Timestamp Parser Does Not like "T"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 1.1.1
    • Impala 2.0
    • None

    Description

      The ISO-8601 format allows an optional "T" between the date and time in its format. Looks like the Impala date parser doesn't like it:

      [example.com:21000] > select cast('2012-01-06T20:59:58.117' as timestamp);
      Query: select cast('2012-01-06T20:59:58.117' as timestamp)
      Query finished, fetching results ...
      +----------------------------------------------+
      | cast('2012-01-06t20:59:58.117' as timestamp) |
      +----------------------------------------------+
      |                                              |
      +----------------------------------------------+
      Returned 1 row(s) in 0.15s
      

      Works if I remove the "T", though:

      [example.com:21000] > select cast('2012-01-06 20:59:58.117' as timestamp);
      Query: select cast('2012-01-06 20:59:58.117' as timestamp)
      Query finished, fetching results ...
      +----------------------------------------------+
      | cast('2012-01-06 20:59:58.117' as timestamp) |
      +----------------------------------------------+
      | 2012-01-06 20:59:58.117000000                |
      +----------------------------------------------+
      Returned 1 row(s) in 0.09s
      

      Attachments

        Activity

          People

            cchanning Chris Channing
            theory_impala_af54 David E. Wheeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: