[
https://issues.apache.org/jira/browse/PIG-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866733#action_12866733
]
Olga Natkovich commented on PIG-1414:
-------------------------------------
The issue is with "$". I think you just need to escape it.
> Problem with parameter substitution
> -----------------------------------
>
> Key: PIG-1414
> URL: https://issues.apache.org/jira/browse/PIG-1414
> Project: Pig
> Issue Type: Bug
> Reporter: Richard Ding
>
> The following script:
> {code}
> L = load 'input';
> store L into 'output' using MyClass$StorerAsInnerClass();
> {code}
> causes Pig to fail with this error message:
> {code}
> ERROR org.apache.pig.Main - ERROR 2999: Unexpected internal error. Undefined
> parameter : StorerAsInnerClass
> java.lang.RuntimeException: Undefined parameter : StorerAsInnerClass
> at
> org.apache.pig.tools.parameters.PreprocessorContext.substitute(PreprocessorContext.java:232)
> at
> org.apache.pig.tools.parameters.PigFileParser.input(PigFileParser.java:60)
> at
> org.apache.pig.tools.parameters.PigFileParser.Parse(PigFileParser.java:42)
> at
> org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.parsePigFile(ParameterSubstitutionPreprocessor.java:105)
> at
> org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:98)
> at org.apache.pig.Main.runParamPreprocessor(Main.java:576)
> at org.apache.pig.Main.main(Main.java:418)
> {code}
> even though no parameter substitution is specified from the command line.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.