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

long = int*int or long = int+int may cause overflow.

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.3.2, 2.4.0
    • Component/s: Spark Core, SQL
    • Labels:
      None

      Description

      The following assignment cause overflow in right hand side. As a result, the result may be negative.

      long = int*int
      long = int+int

        Attachments

          Activity

            People

            • Assignee:
              kiszk Kazuaki Ishizaki
              Reporter:
              kiszk Kazuaki Ishizaki

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment