[ https://issues.apache.org/jira/browse/PIG-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777138#comment-13777138 ]
Daniel Dai commented on PIG-3477: --------------------------------- This is expected. Load is a statement which will run until Pig sees a store. rmf is a command which runs immediately. Maybe we shall improve the document to make it clear. > *Nix commands do not execute sequentially > ----------------------------------------- > > Key: PIG-3477 > URL: https://issues.apache.org/jira/browse/PIG-3477 > Project: Pig > Issue Type: Bug > Reporter: Keith Dsouza > > Pig does not evaluate statements in sequence and evaluates the *nix statement > (RMF, MV) encountered first and then processes the rest of the PIG statements > which makes it impossible to sequentially use both PIG statements as well as > Unix statements in a job. > For example: > I want to read data from A and A_new_data and store it in A, I use this > LOAD A > -- Read and merge A and A.new and create A_new_data > RMF A > STORE A_new_data into A > However, RMF A runs first making the rest of my job useless. This is > unexpected behavior -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira