Github user holdenk commented on the issue:
https://github.com/apache/spark/pull/17831
I don't think the Scala API is particularly consistent and I'd argue that
this does actually match the current API as much as is reasonable. Looking at
the udf.register interface defined in UDFRegistration.scala this does return
either a `UserDefinedAggregateFunction` or `UserDefinedFunction` when passed in
UserDefinedAggregateFunction or a Function0 through Function22. depending on
which function is passed in most of the time. We do return Unit for the private
`registerJavaFunction` & when registering a UDF1 through UDF22 . (Also
@gatorsmile this doesn't change the scala API, its really just plumbing through
the existing Scala API to Python).
---
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]