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

Add columns to prune from PluckTuple

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: