JDBCRelation should use java.time classes to convert textual representation of TimestampType and DateType to bound values. In particular, the method should be re-implemented:
https://github.com/apache/spark/blob/115fecfd840d58ce3211bf1dd7b130cb862730a5/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCRelation.scala#L177-L181
Ideally the method should be able to support at least the same patterns as Cast expression.
- links to