Skip to content

Commit

Permalink
Update hiveUdfs.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pzzs committed Mar 23, 2015
1 parent 98b134f commit 49c62dc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,8 @@ private[hive] case class HiveUdafFunction(

private val returnInspector = function.init(GenericUDAFEvaluator.Mode.COMPLETE, inspectors)

// Cast required to avoid type inference selecting a deprecated Hive API.
private val buffer =
function.getNewAggregationBuffer.asInstanceOf[GenericUDAFEvaluator.AbstractAggregationBuffer]
function.getNewAggregationBuffer

override def eval(input: Row): Any = unwrap(function.evaluate(buffer), returnInspector)

Expand Down

0 comments on commit 49c62dc

Please sign in to comment.