GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/4056
[SPARK-5193][SQL] Reconcile Java and Scala UDFRegistration.
As part of SPARK-5193:
1. Removed UDFRegistration as a mixin in SQLContext and made it a field
("udf").
2. For Java UDFs, renamed dataType to returnType, and made that the 2nd
argument since the UDF itself can be long, and it is more readable if the UDF
itself is the last argument.
3. Added all Java UDF registration methods to Scala's UDFRegistration.
4. Documentation
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark udf-registration
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4056.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4056
----
commit 032f0065bf78d24c53259d599d4e39caa8481085
Author: Reynold Xin <[email protected]>
Date: 2015-01-15T04:37:23Z
[SPARK-5193][SQL] Reconcile Java and Scala UDFRegistration.
1. Removed UDFRegistration as a mixin in SQLContext and made it a field
("udf").
2. For Java UDFs, renamed dataType to returnType, and made that the 2nd
argument since the UDF itself can be long.
3. Added all Java UDF registration methods to Scala's UDFRegistration.
4. Documentation
----
---
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]