impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Rahn (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMPALA-5315) cast to timestamp fails for YYYY-M-D format
Date Fri, 12 May 2017 17:09:04 GMT
Greg Rahn created IMPALA-5315:
---------------------------------

             Summary: cast to timestamp fails for YYYY-M-D format
                 Key: IMPALA-5315
                 URL: https://issues.apache.org/jira/browse/IMPALA-5315
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
            Reporter: Greg Rahn


Dates with single digit months or days should cast to valid timestamps. 

This returns NULL since it fails but should be valid.
{noformat}
impala> select cast('2000-3-1' as timestamp);
+--------------------------------+
| cast('2000-3-1' as timestamp)  |
+--------------------------------+
| NULL                           |
+--------------------------------+
{noformat}

Postgres
{noformat}
grahn=# select cast('2000-3-1' as timestamp);
      timestamp
---------------------
 2000-03-01 00:00:00
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message