Github user holdenk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19630#discussion_r151676061
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -2049,132 +2050,12 @@ def map_values(col):
     
     # ---------------------------- User Defined Function 
----------------------------------
     
    -def _wrap_function(sc, func, returnType):
    -    command = (func, returnType)
    -    pickled_command, broadcast_vars, env, includes = 
_prepare_for_python_RDD(sc, command)
    -    return sc._jvm.PythonFunction(bytearray(pickled_command), env, 
includes, sc.pythonExec,
    -                                  sc.pythonVer, broadcast_vars, 
sc._javaAccumulator)
    -
    -
    -class PythonUdfType(object):
    -    # row-at-a-time UDFs
    -    NORMAL_UDF = 0
    -    # scalar vectorized UDFs
    -    PANDAS_UDF = 1
    -    # grouped vectorized UDFs
    -    PANDAS_GROUPED_UDF = 2
    -
    -
    -class UserDefinedFunction(object):
    --- End diff --
    
    So moving this will probably break some peoples code.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to