Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26903

Remove the TimeZone cache

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
    • Docs Text:
      Prior to Spark 3, if an invalid timezone was specified to to_utc_timestamp and from_utc_timestamp, it would silently be interpreted as GMT. It now results in an exception.

      Description

      The ZoneOffset class in JDK 8 caches zone offsets internally: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/time/ZoneOffset.java#l205 . No need to cache time zones in Spark. The ticket aims to remove computedTimeZones from DateTimeUtils.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                maxgekk Maxim Gekk
                Reporter:
                maxgekk Maxim Gekk
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: