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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.3.2, 2.4.0
    • Spark Core, SQL
    • 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

            kiszk Kazuaki Ishizaki
            kiszk Kazuaki Ishizaki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: