Maxim Gekk created SPARK-26653: ---------------------------------- Summary: Use Timestamp/DateFormatter in JDBCRelation Key: SPARK-26653 URL: https://issues.apache.org/jira/browse/SPARK-26653 Project: Spark Issue Type: Sub-task Components: SQL Affects Versions: 2.4.0 Reporter: Maxim Gekk
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. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org