You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2019/01/17 21:01:00 UTC

[jira] [Created] (SPARK-26653) Use Timestamp/DateFormatter in JDBCRelation

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org