Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-979

Dividing float value by zero should throw "Divide by zero Exception"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      See the title. Currently Tajo returns "Infinity".

      This is a result of Tajo.

      default> select 10.0/0;
      ?divide
      -------------------------------
      Infinity
      (1 rows, 0.003 sec, 0 B selected)
      default> select 10/0;
      ERROR: / by zero
      

      This is a result of Postgresql.

      babokim=# select 10.0/0.0;
      ERROR:  division by zero
      babokim=# select 10.0/0;
      ERROR:  division by zero
      

        Attachments

          Activity

            People

            • Assignee:
              hjkim Hyoungjun Kim
              Reporter:
              hjkim Hyoungjun Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: