You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/04/21 12:33:25 UTC

[jira] [Updated] (SPARK-14787) Upgrade Joda-Time library from 2.9 to 2.9.3

     [ https://issues.apache.org/jira/browse/SPARK-14787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-14787:
------------------------------
    Assignee: Hyukjin Kwon

> Upgrade Joda-Time library from 2.9 to 2.9.3
> -------------------------------------------
>
>                 Key: SPARK-14787
>                 URL: https://issues.apache.org/jira/browse/SPARK-14787
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Trivial
>             Fix For: 1.6.2, 2.0.0
>
>
> Currently, Spark uses {{joda-time}} library version 2.9.
> This might have to be upgraded to 2.9.3 because it fixes some minor bugs as below:
> {quote}
> Changes in 2.9.3
> ----------------
>  - DateTimeZone data updated to version 2016c
>  - Make DateTimeUtils.SYSTEM_MILLIS_PROVIDER public [#357]
>  - Fix bug when adding months at the maximum limits of integer [#361]
>  - Add Turkish period translations [#364]
> Changes in 2.9.2
> ----------------
>  - DateTimeZone data updated to version 2016a (version 2.9 had time-zone data 2015g)
>  - Fix bug in time-zone binary search [#332]
>  - Minor fixes to code internals [#339, #326, #344, #350, #343]
>  
>  - Better document behaviour [#325]
> Changes in 2.9.1
> ----------------
> - Fix bug introduced by Long.MIN_VALUE and Long.MAX_VALUE changes [#328]
> {quote}
> For Spark, there can be some issues by bugs below:
> 1. Fix bug introduced by Long.MIN_VALUE and Long.MAX_VALUE changes 
> {code}
> DateTime minDT = new DateTime(Long.MIN_VALUE);
> {code}
> 2.  Fix bug in time-zone binary search
> It looks there is a bug for parsing time-zone. It looks a binary search is introduced for parsing time-zone but there is a bug. So, If Spark tries to parse some timezones, this could be possibly an issue.
> 3.Fix bug when adding months at the maximum limits of integer
> It looks it throws an exception, {{ArrayIndexOutOfBoundsException}}, the codes below:
> {code}
> DateTime dateTime = new DateTime(1455993437373l);
> DateTime date = dateTime.plusMonths(2147483647);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org