Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2529

Creation of a Python PiggyBank

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: piggybank
    • Labels:

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elifinkelshteyn Eli Finkelshteyn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: