GitHub user rxin opened a pull request: https://github.com/apache/spark/pull/9833
[SPARK-11849][SQL] Analyzer should replace current_date and current_timestamp with literals 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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rxin/spark SPARK-11849 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/9833.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #9833 ---- commit 33013e63caabf41965357bebd136759fff478717 Author: Reynold Xin <r...@databricks.com> Date: 2015-11-19T06:32:15Z [SPARK-11849][SQL] Analyzer should replace current_date and current_timestamp with literals ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org