--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/2b6b7e08-645e-42ab-9277-9dbfe47a8200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/CANX%3DQ2ppshL_s47aLQRx-xYAADC_6y-5U_vRpxetjEb7T%3D7b1w%40mail.gmail.com.
Unlike Oscar, I know Pig pretty well, and I think that the scalding is doing what you want.
Sorry for the bad example guys; I got mixed up. I was under the impression that scalding wasn't emitting the group.Here's a better one:[name age location][a 10 pt][a 20 gb][b 10 uk][b 15 es]output should be:[a 10 [pt gb]][b 10 [uk es]]
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/24776b5b-5275-4dce-ab1f-834507080d90%40googlegroups.com.
By the way, how is the code suppose to look if I want to generate a list for more than one field? I hit an error on arity:
[name age location country][a 10 a pt][a 20 b gb][b 10 c uk]
[b 15 d es]data.groupBy('name) {_.min('age)
.toList('location, 'contry -> 'locations) //arity check error}
Caused by: java.lang.AssertionError: assertion failed: Arity of (class com.twitter.scalding.LowPriorityTupleConverters$$anon$5) is 1, which doesn't match: + ('siteKey', 'contentHost')
at scala.Predef$.assert(Predef.scala:179)at com.twitter.scalding.TupleArity$class.assertArityMatches(TupleArity.scala:42)at com.twitter.scalding.LowPriorityTupleConverters$$anon$5.assertArityMatches(TupleConverter.scala:47)at com.twitter.scalding.GroupBuilder.mapReduceMap(GroupBuilder.scala:188)at com.twitter.scalding.GroupBuilder.mapReduceMap(GroupBuilder.scala:37)
...I'm guessing I have to use something like mapPlusMap to generate a single field?Thanks!
On Thursday, April 17, 2014 4:01:40 PM UTC+1, Miguel Ping wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/f11df37c-a2f3-4c5f-9c5f-b2871dba82eb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/6a2958b3-94bd-46dd-841c-eca076d707c9%40googlegroups.com.