[ 
https://issues.apache.org/jira/browse/SPARK-31984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134929#comment-17134929
 ] 

Apache Spark commented on SPARK-31984:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
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
>            Priority: Major
>
> 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