[ 
https://issues.apache.org/jira/browse/PIG-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191840#comment-13191840
 ] 

Thejas M Nair commented on PIG-2487:
------------------------------------

It does throw an error if you forget to specify params, for example - 
{code}
$ cat t.pig
l = load $INP using PigStorage(':');
dump l;

$ bin/pig -x local   t.pig 
2012-01-23 18:53:05,204 [main] INFO  org.apache.pig.Main - Logging error 
messages to: /Users/thejas/pig_trunk_cp/trunk/pig_1327373585202.log
2012-01-23 18:53:05,387 [main] ERROR org.apache.pig.Main - ERROR 2999: 
Unexpected internal error. Undefined parameter : INP
{code}


Can you show an example where it does not throw this error ?

                
> When a parameter is specified in a script, but no comamnd is specified in via 
> -param/defaults, a LOUD warning should be thrown
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2487
>                 URL: https://issues.apache.org/jira/browse/PIG-2487
>             Project: Pig
>          Issue Type: Improvement
>          Components: grunt, parser
>    Affects Versions: 0.9.1, 0.9.2, 0.10, 0.9.3
>         Environment: Mac OS X
>            Reporter: Russell Jurney
>            Priority: Critical
>
> I spend a lot of time debugging scripts, where I forget to start pig with 
> params, and suddenly my filters result in 0 records getting through the 
> script.  I would like a LOUD error on this, when it happens.

--
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