Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6385

ISO 8601 timestamp parsing does not support arbitrary precision second fractions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None

      Description

      The ISO 8601 timestamp parsing implemented as a resolution to SPARK-4149 does not support arbitrary precision fractions of seconds, only millisecond precision. Parsing 2015-02-02T00:00:07.900GMT-00:00 will succeed, while 2015-02-02T00:00:07.9000GMT-00:00 will fail.

      The issue is caused by the fixed precision of the parsed format in DataTypeConversions.scala#L66. I'm willing to implement a fix, but pointers on the direction would be appreciated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bruun Nick Bruun
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: