GitHub user srinathshankar opened a pull request:

    [SPARK-17946][PYSPARK] Python crossJoin API similar to Scala

    ## What changes were proposed in this pull request?
    Add a crossJoin function to the DataFrame API similar to that in Scala. 
Joins with no condition (cartesian products) must be specified with the 
crossJoin API
    ## How was this patch tested?
    Added python tests to ensure that an AnalysisException if a cartesian 
product is specified without crossJoin(), and that cartesian products can 
execute if specified via crossJoin()
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    Please review before 
opening a pull request.

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

    $ git pull crosspython

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 #15493
commit 9b4d995fa5e7ca0d9636b708fcec1088054c1022
Author: Srinath Shankar <>
Date:   2016-10-14T21:00:08Z

    [SPARK-17946][PYSPARK] Python crossJoin API similar to Scala


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 or file a JIRA ticket
with INFRA.

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

Reply via email to