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

Xuefu Zhang resolved PIG-1619.
------------------------------

    Resolution: Fixed

Better error message is given now:

grunt> B = foreach A generate $0, 3.0e10.1;
2011-03-10 10:38:47,810 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
0: line 4:33 mismatched input [@58,161:162='.1',<86>,4:33] expecting SEMI_COLON


> Bad error message when a double constant is incorrectly specified
> -----------------------------------------------------------------
>
>                 Key: PIG-1619
>                 URL: https://issues.apache.org/jira/browse/PIG-1619
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Alan Gates
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> Given the following Pig Latin script (notice that the exponent for the 
> floating point is a floating point when it should be a integer)
> {code}
> A = load '/Users/gates/test/data/studenttab10';
> B = foreach A generate $0, 3.0e10.1;
> dump B;
> {code}
> Pig returns
> {code}
>  ERROR 2999: Unexpected internal error. For input string: "3.0e10.1"
> {code}
> This should be a syntax error caught by the parser.

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

Reply via email to