mongo-spark icon indicating copy to clipboard operation
mongo-spark copied to clipboard

support for spark.sql.datetime.java8API.enabled

Open VVBondarenko opened this issue 1 year ago • 0 comments

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.

VVBondarenko avatar Aug 15 '24 17:08 VVBondarenko