[ https://issues.apache.org/jira/browse/PIG-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025018#comment-13025018 ]
Thejas M Nair commented on PIG-1989: ------------------------------------ The problem is seen in this case - {code} input: (a,b,3) a = load 'inp.txt' as (t:tuple(i0, i1, i2)); b = foreach a generate (tuple(tuple(int)))$0; dump b; We get: ((,b,3)), instead of () {code} > complex type casting should return null on casting failure > ----------------------------------------------------------- > > Key: PIG-1989 > URL: https://issues.apache.org/jira/browse/PIG-1989 > Project: Pig > Issue Type: Bug > Affects Versions: 0.9.0 > Reporter: Thejas M Nair > Assignee: Daniel Dai > Fix For: 0.9.0 > > > When casting fails for complex objects, pig is currently returning un-casted > object if the cast fails. > It should return null instead. That is consistent with the behavior when > casting to other basic types. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira