You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Joseph Babcock (JIRA)" <ji...@apache.org> on 2015/04/17 17:41:59 UTC

[jira] [Created] (PIG-4511) Add columns to prune from PluckTuple

Joseph Babcock created PIG-4511:
-----------------------------------

             Summary: Add columns to prune from PluckTuple
                 Key: PIG-4511
                 URL: https://issues.apache.org/jira/browse/PIG-4511
             Project: Pig
          Issue Type: Improvement
            Reporter: Joseph Babcock
            Priority: Minor
             Fix For: 0.14.0


Currently pluckTuple returns all columns in relation that match a prefix predicate. This patch allows a variable argument list of column names following the predicate to remove from the alias. 

Example:

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::','x',z')
d = foreach c generate pluck(*);
# returns y from a only



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)