[ https://issues.apache.org/jira/browse/PIG-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207866#comment-13207866 ]
Eli Finkelshteyn commented on PIG-2529: --------------------------------------- Cool, happy to do it. I don't see a place for tests there though... Should I make a src/test/Python dir and throw it in there, or did you have something else in mind? This is my first contribution, so I'm a little fuzzy on what's expected behavior. > Creation of a Python PiggyBank > ------------------------------ > > Key: PIG-2529 > URL: https://issues.apache.org/jira/browse/PIG-2529 > Project: Pig > Issue Type: New Feature > Components: piggybank > Reporter: Eli Finkelshteyn > Priority: Minor > Labels: piggybank, python > > As per a conversation on the Pig user list, I think it makes sense to create > a PiggyBank for Python functions. To get us started, here's something short > and quick I wrote to convert a bag of single item tuples to one single tuple: > @outputSchema("t:tuple()") > > def bagToTuple(bag): > > t = tuple([item[0] for item in bag]) > > return t -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira