[
https://issues.apache.org/jira/browse/MADLIB-954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frank McQuillan updated MADLIB-954:
-----------------------------------
Description:
For the function
http://doc.madlib.net/latest/group__grp__summary.html
For a table with the following column:
depdelay | double precision |
{code:sql}
gpuser=> select madlib.summary('faa.otp_r', 'faa.otp_summary1', 'DepDelay');
{code}
results in the following error:
{code}
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"
{code}
Don't think this should throw this error.
was:
For the function
http://doc.madlib.net/latest/group__grp__summary.html
For a table with the following column:
depdelay | double precision |
{code:sql}
gpuser=> select madlib.summary('faa.otp_r', 'faa.otp_summary1', 'DepDelay');
{code}
results in the following error:
{code}
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"
{code}
As per PostgreSQL rules, though should be OK.
> Check input handling of SUMMARY function
> ----------------------------------------
>
> Key: MADLIB-954
> URL: https://issues.apache.org/jira/browse/MADLIB-954
> Project: Apache MADlib
> Issue Type: Bug
> Reporter: Frank McQuillan
> Fix For: v1.9
>
>
> For the function
> http://doc.madlib.net/latest/group__grp__summary.html
> For a table with the following column:
> depdelay | double precision |
> {code:sql}
> gpuser=> select madlib.summary('faa.otp_r', 'faa.otp_summary1', 'DepDelay');
> {code}
> results in the following error:
> {code}
> 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"
> {code}
> Don't think this should throw this error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)