cloud-fan commented on a change in pull request #23358: [SPARK-26424][SQL] Use
java.time API in date/timestamp expressions
URL: https://github.com/apache/spark/pull/23358#discussion_r243794122
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/util/TimestampFormatterSuite.scala
##########
@@ -106,4 +106,13 @@ class TimestampFormatterSuite extends SparkFunSuite with
SQLHelper {
}
}
}
+
+ test(" case insensitive parsing of am and pm") {
+ val formatter = TimestampFormatter(
+ "yyyy MMM dd hh:mm:ss a",
+ TimeZone.getTimeZone("UTC"),
+ Locale.US)
+ val micros = formatter.parse("2009 Mar 20 11:30:01 am")
+ assert(micros == 1237548601000000L)
Review comment:
ditto
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]