You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tanel Kiis (Jira)" <ji...@apache.org> on 2023/11/23 10:04:00 UTC

[jira] [Created] (SPARK-46070) Precompile regex patterns in SparkDateTimeUtils.getZoneId

Tanel Kiis created SPARK-46070:
----------------------------------

             Summary: Precompile regex patterns in SparkDateTimeUtils.getZoneId
                 Key: SPARK-46070
                 URL: https://issues.apache.org/jira/browse/SPARK-46070
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.5.0
            Reporter: Tanel Kiis


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org