You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Andreas Neumann (JIRA)" <ji...@apache.org> on 2009/02/14 01:34:59 UTC

[jira] Created: (PIG-680) Unknown parameter causes pig to exit without message

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.


[jira] Resolved: (PIG-680) Unknown parameter causes pig to exit without message

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich resolved PIG-680.
--------------------------------

    Fix Version/s: 0.7.0
       Resolution: Fixed

Both cases work fine in Pig 0.7.0

> 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
>             Fix For: 0.7.0
>
>
> 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.