pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-1926) Sample/Limit should take scalar
Date Mon, 21 Mar 2011 19:28:05 GMT
Sample/Limit should take scalar
-------------------------------

                 Key: PIG-1926
                 URL: https://issues.apache.org/jira/browse/PIG-1926
             Project: Pig
          Issue Type: Improvement
            Reporter: Daniel Dai


Currently, Limit, Sample only takes a constant. It would be better we can use a scalar in
the place of constant. Eg:

{code}
a = load 'a.txt';
b = group a by all;
c = foreach b generate COUNT(*) as sum;
d = order a by $0;
e = limit d c.sum/100;
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message