You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Kokila N (Jira)" <ji...@apache.org> on 2024/08/22 13:04:00 UTC
[jira] [Updated] (HIVE-28470) JDK17: Change in behaviour of MILLI_OF_DAY in timestamp
[ https://issues.apache.org/jira/browse/HIVE-28470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kokila N updated HIVE-28470:
----------------------------
Description:
*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]
> 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
>
> *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)