diff options
author | zero323 <zero323@users.noreply.github.com> | 2017-02-13 10:37:34 -0800 |
---|---|---|
committer | Holden Karau <holden@us.ibm.com> | 2017-02-13 10:37:34 -0800 |
commit | ab88b2410623e5fdb06d558017bd6d50220e466a (patch) | |
tree | 9e082d08828457ae4c83e5b84879950dbcedcfa6 /common/network-shuffle | |
parent | 5e7cd3322b04f1dd207829b70546bc7ffdd63363 (diff) | |
download | spark-ab88b2410623e5fdb06d558017bd6d50220e466a.tar.gz spark-ab88b2410623e5fdb06d558017bd6d50220e466a.tar.bz2 spark-ab88b2410623e5fdb06d558017bd6d50220e466a.zip |
[SPARK-19427][PYTHON][SQL] Support data type string as a returnType argument of UDF
## What changes were proposed in this pull request?
Add support for data type string as a return type argument of `UserDefinedFunction`:
```python
f = udf(lambda x: x, "integer")
f.returnType
## IntegerType
```
## How was this patch tested?
Existing unit tests, additional unit tests covering new feature.
Author: zero323 <zero323@users.noreply.github.com>
Closes #16769 from zero323/SPARK-19427.
Diffstat (limited to 'common/network-shuffle')
0 files changed, 0 insertions, 0 deletions