Github user gvramana commented on a diff in the pull request:
https://github.com/apache/spark/pull/2802#discussion_r19825518
--- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
---
@@ -200,12 +200,13 @@ private[hive] case class HiveGenericUdaf(
@transient
protected lazy val objectInspector = {
- resolver.getEvaluator(children.map(_.dataType.toTypeInfo).toArray)
+ val parameterInfo = new
SimpleGenericUDAFParameterInfo(inspectors.toArray,false,false)
--- End diff --
Actually, It is other way round. GenericUDAFResolver and its method
GenericUDAFEvaluator getEvaluator(TypeInfo[] info) is deprecated and replaced
by GenericUDAFResolver2. AbstractGenericUDAFResolver is for migration.
UDAF function like percentile_approx no longer supports the deprecated
interface. So i have changed this to use
AbstractGenericUDAFResolver(GenericUDAFParameterInfo).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]