Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33275 ANSI mode: runtime errors instead of returning null on invalid inputs
  3. SPARK-33008

Division by zero on divide-like operations returns incorrect result

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      Spark SQL:

      spark-sql> SELECT 1/0;
      NULL
      Time taken: 3.002 seconds, Fetched 1 row(s)
      

      PostgreSQL:

      postgres=# SELECT 1/0;
      ERROR:  division by zero
      

      Attachments

        Activity

          People

            luluorta Lu Lu
            luluorta Lu Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: