You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Egor Pahomov (JIRA)" <ji...@apache.org> on 2016/06/27 18:08:52 UTC
[jira] [Created] (SPARK-16228) "Percentile" needs explicit cast to
double
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org