You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val r = SecondarySort.groupByKeyAndSortBySecondaryKey(data, 3)
val rSorted = r.collect().sortWith(lt = (a, b) => a._1.toDouble > b._1.toDouble)
assert(r.collect().zipWithIndex.forall {
case (((key, list), index)) => rSorted(index)._1.equals(key)
})
Actually r is not ordered, so it's not correct to compare r with rSorted
The text was updated successfully, but these errors were encountered:
Actually r is not ordered, so it's not correct to compare r with rSorted
The text was updated successfully, but these errors were encountered: