The percentile UDAF came in across a couple of PRs.   Commit
f33d55046427b8594fd19bda5fd2214eeeab1a95 reflects the most recent work, I
believe.  It will be part of the 1.3.0 release very soon:
http://apache-spark-developers-list.1001551.n3.nabble.com/VOTE-Release-Apache-Spark-1-3-0-RC1-tt10658.html

On Thu, Feb 19, 2015 at 3:39 PM, Mohnish Kodnani <[email protected]>
wrote:

> Isnt that PR about being able to pass in an array to percentile function.
> If I understand this error correctly, its not able to find the function
> percentile itself.
> Also, if I am incorrect and that PR fixes it, is it available in a release
> ?
>
>
> On Thu, Feb 19, 2015 at 3:27 PM, Mark Hamstra <[email protected]>
> wrote:
>
>> Already fixed: https://github.com/apache/spark/pull/2802
>>
>>
>> On Thu, Feb 19, 2015 at 3:17 PM, Mohnish Kodnani <
>> [email protected]> wrote:
>>
>>> Hi,
>>> I am trying to use percentile and getting the following error. I am
>>> using spark 1.2.0. Does UDAF percentile exist in that code line and do i
>>> have to do something to get this to work.
>>>
>>> java.util.NoSuchElementException: key not found: percentile
>>>         at scala.collection.MapLike$class.default(MapLike.scala:228)
>>>         at scala.collection.AbstractMap.default(Map.scala:58)
>>>         at scala.collection.mutable.HashMap.apply(HashMap.scala:64)
>>>         at
>>> org.apache.spark.sql.catalyst.analysis.SimpleFunctionRegistry.lookupFunction(FunctionRegistry.scala:53)
>>>         at
>>> org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveFunctions$$anonfun$apply$10$$anonfun$applyOrElse$2.applyOrElse(Analyzer.scala:220)
>>>         at
>>> org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveFunctions$$anonfun$apply$10$$anonfun$applyOrElse$2.applyOrElse(Analyzer.scala:218)
>>>         at
>>> org.apache.spark.sql.catalyst.trees.TreeNode.transformDown(TreeNode.scala:144)
>>>         at
>>> org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$4.apply(TreeNode.scala:162)
>>>
>>>
>>> Thanks
>>> mohnish
>>>
>>>
>>
>

Reply via email to