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

Fix toMillis

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.6, 3.0.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              maxgekk Max Gekk
              Reporter:
              maxgekk Max Gekk

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment