Github user gczsjdy commented on the issue:
https://github.com/apache/spark/pull/17359
@viirya Sorry for the late reply. It seems Spark cannot use Hive
`GenericUDAFnGrams`, since Spark only supports subclass of
`AbstractGenericUDAFResolver` & `UDAF` for Hive UDAF, while `GenericUDAFnGrams`
is subclass of `GenericUDAFResolver`. Spark will return a `No handler for Hive
UDF` exception. So this may be a good reason to add new feature for Spark
aggregate expression.
Or do you think it's reasonable to make Spark support registering subclass
of `GenericUDAFResolver`?
---
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]