GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/20288
[SPARK-23122][PYTHON][SQL] Deprecate register* for UDFs in SQLContext and
Catalog in PySpark
## What changes were proposed in this pull request?
This PR proposes to deprecate `register*` for UDFs in `SQLContext` and
`Catalog` in Spark 2.3.0.
These are inconsistent with Scala / Java APIs and also these basically do
the same things with `spark.udf.register*`.
Also, this PR moves the logcis from `[sqlContext|spark.catalog].register*`
to `spark.udf.register*` and reuse the docstring.
## How was this patch tested?
Manually tested, manually checked the API documentation and tests added to
check if deprecated APIs call the aliases correctly.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark deprecate-udf
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20288.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 #20288
----
commit f63105c7faddc79ccd624c9234b56916efec3569
Author: hyukjinkwon <gurwls223@...>
Date: 2018-01-17T02:49:08Z
Deprecate register* for UDFs in SQLContext and Catalog in PySpark
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]