leewyang commented on pull request #28603: URL: https://github.com/apache/spark/pull/28603#issuecomment-634257789
@redsanket @HyukjinKwon I pulled the latest `branch-3.0` today (which includes this patch), but I'm now seeing the following weird behavior: ``` >>> rdd1 = sc.parallelize([1,2,3,4,5]) >>> rdd2 = sc.parallelize([6,7,8,9,10]) >>> pairRDD1 = rdd1.zip(rdd2) >>> unionRDD1 = sc.union([pairRDD1, pairRDD1]) >>> unionRDD1.collect() [((1, 6), (2, 7)), ((3, 8), (4, 9)), ((5, 10), (1, 6)), ((2, 7), (3, 8)), ((4, 9), (5, 10))] >>> unionRDD1.count() 0 ``` ... where Spark 2.4.5 produces: ``` >>> unionRDD1.collect() [(1, 6), (2, 7), (3, 8), (4, 9), (5, 10), (1, 6), (2, 7), (3, 8), (4, 9), (5, 10)] >>> unionRDD1.count() 10 ``` So, the output is incorrect/unexpected and the count is zero. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
