Grammar should be as consistent as possible within and without foreach blocks
-----------------------------------------------------------------------------
Key: PIG-2360
URL: https://issues.apache.org/jira/browse/PIG-2360
Project: Pig
Issue Type: Improvement
Affects Versions: 0.9.0, 0.8.1, 0.10
Reporter: Jonathan Coveney
This works:
a = load 'thing';
b = foreach (group a all) {
sorted = order a by $0;
top = limit sorted 100;
generate flatten(top);
}
This does not:
a = load 'thing';
b = foreach (group a all) {
top = limit (order a by $0) 100;
generate flatten(top);
}
It is very confusing that this syntax works fine outside of the foreach, but
does not work within it. The pig grammar should seek to be as consistent and
usable as possible, except when there are hard, documented limitations (such as
nested foreach inside a foreach block)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira