diff options
author | Reynold Xin <rxin@databricks.com> | 2015-11-19 10:48:04 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-19 10:48:04 -0800 |
commit | f449992009becc8f7c7f06cda522b9beaa1e263c (patch) | |
tree | 324a6d2cf7515810be9eace1b1ced787f0fc372a /network | |
parent | 1a93323c5bab18ed7e55bf6f7b13aae88cb9721c (diff) | |
download | spark-f449992009becc8f7c7f06cda522b9beaa1e263c.tar.gz spark-f449992009becc8f7c7f06cda522b9beaa1e263c.tar.bz2 spark-f449992009becc8f7c7f06cda522b9beaa1e263c.zip |
[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.
Author: Reynold Xin <rxin@databricks.com>
Closes #9833 from rxin/SPARK-11849.
Diffstat (limited to 'network')
0 files changed, 0 insertions, 0 deletions