You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Greg Rahn (JIRA)" <ji...@apache.org> on 2017/05/12 17:09:04 UTC
[jira] [Created] (IMPALA-5315) cast to timestamp fails for YYYY-M-D
format
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)