You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2018/12/04 14:37:01 UTC

[jira] [Resolved] (SPARK-26178) Use java.time API for parsing timestamps and dates from CSV

     [ https://issues.apache.org/jira/browse/SPARK-26178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-26178.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 23150
[https://github.com/apache/spark/pull/23150]

> Use java.time API for parsing timestamps and dates from CSV 
> ------------------------------------------------------------
>
>                 Key: SPARK-26178
>                 URL: https://issues.apache.org/jira/browse/SPARK-26178
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Currently, CSV datasource uses FastDateFormat from Apache Commons for parsing values of TimestampType and DateType. The result of parsing is an instance of java.util.Date which represents a specific instant in time, with millisecond precision. The tickets aims to switching on Java 8 API - java.time which allow parsing with nanoseconds precision.



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