In embedded pig in python, if I have a sys.exit (0) the script always fails and returns exit code as 6.
While it is agreeable that Pig will reinterpret the exit code from Python, sys.exit(0) should be considered as a normal termination.
A sample code;
Exception from Pig
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Hadoop Flags||Reviewed [ 10343 ]|
|Assignee||Vivek Padmanabhan [ vivekp ]|
|Fix Version/s||0.10 [ 12316246 ]|
|Fix Version/s||0.11 [ 12318878 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|