[ https://issues.apache.org/jira/browse/PIG-773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated PIG-773: --------------------------------- Attachment: pig-773_v3.patch It turned out that there was a bug in DataType.java where schema for a Bag is computed. The patch fixes the bug. Test cases are modified to match the expected behavior. Also the values generated by the parser are checked against expected values for the parsed constants. > Empty complex constants (empty bag, empty tuple and empty map) should be > supported > ---------------------------------------------------------------------------------- > > Key: PIG-773 > URL: https://issues.apache.org/jira/browse/PIG-773 > Project: Pig > Issue Type: Bug > Affects Versions: 0.3.0 > Reporter: Pradeep Kamath > Assignee: Ashutosh Chauhan > Priority: Minor > Attachments: pig-773.patch, pig-773_v2.patch, pig-773_v3.patch > > > We should be able to create empty bag constant using {}, empty tuple constant > using (), empty map constant using [] within a pig script -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.