Egor Pahomov created SPARK-16228: ------------------------------------ Summary: "Percentile" needs explicit cast to double Key: SPARK-16228 URL: https://issues.apache.org/jira/browse/SPARK-16228 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 2.0.0 Reporter: Egor Pahomov Priority: Blocker
<code> select percentile(cast(id as bigint), cast(0.5 as double)) from temp.bla <code> Works. <code> select percentile(cast(id as bigint), 0.5 ) from temp.bla <code> Throws <code> 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 <code> -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org