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:12:50 UTC
[jira] Created: (PIG-1392) Parser fails to recognize valid field
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
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.
[jira] Commented: (PIG-1392) Parser fails to recognize valid field
Posted by "Ankur (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (PIG-1392) Parser fails to recognize valid field
Posted by "niraj rai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898998#action_12898998 ]
niraj rai commented on PIG-1392:
--------------------------------
I have run the test manually and all the tests have been successful.
> 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
> Assignee: niraj rai
> Fix For: 0.8.0
>
> Attachments: nested_parser.patch
>
>
> 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.
[jira] Assigned: (PIG-1392) Parser fails to recognize valid field
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich reassigned PIG-1392:
-----------------------------------
Assignee: niraj rai
> 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
> Assignee: niraj rai
> Fix For: 0.8.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.
[jira] Updated: (PIG-1392) Parser fails to recognize valid field
Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1392:
------------------------------
Status: Resolved (was: Patch Available)
Hadoop Flags: [Reviewed]
Resolution: Fixed
The parser bug is fixed, but encounters another problem which is tracked by PIG-1545. The work around is to disable the secondary key optimization.
The patch is committed to the trunk.
> 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
> Assignee: niraj rai
> Fix For: 0.8.0
>
> Attachments: nested_parser.patch
>
>
> 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.
[jira] Updated: (PIG-1392) Parser fails to recognize valid field
Posted by "niraj rai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
niraj rai updated PIG-1392:
---------------------------
Attachment: nested_parser.patch
> 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
> Assignee: niraj rai
> Fix For: 0.8.0
>
> Attachments: nested_parser.patch
>
>
> 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.
[jira] Updated: (PIG-1392) Parser fails to recognize valid field
Posted by "Pradeep Kamath (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-1392:
--------------------------------
Fix Version/s: 0.8.0
(was: 0.7.0)
Unlinking this from 0.7 release and moving to 0.8 since there is a workaround.
> 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.8.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.
[jira] Commented: (PIG-1392) Parser fails to recognize valid field
Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899003#action_12899003 ]
Richard Ding commented on PIG-1392:
-----------------------------------
Thanks Niraj for fixing this issue.
> 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
> Assignee: niraj rai
> Fix For: 0.8.0
>
> Attachments: nested_parser.patch
>
>
> 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.
[jira] Updated: (PIG-1392) Parser fails to recognize valid field
Posted by "niraj rai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
niraj rai updated PIG-1392:
---------------------------
Status: Patch Available (was: Open)
Release Note:
The issue is fixed but while fixing this, I encountered another problem of can't open iterator for C. Created jira# PIG-1545. There was also issue in the secondary optimizer, where it calls system.setProperties to set the pig.exec.nosecondarykey . I changed to use pigContext properties.
> 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
> Assignee: niraj rai
> Fix For: 0.8.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.
[jira] Updated: (PIG-1392) Parser fails to recognize valid field
Posted by "Ankur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ankur updated PIG-1392:
-----------------------
Fix Version/s: 0.7.0
> 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.