You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2015/11/09 19:21:11 UTC

[jira] [Commented] (SPARK-10246) Join in PySpark using a list of column names

    [ https://issues.apache.org/jira/browse/SPARK-10246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997054#comment-14997054 ] 

Davies Liu commented on SPARK-10246:
------------------------------------

It already works.

> Join in PySpark using a list of column names
> --------------------------------------------
>
>                 Key: SPARK-10246
>                 URL: https://issues.apache.org/jira/browse/SPARK-10246
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>            Reporter: Michal Monselise
>
> Currently, there are two supported methods to perform a join: join condition and one column name.
> The documentation specifies that the join function can accept a list of conditions or a list of column names but neither are currently supported. This is discussed in issue SPARK-7197 as well.
> Functionality should match the documentation which currently contains an example in /spark/python/pyspark/sql/dataframe.py line 560:
> >>> df.join(df4, ['name', 'age']).select(df.name, df.age).collect()
>         [Row(name=u'Bob', age=5)]
>         """



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org