spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HyukjinKwon <>
Subject [GitHub] spark pull request #20173: [SPARK-22901][PYTHON][FOLLOWUP] Adds the doc for ...
Date Sat, 06 Jan 2018 09:18:47 GMT
GitHub user HyukjinKwon opened a pull request:

    [SPARK-22901][PYTHON][FOLLOWUP] Adds the doc for asNondeterministic for wrapped UDF function

    ## What changes were proposed in this pull request?
    This PR wraps the `asNondeterministic` attribute in the wrapped UDF function to set the
docstring properly.
    from pyspark.sql.functions import udf
    help(udf(lambda x: x).asNondeterministic)
    Help on function <lambda> in module pyspark.sql.udf:
    <lambda> lambda
    Help on function asNondeterministic in module pyspark.sql.udf:
        Updates UserDefinedFunction to nondeterministic.
        .. versionadded:: 2.3
    ## How was this patch tested?
    Manually tested and a simple test was added.

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

    $ git pull SPARK-22901-followup

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20173
commit d92dac3f73f8bd0f72ee04e5a2fbccc3887b4b4b
Author: hyukjinkwon <gurwls223@...>
Date:   2018-01-06T09:13:59Z

    Adds the doc for asNondeterministic for wrapped UDF function



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message