impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Rahn (JIRA)" <>
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
             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.
impala> select cast('2000-3-1' as timestamp);
| cast('2000-3-1' as timestamp)  |
| NULL                           |

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

This message was sent by Atlassian JIRA

View raw message