spark-instrumented-optimizer/sql/catalyst/src/main
Wenchen Fan 074085d678 [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
2015-07-17 13:57:31 -07:00
..
java/org/apache/spark/sql [SPARK-9022] [SQL] Generated projections for UnsafeRow 2015-07-17 01:27:14 -07:00
scala/org/apache/spark/sql [SPARK-9136] [SQL] fix several bugs in DateTimeUtils.stringToTimestamp 2015-07-17 13:57:31 -07:00