[ https://issues.apache.org/jira/browse/PIG-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-1128: ---------------------------- Attachment: PIG-1128-1.patch > column pruning causing failure when foreach has user-specified schema > --------------------------------------------------------------------- > > Key: PIG-1128 > URL: https://issues.apache.org/jira/browse/PIG-1128 > Project: Pig > Issue Type: Bug > Affects Versions: 0.6.0, 0.7.0 > Reporter: Thejas M Nair > Assignee: Daniel Dai > Fix For: 0.6.0 > > Attachments: PIG-1128-1.patch > > > Issue is seen in 0.6.0 and trunk. > grunt> l = load 'dummy.txt' as ( c1 : chararray, c2 : int); > > grunt> f1 = foreach l generate c1 as c1 : chararray, c2 as c2 : int, 'CA' as > state : chararray; > grunt> f2 = foreach f1 generate c1 as c1 : chararray; > > grunt> explain f2; > 2009-12-04 13:11:19,010 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1022: Type mismatch merging schema prefix. Field Schema: chararray. Other > Field Schema: c2: int > ( it does not matter if the new schema has new/different column name - ) > grunt>l = load 'dummy.txt' as ( c1 : chararray, c2 : int); > grunt>f1 = foreach l generate c1 as c11 : chararray, c2 as c22 : int, 'CA' as > state : chararray; > grunt>f2 = foreach f1 generate c11 as c111 : chararray; > grunt> explain f2; > 2009-12-04 13:13:01,462 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1022: Type mismatch merging schema prefix. Field Schema: chararray. Other > Field Schema: c22: int -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.