[
https://issues.apache.org/jira/browse/PIG-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143515#comment-13143515
]
Ashutosh Chauhan commented on PIG-2346:
---------------------------------------
Daniel explained in this case there is a need to find out if schema is coming
from as clause or through loadfunc. So, these new methods are required.
+1
> 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