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

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

    XMLWordPrintableJSON

Details

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

    Description

      Currently, CSV datasource uses Apache FastDateFormat with a few fallbacks for parsing values of TimestampType and DateType. The result of parsing is an instance of java.util.Date/Timestamp which represents a specific instant in time, with millisecond precision. The tickets aims to switch on Java 8 API - java.time which allow parsing with nanoseconds precision.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: