diff options
author | zero323 <zero323@users.noreply.github.com> | 2017-01-31 18:03:39 -0800 |
---|---|---|
committer | Holden Karau <holden@us.ibm.com> | 2017-01-31 18:03:39 -0800 |
commit | 9063835803e54538c94d95bbddcb4810dd7a1c55 (patch) | |
tree | d22369466eca165a1be27c44de96bef1ed9b8b3f /R/pkg/inst/tests | |
parent | 081b7addaf9560563af0ce25912972e91a78cee6 (diff) | |
download | spark-9063835803e54538c94d95bbddcb4810dd7a1c55.tar.gz spark-9063835803e54538c94d95bbddcb4810dd7a1c55.tar.bz2 spark-9063835803e54538c94d95bbddcb4810dd7a1c55.zip |
[SPARK-19163][PYTHON][SQL] Delay _judf initialization to the __call__
## What changes were proposed in this pull request?
Defer `UserDefinedFunction._judf` initialization to the first call. This prevents unintended `SparkSession` initialization. This allows users to define and import UDF without creating a context / session as a side effect.
[SPARK-19163](https://issues.apache.org/jira/browse/SPARK-19163)
## How was this patch tested?
Unit tests.
Author: zero323 <zero323@users.noreply.github.com>
Closes #16536 from zero323/SPARK-19163.
Diffstat (limited to 'R/pkg/inst/tests')
0 files changed, 0 insertions, 0 deletions