[ https://issues.apache.org/jira/browse/PIG-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gianmarco De Francisci Morales updated PIG-1904: ------------------------------------------------ Attachment: PIG-1904.2.patch Attaching PIG-1902.2.patch Added unit tests for Split-Otherwise Added a check for Nondeterministic UDF. There was no need to create my own visitor, I reused the one available in Utils. Fixed issue with Split with 1 branch only. The solution proposed by Thejas does not work directly because the '*' is greedy, but I worked around it. I think it is ready for review. > Default split destination > ------------------------- > > Key: PIG-1904 > URL: https://issues.apache.org/jira/browse/PIG-1904 > Project: Pig > Issue Type: New Feature > Reporter: Daniel Dai > Labels: gsoc2011 > Fix For: 0.10 > > Attachments: PIG-1904.1.patch, PIG-1904.2.patch > > > "split" statement is better to have a default destination, eg: > {code} > SPLIT A INTO X IF f1<7, Y IF f2==5, Z IF (f3<6 OR f3>6), OTHER otherwise; -- > OTHERS has all tuples with f1>=7 && f2!=5 && f3==6 > {code} > This is a candidate project for Google summer of code 2011. More information > about the program can be found at http://wiki.apache.org/pig/GSoc2011 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira