Re: tuple as keys in pyspark show up reversed

2014-03-25 Thread Friso van Vollenhoven
OK, forget about this question. It was a nasty, one character typo in my own code (sorting by rating instead of item at one point). Best, Friso On Tue, Mar 25, 2014 at 1:53 PM, Friso van Vollenhoven < f.van.vollenho...@gmail.com> wrote: > Hi, > > I have an example where I use

tuple as keys in pyspark show up reversed

2014-03-25 Thread Friso van Vollenhoven
Hi, I have an example where I use a tuple of (int,int) in Python as key for a RDD. When I do a reduceByKey(...), sometimes the tuples turn up with the two int's reversed in order (which is problematic, as the ordering is part of the key). Here is a ipython notebook that has some code and demonstr