Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/21363#discussion_r189490878
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVInferSchemaSuite.scala
---
@@ -59,13 +59,21 @@ class CSVInferSchemaSuite extends SparkFunSuite {
assert(CSVInferSchema.inferField(IntegerType, textValueOne, options)
== expectedTypeOne)
}
- test("Timestamp field types are inferred correctly via custom data
format") {
- var options = new CSVOptions(Map("timestampFormat" -> "yyyy-mm"),
"GMT")
+ test("Timestamp field types are inferred correctly via custom date
format") {
+ var options = new CSVOptions(Map("timestampFormat" -> "yyyy-MM"),
"GMT")
--- End diff --
Why we need to change this?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]