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

ArrayOutOfBoundsException when converting from string to timestamp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.4
    • 2.4.5, 3.0.0
    • SQL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: