You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2020/09/28 08:21:00 UTC
[jira] [Created] (SPARK-33015) Compute the current date only once
Maxim Gekk created SPARK-33015:
----------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org