Description
select percentile(cast(id as bigint), cast(0.5 as double)) from temp.bla
Works.
select percentile(cast(id as bigint), 0.5 ) from temp.bla
Throws
Error in query: No handler for Hive UDF 'org.apache.hadoop.hive.ql.udf.UDAFPercentile': org.apache.hadoop.hive.ql.exec.NoMatchingMethodException: No matching method for class org.apache.hadoop.hive.ql.udf.UDAFPercentile with (bigint, decimal(38,18)). Possible choices: FUNC(bigint, array<double>) FUNC(bigint, double) ; line 1 pos 7