spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-11803) Dataset self join returns incorrect result
Date Wed, 18 Nov 2015 05:22:11 GMT

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

Xiao Li commented on SPARK-11803:
---------------------------------

We need to detect if this is a self join in the function joinWith. 

> Dataset self join returns incorrect result
> ------------------------------------------
>
>                 Key: SPARK-11803
>                 URL: https://issues.apache.org/jira/browse/SPARK-11803
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>
> See the test case in https://github.com/apache/spark/pull/9789
> {code}
>   ignore("self join") {
>     val ds = Seq("1", "2").toDS().as("a")
>     val joined = ds.joinWith(ds, lit(true))
>     checkAnswer(joined, ("1", "1"), ("1", "2"), ("2", "1"), ("2", "2"))
>   }
> {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


Mime
View raw message