Embedded pig with python: No way to terminate program gracefully and set OS 
exit code
-------------------------------------------------------------------------------------

                 Key: PIG-2558
                 URL: https://issues.apache.org/jira/browse/PIG-2558
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.9.1, 0.10
            Reporter: Huiming Li


With python embedded pig control structures, there is no way to terminate the 
program in the middle and set the os exit code

Here is the Pseudocode:

block 1:
   if condition check is true:
       do nothing and exit program with code 3
   else:
       call a pig 

block 2:
   if condition check is true:
       do nothing and exit program with code 0
   else:
       call a pig 

block N:
 ....


sys.exit(...) doesn't work. It is treated as exception even with sys.exit(0).






--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to