You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2015/11/23 06:12:10 UTC
[jira] [Commented] (SPARK-11757) Incorrect join output for joining
two dataframes loaded from Parquet format
[ https://issues.apache.org/jira/browse/SPARK-11757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15021534#comment-15021534 ]
Jeff Zhang commented on SPARK-11757:
------------------------------------
I tried it on master, seems this issue has been resolved.
> Incorrect join output for joining two dataframes loaded from Parquet format
> ---------------------------------------------------------------------------
>
> Key: SPARK-11757
> URL: https://issues.apache.org/jira/browse/SPARK-11757
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.5.0
> Environment: Python 2.7, Spark 1.5.0, Amazon linux ami https://aws.amazon.com/amazon-linux-ami/2015.03-release-notes/
> Reporter: Petri Kärkäs
> Labels: dataframe, emr, join, pyspark
>
> Reading in dataframes from Parquet format in s3, and executing a join between them fails when evoked by column name. Works correctly if a join condition is used instead:
> {code:none}
> sqlContext = SQLContext(sc)
> a = sqlContext.read.parquet('s3://path-to-data-a/')
> b = sqlContext.read.parquet('s3://path-to-data-b/')
> # result 0 rows
> c = a.join(b, on='id', how='left_outer')
> c.count()
> # correct output
> d = a.join(b, a['id']==b['id'], how='left_outer')
> d.count()
> {code}
--
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