Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/14279#discussion_r71474579
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
---
@@ -477,15 +478,15 @@ class CSVSuite extends QueryTest with
SharedSQLContext with SQLTestUtils {
val options = Map(
"header" -> "true",
"inferSchema" -> "true",
- "dateFormat" -> "dd/MM/yyyy hh:mm")
+ "dateFormat" -> "dd/MM/yyyy HH:mm")
--- End diff --
This was wrong because the times as below:
initial CSV data is as below:
```
26/08/2015 18:00
27/10/2014 18:30
28/01/2016 20:00
```
The hour is based on 24 hour-based one but `hh` means 12 hour-based one
(See https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]