[ 
https://issues.apache.org/jira/browse/SPARK-33015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17203084#comment-17203084
 ] 

Maxim Gekk commented on SPARK-33015:
------------------------------------

I am working on this

> Compute the current date only once
> ----------------------------------
>
>                 Key: SPARK-33015
>                 URL: https://issues.apache.org/jira/browse/SPARK-33015
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.2, 3.1.0
>            Reporter: Maxim Gekk
>            Priority: Major
>
> According to the doc for current_date(), it must compute the current date at 
> the start of query evaluation: 
> http://spark.apache.org/docs/latest/api/sql/#current_date but it can compute 
> it multiple times: 
> https://github.com/apache/spark/blob/0df8dd60733066076967f0525210bbdb5e12415a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/finishAnalysis.scala#L85



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to