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

UDFs to join a bag

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11
    • None
    • Reviewed

    Description

      Get several request for a UDF to flatten a bag. Seems reasonable to create one in builtin:
      1. BagToTuple:

      {(a),(b),(c)}

      -> (a,b,c)
      2. BagToString(delimit="_"): {(a),(b),(c) -> "a_b_c"

      Attachments

        1. test_harnesss_1338753364
          70 kB
          Hien Luu
        2. PIG-2166-e2e.diff
          34 kB
          Hien Luu
        3. PIG-2166.diff
          27 kB
          Hien Luu
        4. bagtotuplestring.diff
          19 kB
          Hien Luu

        Activity

          People

            hluu Hien Luu
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: