[ https://issues.apache.org/jira/browse/PIG-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487980#comment-13487980 ]
Koji Noguchi commented on PIG-2474: ----------------------------------- bq. Duplicate of PIG-2119. Was this fixed in PIG-2119? This seems like a same issue of what I hit in PIG-2970 that already had PIG-2119 in. > DuplicateForEachColumnRewrite fails in some pig scripts > ------------------------------------------------------- > > Key: PIG-2474 > URL: https://issues.apache.org/jira/browse/PIG-2474 > Project: Pig > Issue Type: Bug > Affects Versions: 0.9.2 > Reporter: Dmitriy V. Ryaboy > > The following script fails: > {code} > l = load 'tmp/t' as (key:int, v1, v2); > g = group l by key; > f = foreach g { o = order l by v2; generate l.v1; }; > describe f; > f: {key: int,v1: bytearray,v2: bytearray} > -- NOTE: this schema for f is the schema of o, not of l.v1 that we generate! > dump f > 2012-01-13 22:19:09,947 [main] INFO > org.apache.pig.tools.pigstats.ScriptState - Pig features used in the script: > GROUP_BY > 2012-01-13 22:19:09,974 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 2000: Error processing rule DuplicateForEachColumnRewrite > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira