GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/16886
[SPARK-19548][SQL] Support Hive UDFs which return typed Lists/Maps
## What changes were proposed in this pull request?
This PR adds support for Hive UDFs that return fully typed java Lists or
Maps, for example `List<String>` or `Map<String, Integer>`. It is also allowed
to nest these structures, for example `Map<String, List<Integer>>`. Raw
collections or collections using wildcards are still not supported, and cannot
be supported due to the lack of type information.
## How was this patch tested?
Modified existing tests in `HiveUDFSuite`, and I have added test cases for
raw collection and collection using wildcards.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-19548
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16886.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 #16886
----
commit 56cdabdd0d19d6a07229202e939c8bd5beef4b12
Author: Herman van Hovell <[email protected]>
Date: 2017-02-10T11:21:02Z
Support Hive UDFs which return typed Lists/Maps
----
---
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]