-
- Downloads
[SPARK-18777][PYTHON][SQL] Return UDF from udf.register
## What changes were proposed in this pull request? - Move udf wrapping code from `functions.udf` to `functions.UserDefinedFunction`. - Return wrapped udf from `catalog.registerFunction` and dependent methods. - Update docstrings in `catalog.registerFunction` and `SQLContext.registerFunction`. - Unit tests. ## How was this patch tested? - Existing unit tests and docstests. - Additional tests covering new feature. Author: zero323 <zero323@users.noreply.github.com> Closes #17831 from zero323/SPARK-18777.
Showing
- python/pyspark/sql/catalog.py 8 additions, 3 deletionspython/pyspark/sql/catalog.py
- python/pyspark/sql/context.py 8 additions, 4 deletionspython/pyspark/sql/context.py
- python/pyspark/sql/functions.py 14 additions, 9 deletionspython/pyspark/sql/functions.py
- python/pyspark/sql/tests.py 9 additions, 0 deletionspython/pyspark/sql/tests.py
Loading
Please register or sign in to comment