hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaibhav Aggarwal (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1387) Make PERCENTILE work with double data type
Date Thu, 03 Jun 2010 21:08:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vaibhav Aggarwal updated HIVE-1387:
-----------------------------------

    Attachment: patch-1387.patch

I have created a patch which fixes the Hive user defined aggregation function "percentile"
to work for double data type and to throw a meaningful exception when the input is out of
range.

The patch does the following:

1. Uses DoubleWritable instead of LongWritable to work for both int and double data types.
2. The percentile function expects the input to be in the range 0.0 to 1.0. The patch modifies
the code to throw a UDFArgumentTypeException when the input is out of range.


> Make PERCENTILE work with double data type
> ------------------------------------------
>
>                 Key: HIVE-1387
>                 URL: https://issues.apache.org/jira/browse/HIVE-1387
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Vaibhav Aggarwal
>         Attachments: patch-1387.patch
>
>
> The PERCENTILE UDAF does not work with double datatype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message