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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              maxgekk Maxim Gekk
              Reporter:
              maxgekk Maxim Gekk
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: