[ https://issues.apache.org/jira/browse/PIG-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13636869#comment-13636869 ]
Ruslan Al-Fakikh commented on PIG-2315: --------------------------------------- As a user I would desire the way as it was suggested here: https://issues.apache.org/jira/browse/PIG-2216 to allow just one syntax for casting (and forbid/deprecate the other). Daniel, don't you think that: {quote} A1 = foreach A1 generate (int)a as a:chararray; => A1 = foreach A1 generate (chararray)((int)a) as a; {quote} will make things more complicated? > Make as clause work in generate > ------------------------------- > > Key: PIG-2315 > URL: https://issues.apache.org/jira/browse/PIG-2315 > Project: Pig > Issue Type: Bug > Reporter: Olga Natkovich > Assignee: Gianmarco De Francisci Morales > Fix For: 0.12 > > > Currently, the following syntax is supported and ignored causing confusing > with users: > A1 = foreach A1 generate a as a:chararray ; > After this statement a just retains its previous type -- 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