Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/17933#discussion_r116398915
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
---
@@ -98,6 +101,15 @@ object DateTimeUtils {
sdf
}
+ private val computedTimeZones = new ConcurrentHashMap[String, TimeZone]
+ private val computeTimeZone = new JFunction[String, TimeZone] {
+ override def apply(timeZoneId: String): TimeZone =
TimeZone.getTimeZone(timeZoneId)
+ }
+
+ def getTimeZone(timeZoneId: String): TimeZone = {
+ computedTimeZones.computeIfAbsent(timeZoneId, computeTimeZone)
--- End diff --
I believe Java 7 support was removed as of Spark 2.2.0.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]