You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Anurag Phadke <ap...@mozilla.com> on 2011/02/10 19:16:01 UTC

udf function to calculate median

Does Hive have any UDF function to calculate median for a given column?

-anurag

Re: udf function to calculate median

Posted by Jerome Boulon <jb...@netflix.com>.
Yes, the percentile function will give you the median information.
/Jerome.

On 2/10/11 10:16 AM, "Anurag Phadke" <ap...@mozilla.com> wrote:

>Does Hive have any UDF function to calculate median for a given column?
>
>-anurag
>