Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20348#discussion_r162861480
--- Diff: python/pyspark/sql/udf.py ---
@@ -213,6 +213,10 @@ def register(self, name, f, returnType=None):
`returnType` can be optionally specified when `f` is a Python
function but not
when `f` is a user-defined function. Please see below.
+ To register a non-deterministic Python function, users need to
first build
+ a nondeterministic user-defined function for the Python function
and then register it
--- End diff --
`nondeterministic` is better
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]