You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ido Hadanny (JIRA)" <ji...@apache.org> on 2012/09/04 14:10:07 UTC

[jira] [Created] (PIG-2903) passing an empty string parameter cause a Encountered parse exception

Ido Hadanny created PIG-2903:
--------------------------------

             Summary: passing an empty string parameter cause a Encountered <EOF> parse exception
                 Key: PIG-2903
                 URL: https://issues.apache.org/jira/browse/PIG-2903
             Project: Pig
          Issue Type: Bug
          Components: parser
    Affects Versions: 0.8.1
            Reporter: Ido Hadanny
            Priority: Minor


when passing an empty string parameter such as my_param=""
you get:

Encountered "<EOF>" at line 1, column 8.
Was expecting one of:
    <IDENTIFIER> ...
    <OTHER> ...
    <LITERAL> ...
    <SHELLCMD> ...
    
	at org.apache.pig.tools.parameters.ParamLoader.generateParseException(ParamLoader.java:244)
	at org.apache.pig.tools.parameters.ParamLoader.jj_consume_token(ParamLoader.java:182)
	at org.apache.pig.tools.parameters.ParamLoader.Parse(ParamLoader.java:66)
	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.loadParamsFromCmdline(ParameterSubstitutionPreprocessor.java:144)
	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:80)




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

[jira] [Commented] (PIG-2903) passing an empty string parameter cause a Encountered parse exception

Posted by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447922#comment-13447922 ] 

Dmitriy V. Ryaboy commented on PIG-2903:
----------------------------------------

Can you post the script you are passing this to? If the parameter value is not being used in quotes inside the script, that makes absolute sense (you probably want to pass "''" as the value, instead). If the parameter value _is_ being used in quotes, this is a bug.
                
> passing an empty string parameter cause a Encountered <EOF> parse exception
> ---------------------------------------------------------------------------
>
>                 Key: PIG-2903
>                 URL: https://issues.apache.org/jira/browse/PIG-2903
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.8.1
>            Reporter: Ido Hadanny
>            Priority: Minor
>              Labels: newbie
>
> when passing an empty string parameter such as my_param=""
> you get:
> Encountered "<EOF>" at line 1, column 8.
> Was expecting one of:
>     <IDENTIFIER> ...
>     <OTHER> ...
>     <LITERAL> ...
>     <SHELLCMD> ...
>     
> 	at org.apache.pig.tools.parameters.ParamLoader.generateParseException(ParamLoader.java:244)
> 	at org.apache.pig.tools.parameters.ParamLoader.jj_consume_token(ParamLoader.java:182)
> 	at org.apache.pig.tools.parameters.ParamLoader.Parse(ParamLoader.java:66)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.loadParamsFromCmdline(ParameterSubstitutionPreprocessor.java:144)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:80)

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

[jira] [Resolved] (PIG-2903) passing an empty string parameter cause a Encountered parse exception

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

Dmitriy V. Ryaboy resolved PIG-2903.
------------------------------------

    Resolution: Not A Problem
    
> passing an empty string parameter cause a Encountered <EOF> parse exception
> ---------------------------------------------------------------------------
>
>                 Key: PIG-2903
>                 URL: https://issues.apache.org/jira/browse/PIG-2903
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.8.1
>            Reporter: Ido Hadanny
>            Priority: Minor
>              Labels: newbie
>
> when passing an empty string parameter such as my_param=""
> you get:
> Encountered "<EOF>" at line 1, column 8.
> Was expecting one of:
>     <IDENTIFIER> ...
>     <OTHER> ...
>     <LITERAL> ...
>     <SHELLCMD> ...
>     
> 	at org.apache.pig.tools.parameters.ParamLoader.generateParseException(ParamLoader.java:244)
> 	at org.apache.pig.tools.parameters.ParamLoader.jj_consume_token(ParamLoader.java:182)
> 	at org.apache.pig.tools.parameters.ParamLoader.Parse(ParamLoader.java:66)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.loadParamsFromCmdline(ParameterSubstitutionPreprocessor.java:144)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:80)

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

[jira] [Updated] (PIG-2903) passing an empty string parameter cause a Encountered parse exception

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

Bill Graham updated PIG-2903:
-----------------------------

    Labels: newbie  (was: )
    
> passing an empty string parameter cause a Encountered <EOF> parse exception
> ---------------------------------------------------------------------------
>
>                 Key: PIG-2903
>                 URL: https://issues.apache.org/jira/browse/PIG-2903
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.8.1
>            Reporter: Ido Hadanny
>            Priority: Minor
>              Labels: newbie
>
> when passing an empty string parameter such as my_param=""
> you get:
> Encountered "<EOF>" at line 1, column 8.
> Was expecting one of:
>     <IDENTIFIER> ...
>     <OTHER> ...
>     <LITERAL> ...
>     <SHELLCMD> ...
>     
> 	at org.apache.pig.tools.parameters.ParamLoader.generateParseException(ParamLoader.java:244)
> 	at org.apache.pig.tools.parameters.ParamLoader.jj_consume_token(ParamLoader.java:182)
> 	at org.apache.pig.tools.parameters.ParamLoader.Parse(ParamLoader.java:66)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.loadParamsFromCmdline(ParameterSubstitutionPreprocessor.java:144)
> 	at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:80)

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