[ https://issues.apache.org/jira/browse/PIG-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vivek Padmanabhan resolved PIG-2321. ------------------------------------ Resolution: Duplicate This issue is already reported in PIG-2205.Marking this as duplicate. > Pig 0.9 generates an improper MR plan > ------------------------------------- > > Key: PIG-2321 > URL: https://issues.apache.org/jira/browse/PIG-2321 > Project: Pig > Issue Type: Bug > Affects Versions: 0.8.1, 0.9.0 > Reporter: Vivek Padmanabhan > Priority: Minor > > The below script compiles and the MR plan has 3 jobs. But the script will > always fail. > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer > - MR plan size before optimization: 3 > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer > - MR plan size after optimization: 2 > {code} > a0 = load 'i1' as > (frcode,type:chararray,src_pty:chararray,srcpvid:chararray,src_spaceid:chararray,pageparams); > b2 = group a0 by (type, frcode) parallel 2; > b3 = foreach b2 generate COUNT_STAR(b2.$0) as num_clicks,flatten(group) ; > store b3 into 'junkout3'; > {code} > The script fails due to improper reference at COUNT_STAR(b2.$0) . But this > validation should be done at the compile time. -- 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