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

Creation of a Python PiggyBank

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • piggybank

    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

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

            Dates

              Created:
              Updated: