diff options
author | Wenchen Fan <cloud0fan@outlook.com> | 2015-07-17 13:57:31 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-07-17 13:57:31 -0700 |
commit | 074085d6781a580017a45101b8b54ffd7bd31294 (patch) | |
tree | 688c8bb1bdbb00ea9e25be7b3fe19b40e52cb6a7 /sbin | |
parent | 9974642870404381fa425fadb966c6dd3ac4a94f (diff) | |
download | spark-074085d6781a580017a45101b8b54ffd7bd31294.tar.gz spark-074085d6781a580017a45101b8b54ffd7bd31294.tar.bz2 spark-074085d6781a580017a45101b8b54ffd7bd31294.zip |
[SPARK-9136] [SQL] fix several bugs in DateTimeUtils.stringToTimestamp
a follow up of https://github.com/apache/spark/pull/7353
1. we should use `Calendar.HOUR_OF_DAY` instead of `Calendar.HOUR`(this is for AM, PM).
2. we should call `c.set(Calendar.MILLISECOND, 0)` after `Calendar.getInstance`
I'm not sure why the tests didn't fail in jenkins, but I ran latest spark master branch locally and `DateTimeUtilsSuite` failed.
Author: Wenchen Fan <cloud0fan@outlook.com>
Closes #7473 from cloud-fan/datetime and squashes the following commits:
66cdaf2 [Wenchen Fan] fix several bugs in DateTimeUtils.stringToTimestamp
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions