[ https://issues.apache.org/jira/browse/PIG-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13720531#comment-13720531 ]
Sergey commented on PIG-1654: ----------------------------- Not a problem. > Pig should check schema alias duplication at any levels. > -------------------------------------------------------- > > Key: PIG-1654 > URL: https://issues.apache.org/jira/browse/PIG-1654 > Project: Pig > Issue Type: Bug > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 0.9.0 > > > The following script appears valid to Pig but it shouldn't: > A = load 'file' as (a:tuple( u:int, u:bytearray, w:long), b:int, c:chararray); > dump A; > Pig tries to launch map/reduce jobs for this. > However, for the following script, Pig correctly reports error message: > A = load 'file' as (a:int, a:long, c:bytearray); > dump A; > Error message is: > 2010-09-28 15:53:37,390 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: b in "A" > Thus, Pig only checks alias duplication at the top level, which is confirmed > by looking at the code. The right behavior is that the same check should be > applied at all levels. > This should be addressed in the new parser. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira