MaxGekk opened a new pull request #23812: [SPARK-26903][SQL] Remove the cache 
of TimeZones
URL: https://github.com/apache/spark/pull/23812
 
 
   ## What changes were proposed in this pull request?
   
   In the PR, I propose to convert time zone string to `TimeZone` by converting 
it to `ZoneId` which uses `ZoneOffset` internally. The `ZoneOffset` class of 
JDK 8 has a cache already: 
http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/time/ZoneOffset.java#l205
 . In this way, there is no need to support cache of time zones in Spark.
   
   The PR removes `computedTimeZones` from `DateTimeUtils`, and uses 
`ZoneId.of` to convert time zone id string to `ZoneId` and to `TimeZone` at the 
end.
   
   ## How was this patch tested?
   
   The changes were tested by 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to