-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Records, which contain date type, e.g.:
{ "_id" : ObjectId("5733062119afaa698d1a0398"), "a" : ISODate("2015-12-31T23:00:00Z") }
Throw an exception on load.
case _: DateType => new Date(element.asInstanceOf[Date].getTime)
Here the Date constructor is java.util.Date, while Spark expects java.sql.Date
- is related to
-
SPARK-43 Ensure that Bson Types are preserved when round tripping dataframes.
- Closed