Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26651 Use Proleptic Gregorian calendar
  3. SPARK-26178

Use java.time API for parsing timestamps and dates from CSV

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • SQL
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: