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

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

    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
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: