scalding icon indicating copy to clipboard operation
scalding copied to clipboard

Make ProductSetter implicit

Open reconditesea opened this issue 13 years ago • 2 comments

Now that we have supported ProductTupleConverter. Do we wanna make ProductSetter implicit?

https://github.com/twitter/scalding/blob/develop/scalding-core/src/main/scala/com/twitter/scalding/TupleSetter.scala#L66

reconditesea avatar May 31 '13 23:05 reconditesea

Maybe, but I'm worried about something: lots of things are Products: case classes, Lists, and more.

We don't intend to follow the rules in ProductSetter for a list (which is just an arity 2 Product with a head and tail). Same with case classes, as we currently put the whole class in the tuple position.

So, I think this would change a lot of behavior unless I'm wrong.

johnynek avatar Jun 01 '13 18:06 johnynek

I guess you're right. Change this to implicit will possibly cause many confusions and messes. I will close this issue for now.

reconditesea avatar Jun 03 '13 07:06 reconditesea