Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Breaking change
Description
Description -
Currently Date.java and Timestamp.java use DateTimeFormatter for parsing to convert the date/timpstamp from int,string,char etc to Date or Timestamp.
Default DateTimeFormatter which use ResolverStyle.LENIENT which mean date like "1992-13-12" is converted to "2000-01-12",
Moving DateTimeFormatter which use ResolverStyle.STRICT which mean date like "1992-13-12" is not be converted instead NULL is return.
https://docs.google.com/document/d/1YTTPlNq3qyzlKfYVkSl3EFhVQ6-wa9WFRdkdIeCoc1Y/edit?usp=sharing
Attachments
Attachments
Issue Links
- is related to
-
HIVE-4594 UDF should use setLenient(false) when using SimpleDateFormat for parsing given datestring
- Open
-
HIVE-25056 cast ('000-00-00 00:00:00' as timestamp/datetime) results in wrong conversion
- Resolved
-
HIVE-25576 Configurable datetime formatter for unix_timestamp, from_unixtime
- Closed
- relates to
-
HIVE-17038 invalid result when CAST-ing to DATE
- Resolved
-
HIVE-23129 Cast invalid string to date returns incorrect result
- Resolved
-
HIVE-23752 Cast as Date for invalid date produce the valid output
- Resolved
-
HIVE-2557 Inserting illegal timestamp behaves differently that in MySql
- Resolved
- links to