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