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

Fix toMillis

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.6, 3.0.0
    • SQL
    • None

    Description

      The toMillis() method of the DateTimeUtils object can produce inaccurate result for some negative values. Minor differences can be around 1 ms. For example:

      input = -9223372036844776001L
      

      should be converted to -9223372036844777L

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: