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/04/06 18:10:00 UTC

[jira] [Created] (SPARK-27401) Refactoring conversion of Date/Timestamp to/from java.sql.Date/Timestamp

Maxim Gekk created SPARK-27401:
----------------------------------

             Summary: Refactoring conversion of Date/Timestamp to/from java.sql.Date/Timestamp
                 Key: SPARK-27401
                 URL: https://issues.apache.org/jira/browse/SPARK-27401
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Maxim Gekk


The fromJavaTimestamp/toJavaTimestamp and toJavaDate/fromJavaDate can be implemented using existing methods DateTimeUtils like instantToMicros/microsToInstant and daysToLocalDate/localDateToDays. This should allow:
 # To avoid invocation of millisToDays and time zone offset calculation
 # To simplify implementation of toJavaTimestamp, and properly handle negative inputs
 # Detect arithmetic overflow of Long



--
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