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

Remove the TimeZone cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • SQL
    • None
    • 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

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: