Uploaded image for project: 'Apache MADlib'
  1. Apache MADlib
  2. MADLIB-954

Check input handling of SUMMARY function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v1.9
    • None
    • None

    Description

      For the function
      http://doc.madlib.net/latest/group__grp__summary.html

      For a table with the following column:
      depdelay | double precision |

      gpuser=> select madlib.summary('faa.otp_r', 'faa.otp_summary1', 'DepDelay');
      

      results in the following error:

      ERROR: ZeroDivisionError: float division (plpython.c:4648)
      CONTEXT: Traceback (most recent call last):
      PL/Python function "summary", line 25, in 
      get_distinct, get_quartiles, ntile_array, how_many_mfv, get_estimates)
      PL/Python function "summary", line 77, in summary
      PL/Python function "summary", line 382, in run
      PL/Python function "summary"
      

      Don't think this should throw this error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fmcquillan Frank McQuillan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: