pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PIG-2021) Parser error while referring a map nested foreach
Date Tue, 10 May 2011 21:02:47 GMT

     [ https://issues.apache.org/jira/browse/PIG-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olga Natkovich resolved PIG-2021.
---------------------------------

    Resolution: Fixed

Vivek, please, re-open if the issue still happens with the latest pig 0.9 code.

> Parser error while referring a map nested foreach
> -------------------------------------------------
>
>                 Key: PIG-2021
>                 URL: https://issues.apache.org/jira/browse/PIG-2021
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Vivek Padmanabhan
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> The below script is throwing parser errors
> {code}
> register string.jar;
> A = load 'test1'  using MapLoader() as ( s, m, l );                       
> B = foreach A generate *, string.URLPARSE((chararray) s#'url') as parsedurl;
> C = foreach B {
>   urlpath = (chararray) parsedurl#'path';
>   lc_urlpath = string.TOLOWERCASE((chararray) urlpath);
>   generate *;
> };
> {code}
> Error message;
> | Failed to generate logical plan.
> |Nested exception: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2225: Projection
with nothing to reference!
> PIG-2002 reports a similar issue, but when i tried with the patch of PIG-2002 i was getting
the below exception;
>  ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file repro.pig, line 11, column
33>  mismatched input '(' expecting SEMI_COLON

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message