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

DateTimeUtils.stringToTimestamp() incorrectly rejects timezone without colon

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0, 3.2.0
    • 3.2.1, 3.3.0
    • SQL
    • None

    Description

      For the zoneid with format like "+0000" or "+0730", it can be parsed by `ZoneId.of()` but will rejected by Spark's `DateTimeUtils.stringToTimestamp()`. it means we will return null for some valid datetime string, such as: `2021-10-11T03:58:03.000+0700`

      Attachments

        Issue Links

          Activity

            People

              linhongliu-db Linhong Liu
              linhongliu-db Linhong Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: