[ https://issues.apache.org/jira/browse/PIG-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143456#comment-13143456 ]
Ashutosh Chauhan commented on PIG-2346: --------------------------------------- Instead of adding new methods of getScriptSchema() I would expect getSchema() to return correct Schema and not null. It seems there is an underlying bug in LoLoad::getSchema(). > TypeCastInsert should not insert Foreach if there is no as statement > -------------------------------------------------------------------- > > Key: PIG-2346 > URL: https://issues.apache.org/jira/browse/PIG-2346 > Project: Pig > Issue Type: Bug > Affects Versions: 0.9.1, 0.10, 0.11 > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 0.10, 0.9.2, 0.11 > > Attachments: PIG-2346-1.patch, PIG-2346-2.patch > > > Currently, TypeCastInsert always insert foreach statement below the loader. > But if the load statement doesn't have "as" clause, the foreach should not be > added. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira