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

Add columns to prune from PluckTuple

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.14.0
    • 0.15.0
    • None
    • None
    • Patch Available
    • Reviewed

    Description

      Currently pluckTuple returns all columns in relation that match a prefix predicate. This patch allows a boolean flag 'false' to specify that columns NOT matching this prefix should be retained.

      Example:

      <source>
      a = load 'a' as (x:int,y:chararray,z:long)
      b = load 'b' as (x:int,y:chararray,z:long)
      c = join a by x, b by x;
      Define pluck PluckTuple('a::','false')
      – returns b
      </source>

      Attachments

        1. pluckTuple.patch
          7 kB
          Joseph Babcock

        Activity

          People

            jbabcock Joseph Babcock
            jbabcock Joseph Babcock
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: