Skip to content

Commit 49c62dc

Browse files
committed
Update hiveUdfs.scala
1 parent 98b134f commit 49c62dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,8 @@ private[hive] case class HiveUdafFunction(
366366

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

369-
// Cast required to avoid type inference selecting a deprecated Hive API.
370369
private val buffer =
371-
function.getNewAggregationBuffer.asInstanceOf[GenericUDAFEvaluator.AbstractAggregationBuffer]
370+
function.getNewAggregationBuffer
372371

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

0 commit comments

Comments
 (0)