We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b134f commit 49c62dcCopy full SHA for 49c62dc
sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
@@ -366,9 +366,8 @@ private[hive] case class HiveUdafFunction(
366
367
private val returnInspector = function.init(GenericUDAFEvaluator.Mode.COMPLETE, inspectors)
368
369
- // Cast required to avoid type inference selecting a deprecated Hive API.
370
private val buffer =
371
- function.getNewAggregationBuffer.asInstanceOf[GenericUDAFEvaluator.AbstractAggregationBuffer]
+ function.getNewAggregationBuffer
372
373
override def eval(input: Row): Any = unwrap(function.evaluate(buffer), returnInspector)
374
0 commit comments