[
https://issues.apache.org/jira/browse/HIVE-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Dere updated HIVE-5329:
-----------------------------
Attachment: HIVE-5329.1.patch
If the conversion yields null, we should not be setting the Obj Inspector
value. Attaching patch v1
> Date and timestamp type converts invalid strings to '1970-01-01'
> ----------------------------------------------------------------
>
> Key: HIVE-5329
> URL: https://issues.apache.org/jira/browse/HIVE-5329
> Project: Hive
> Issue Type: Bug
> Components: Types
> Affects Versions: 0.12.0
> Reporter: Vikram Dixit K
> Assignee: Jason Dere
> Priority: Blocker
> Attachments: HIVE-5329.1.patch
>
>
> {noformat}
> select
> cast('abcd' as date),
> cast('abcd' as timestamp)
> from src limit 1;
> {noformat}
> returns '1970-01-01'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira