spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Ajtkulov <ajtku...@gmail.com>
Subject Join, order
Date Wed, 23 Oct 2013 08:14:04 GMT
Hi,

Should join save order?

Code:
val vals = sc.makeRDD(Array(1,2,3,4,5))
val links = sc.makeRDD(Array(4,1))
new PairRDDFunctions(vals zip vals).join(links zip links).collect

Returns Array((1,(1,1)), (4,(4,4)))
But I expect reverse order, without sort by key.

Are there other functions that save order on join operation?

Regards,
Pavel

Mime
View raw message