Hi,
Being used to the Hive grouping like "GROUP BY userId, productId, year" I'm wondering what's the best way to do it in Stratosphere? The groupBy's KeySelector implies that a Comparable object is returned, however, the obvious choice like TupleN is not comparable. In primitive cases I would prefer to avoid introducing comparable extra entities for grouping tuples of "primitive" types. Would it make sense to introduce "ComparableTupleN<T1 extends Comparable<? extends T1>, ..., Tn extends Comparable<? extends Tn>>"?
Or am I missing the obvious way in a Stratosphere way?
Thanks,
Vyacheslav