[
https://issues.apache.org/jira/browse/HIVE-28470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kokila N resolved HIVE-28470.
-----------------------------
Fix Version/s: NA
Resolution: Duplicate
JIRA: HIVE-26473
PR: [PR-5404|https://github.com/apache/hive/pull/5404]
Commit :
[https://github.com/apache/hive/pull/5404/commits/d5d184dd57ff49c9ecbc966a02e4033dd46dcf45]
> JDK17: Change in behaviour of MILLI_OF_DAY in timestamp
> --------------------------------------------------------
>
> Key: HIVE-28470
> URL: https://issues.apache.org/jira/browse/HIVE-28470
> Project: Hive
> Issue Type: Sub-task
> Reporter: Kokila N
> Assignee: Kokila N
> Priority: Major
> Fix For: NA
>
>
> *Issue:*
> {code:java}
> Field MilliOfDay cannot be printed as the value 33180000 exceeds the maximum
> print width of 2{code}
> *A* represents MILLI_OF_DAY.
> *JDK8:* Depending on the number of A's given in format, max width is set and
> only those number of digits are considered and if the converted value exceeds
> max width , it will throw error and return null.
> *JDK11:* A's max width is hardcoded to 19, so an error is thrown only if it
> exceeds 19 digits.
> *Commit:*
> [https://github.com/openjdk/jdk11u-dev/commit/386a77fd91612badbb14edc05fe4142415192b46]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)