durand remi created SPARK-9878:
----------------------------------

             Summary:  ReduceByKey + FullOuterJoin return 0 element if using an 
empty RDD
                 Key: SPARK-9878
                 URL: https://issues.apache.org/jira/browse/SPARK-9878
             Project: Spark
          Issue Type: Bug
    Affects Versions: 1.4.0
         Environment: linux ubuntu 64b spark-hadoop
launched with Local[2]
            Reporter: durand remi
            Priority: Minor


code to reproduce:

println("ok 
:"+sc.parallelize(List((3,4),(4,5))).fullOuterJoin(sc.emptyRDD[(Int,Seq[Int])]).count)
println("ko: 
"+sc.parallelize(List((3,4),(4,5))).fullOuterJoin(sc.emptyRDD[(Int,Seq[Int])].reduceByKey((e1,
 e2) => e1 ++ e2)).count)

what i expect: 
ok: 2
ko: 2

but what i have:
ok: 2
ko: 0




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to