You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/11/19 07:32:10 UTC
[jira] [Created] (SPARK-11849) Analyzer should replace current_date
and current_timestamp with literals
Reynold Xin created SPARK-11849:
-----------------------------------
Summary: Analyzer should replace current_date and current_timestamp with literals
Key: SPARK-11849
URL: https://issues.apache.org/jira/browse/SPARK-11849
Project: Spark
Issue Type: Bug
Components: SQL
Reporter: Reynold Xin
Assignee: Reynold Xin
We currently rely on the optimizer's constant folding to replace current_timestamp and current_date. However, this can still result in different values for different instances of current_timestamp/current_date if the optimizer is not running fast enough.
A better solution is to replace these functions in the analyzer in one shot.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org