You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ankur (JIRA)" <ji...@apache.org> on 2010/04/23 13:14:50 UTC

[jira] Commented: (PIG-1392) Parser fails to recognize valid field

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

Ankur commented on PIG-1392:
----------------------------

This script works

A = LOAD '/tmp' as (a:int, b:chararray, c:int);
B = GROUP A BY (a, b);
C = FOREACH B {  GENERATE group, A.(b,c); } ;

> Parser fails to recognize valid field
> -------------------------------------
>
>                 Key: PIG-1392
>                 URL: https://issues.apache.org/jira/browse/PIG-1392
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Ankur
>             Fix For: 0.7.0
>
>
> Using this script below, parser fails to recognize a valid field in the relation and throws error
> A = LOAD '/tmp' as (a:int, b:chararray, c:int);
> B = GROUP A BY (a, b);
> C = FOREACH B { bg = A.(b,c); GENERATE group, bg; } ;
> The error thrown is
> 2010-04-23 10:16:20,610 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Invalid alias: c in {group: (a: int,b: chararray),A: {a: int,b: chararray,c: int}}

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