Jan-Ole Sasse created SPARK-45660:
-------------------------------------

             Summary: Re-use Literal objects when replacing timestamps in the 
ComputeCurrentTime rule
                 Key: SPARK-45660
                 URL: https://issues.apache.org/jira/browse/SPARK-45660
             Project: Spark
          Issue Type: Improvement
          Components: Optimizer
    Affects Versions: 3.5.0
            Reporter: Jan-Ole Sasse


The ComputeCurrentTime optimizer rule does produce unique timestamp Literals 
for current time expressions of a query. For CurrentDate and LocalTimestamp 
objects only the literal objects are not re-used though, but equal objects are 
created for each instance. This can cost unnecessary much memory in case there 
are many such Literal objects.



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

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

Reply via email to