[ 
https://issues.apache.org/jira/browse/PIG-2716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281216#comment-13281216
 ] 

Daniel Dai commented on PIG-2716:
---------------------------------

Seems it happens only if the file name contains "/*", other combination will 
trigger right error message:
a = load myinput/1111/.bz2 as (f:chararray);
a = load myinput/1111*.bz2 as (f:chararray);

Both get the error message:
<file 1.pig, line 1, column 9>  mismatched input 'myinput' expecting 
QUOTEDSTRING
                
> Misleading error message
> ------------------------
>
>                 Key: PIG-2716
>                 URL: https://issues.apache.org/jira/browse/PIG-2716
>             Project: Pig
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 0.9.2, 0.10.0
>            Reporter: Vivek Padmanabhan
>
> {code}
> a = load myinput/1111/*.bz2 as (f:chararray);
> b = foreach a generate INDEXOF(f,'#',0);
> c = limit b 100;
> dump c ;
> {code}
> The above script fails with the error message ;
> 2012-04-25 09:20:39,377 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR
> 1000: Error during parsing. Lexical error at line 5, column 0.  Encountered:
> <EOF> after : ""
> But the actual problem is in the first line. This becomes tricky to find when
> my script is large and there are multiple load statements.

--
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

        

Reply via email to