[ https://issues.apache.org/jira/browse/PIG-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Corinne Chandel resolved PIG-1624. ---------------------------------- Resolution: Fixed Updates included in Pig-1600 -- See pig080-3.patch > FOREACH AS documentation is incorrect > ------------------------------------- > > Key: PIG-1624 > URL: https://issues.apache.org/jira/browse/PIG-1624 > Project: Pig > Issue Type: Bug > Components: documentation > Affects Versions: 0.7.0 > Reporter: Alan Gates > Assignee: Corinne Chandel > Fix For: 0.8.0 > > > According to the Pig Latin manual > (http://hadoop.apache.org/pig/docs/r0.7.0/piglatin_ref2.html#FOREACH) the > correct usage of AS in a FOREACH clause is: > {code} > B = foreach A generate $0, $1, $2 as (user, age, gpa); > {code} > However, this is incorrect, and produce a syntax error. The correct syntax > for AS for FOREACH is: > {code} > B = foreach A generate $0 as user, $1 as age, $2 as gpa; > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.