mongo-spark
mongo-spark copied to clipboard
support for spark.sql.datetime.java8API.enabled
Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling spark.sql.datetime.java8API.enabled flag for all of its sessions.
Supported JSR-310 types which are already supported by Spark SQL:
- LocalDate
- LocalDateTime
- Instant Other types are causing Encoder to fail, so they won't work even if taken into account.
As spark.sql.datetime.java8API.enabled is disabled by default, it shouldn't cause compatibility issues.