diff options
author | Herman van Hovell <hvanhovell@databricks.com> | 2016-06-09 16:37:18 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-06-09 16:37:18 -0700 |
commit | b0768538e56e5bbda7aaabbe2a0197e30ba5f993 (patch) | |
tree | 991917742403387109d764a7c761552b0896bae0 /.gitattributes | |
parent | 6cb71f4733a920d916b91c66bb2a508a21883b16 (diff) | |
download | spark-b0768538e56e5bbda7aaabbe2a0197e30ba5f993.tar.gz spark-b0768538e56e5bbda7aaabbe2a0197e30ba5f993.tar.bz2 spark-b0768538e56e5bbda7aaabbe2a0197e30ba5f993.zip |
[SPARK-14321][SQL] Reduce date format cost and string-to-date cost in date functions
## What changes were proposed in this pull request?
The current implementations of `UnixTime` and `FromUnixTime` do not cache their parser/formatter as much as they could. This PR resolved this issue.
This PR is a take over from https://github.com/apache/spark/pull/13522 and further optimizes the re-use of the parser/formatter. It also fixes the improves handling (catching the actual exception instead of `Throwable`). All credits for this work should go to rajeshbalamohan.
This PR closes https://github.com/apache/spark/pull/13522
## How was this patch tested?
Current tests.
Author: Herman van Hovell <hvanhovell@databricks.com>
Author: Rajesh Balamohan <rbalamohan@apache.org>
Closes #13581 from hvanhovell/SPARK-14321.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions