Sure, use this function:

percentile(BIGINT col, p)

and set p to be 0.5

Cheers,
R

On Wed, Apr 18, 2012 at 3:32 PM, sonia gehlot <sonia.geh...@gmail.com>wrote:

> Hi Guys,
>
> Any idea, how to calculate median in Hive? Do we have any inbuilt function
> for it?
>
> Thanks for any help.
>
> Sonia
>

Reply via email to