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

Wenchen Fan resolved SPARK-31984.
---------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 28824
[https://github.com/apache/spark/pull/28824]

> Make micros rebasing functions via local timestamps pure
> --------------------------------------------------------
>
>                 Key: SPARK-31984
>                 URL: https://issues.apache.org/jira/browse/SPARK-31984
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.1, 3.1.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Major
>             Fix For: 3.1.0
>
>
> The functions rebaseGregorianToJulianMicros(zoneId: ZoneId, ...) and 
> rebaseJulianToGregorianMicros(zoneId: ZoneId, ...) accept the zone id as the 
> first parameter but use it only while forming ZonedDateTime and ignore in 
> Java 7 GregorianCalendar. The Calendar instance uses the default JVM time 
> zone internally. This causes the following problems:
> # The functions depend on the global state variable. And calling the 
> functions from different threads can return wrong results if the the default 
> JVM time zone is changed during the execution.
> # It is impossible to speed up generation of JSON files with diff/switch via 
> parallelisation.
> # The functions don't fully use the passed ZoneId.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to