GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/12259
[SPARK-14487][SQL] User Defined Type registration without
SQLUserDefinedType annotation
## What changes were proposed in this pull request?
JIRA: https://issues.apache.org/jira/browse/SPARK-14487
Currently we use `SQLUserDefinedType` annotation to register UDTs for user
classes. However, by doing this, we add Spark dependency to user classes.
For some user classes, it is unnecessary to add such dependency that will
increase deployment difficulty.
We should provide alternative approach to register UDTs for user classes
without `SQLUserDefinedType` annotation.
## How was this patch tested?
`UserDefinedTypeSuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 improve-sql-usertype
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12259.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 #12259
----
commit b270bb9340c214f64ab06567b939e7706d462fe9
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-04-08T10:47:27Z
init import.
----
---
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]