You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2015/11/20 23:37:10 UTC

[jira] [Created] (SPARK-11894) Incorrect results are returned when using null

Xiao Li created SPARK-11894:
-------------------------------

             Summary: Incorrect results are returned when using null
                 Key: SPARK-11894
                 URL: https://issues.apache.org/jira/browse/SPARK-11894
             Project: Spark
          Issue Type: Sub-task
    Affects Versions: 1.6.0
            Reporter: Xiao Li


    val ds1 = Seq((new java.lang.Integer(0), "1"), (new java.lang.Integer(22), "2")).toDS()
    val ds2 = Seq((null.asInstanceOf[java.lang.Integer], "1"), (new java.lang.Integer(22), "2")).toDS()//toDF("key", "value").as('df2)

    val res1 = ds1.joinWith(ds2, lit(true)).collect()

The expected result should be 
((null,1),(null,1))
((22,2),(null,1))
((null,1),(22,2))
((22,2),(22,2))

The actual result is 
((0,1),(0,1))
((22,2),(0,1))
((0,1),(22,2))
((22,2),(22,2))



--
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