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