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)

Reply via email to