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

ArrayOutOfBoundsException when converting from string to timestamp

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4
    • Fix Version/s: 2.4.5, 3.0.0
    • Component/s: SQL
    • Labels:
      None

      Description

      In a couple of scenarios while converting from String to Timestamp `

      DateTimeUtils.stringToTimestamp` throws an array out of bounds exception if there is trailing spaces or ':'. The behavior of this method requires it to return `None` in case the format of the string is incorrect.

        Attachments

          Activity

            People

            • Assignee:
              rahulsmahadev Rahul Shivu Mahadev
              Reporter:
              rahulsmahadev Rahul Shivu Mahadev
              Shepherd:
              Shixiong Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: