hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1101) Pig parser does not recognize its own data type in LIMIT statement
Date Mon, 23 Nov 2009 22:29:39 GMT

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

Alan Gates commented on PIG-1101:
---------------------------------

I'll review this patch.

> Pig parser does not recognize its own data type in LIMIT statement
> ------------------------------------------------------------------
>
>                 Key: PIG-1101
>                 URL: https://issues.apache.org/jira/browse/PIG-1101
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.6.0
>            Reporter: Viraj Bhat
>            Assignee: Ashutosh Chauhan
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: pig-1101.patch
>
>
> I have a Pig script in which I specify the number of records to limit as a long type.

> {code}
> A = LOAD '/user/viraj/echo.txt' AS (txt:chararray);
> B = LIMIT A 10L;
> DUMP B;
> {code}
> I get a parser error:
> 2009-11-21 02:25:51,100 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error
during parsing. Encountered " <LONGINTEGER> "10L "" at line 3, column 13.
> Was expecting:
>     <INTEGER> ...
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.generateParseException(QueryParser.java:8963)
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.jj_consume_token(QueryParser.java:8839)
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.LimitClause(QueryParser.java:1656)
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:1280)
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:893)
>         at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:682)
>         at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:63)
>         at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1017)
> In fact 10L seems to work in the foreach generate construct.
> Viraj    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message