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

Precompile regex patterns in SparkDateTimeUtils.getZoneId

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 4.0.0
    • SQL

    Description

      SparkDateTimeUtils.getZoneId uses String.replaceFirst method, that internally does a Pattern.compile(regex). This method is called once for each dataset row when using functions like from_utc_timestamp.

      Attachments

        Issue Links

          Activity

            People

              tanelk Tanel Kiis
              tanelk Tanel Kiis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: