GitHub user 0x0FFF opened a pull request:

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

    [SPARK-9014][SQL] Allow Python spark API to use built-in exponential 
operator

    This PR addresses 
(SPARK-9014)[https://issues.apache.org/jira/browse/SPARK-9014]
    Added functionality: `Column` object in Python now supports exponential 
operator `**`
    Example:
    ```
    from pyspark.sql import *
    df = sqlContext.createDataFrame([Row(a=2)])
    df.select(3**df.a,df.a**3,df.a**df.a).collect()
    ```
    Outputs:
    ```
    [Row(POWER(3.0, a)=9.0, POWER(a, 3.0)=8.0, POWER(a, a)=4.0)]
    ```

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

    $ git pull https://github.com/0x0FFF/spark SPARK-9014

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

    https://github.com/apache/spark/pull/8658.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 #8658
    
----
commit 485e9ba1d1dc2df81130a8bd883105646247d449
Author: 0x0FFF <programme...@gmail.com>
Date:   2015-09-08T21:27:28Z

    [SPARK-9014][SQL] Allow Python spark API to use built-in exponential 
operator

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to