Unknown parameter causes pig to exit without message
----------------------------------------------------

                 Key: PIG-680
                 URL: https://issues.apache.org/jira/browse/PIG-680
             Project: Pig
          Issue Type: Bug
            Reporter: Andreas Neumann
            Priority: Minor


This pig script: 

-- REGISTER $unknown;
x = LOAD 'nn' AS x:chararray;
DUMP x;

I run like this:

> java -jar ../../../../Pig/pig.jar -x local -file nn.pig

and pig does nothing, just exits without doiung anything.
But if I remove the $ from the first line of the script, then:

> java -jar ../../../../Pig/pig.jar -x local -file nn.pig
2009-02-13 16:30:01,062 [main] INFO  
org.apache.pig.backend.local.executionengine.LocalPigLauncher - 100% complete!
2009-02-13 16:30:01,063 [main] INFO  
org.apache.pig.backend.local.executionengine.LocalPigLauncher - Success!!
(abc)
(def)

Similarly if I define the unknown parameter on the command line, it works fine:

> java -jar ../../../../Pig/pig.jar -x local -file nn.pig -param unknown=1
2009-02-13 16:32:23,652 [main] INFO  
org.apache.pig.backend.local.executionengine.LocalPigLauncher - 100% complete!
2009-02-13 16:32:23,653 [main] INFO  
org.apache.pig.backend.local.executionengine.LocalPigLauncher - Success!!
(abc)
(def)

It seems that undefined parameters cause pig to exit without doing anything... 
even if they are within a comment...
-Andreas.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to