Maxim Gekk created SPARK-29074:
----------------------------------
Summary: Optimize `date_format` for foldable `fmt`
Key: SPARK-29074
URL: https://issues.apache.org/jira/browse/SPARK-29074
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.0.0
Reporter: Maxim Gekk
The DateFormatClass
([https://github.com/apache/spark/blob/67b4329fb08fd606461aa1ac9274c4a84d15d70e/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L583])
could create the TimestampFormatter only once at the initialization, and reuse
it inĀ nullSafeEval() and inĀ doGenCode().
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]