GitHub user mstewart141 opened a pull request:

    https://github.com/apache/spark/pull/20798

    [SPARK-23645][PYTHON] Allow python udfs to be called with keyword arguments

    ## [WIP]
    
    ## What changes were proposed in this pull request?
    
    Currently one can not pass keyword arguments in python UDFs. This patch 
allows keyword arguments to be mixed arbitrarily with positional arguments, as 
seen in normal python functions. 
    
    UDFs accepting an arbitrary (undefined) number of columns are a different 
matter, and not addressed here.
    
    ## How was this patch tested?
    
    I will add unit tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mstewart141/spark udfkw

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20798.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 #20798
    
----
commit 5ec810a7c36691df1877ffc11e6f06392d438485
Author: Michael (Stu) Stewart <mstewart141@...>
Date:   2018-03-11T20:38:29Z

    [SPARK-23645][PYTHON] Allow python udfs to be called with keyword arguments

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to