Grokbase Groups Pig dev October 2009
FAQ
[ https://issues.apache.org/jira/browse/PIG-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair resolved PIG-267.
-------------------------------

Resolution: Duplicate

Duplicate of PIG-598
Don't substitute parameters inside comments
-------------------------------------------

Key: PIG-267
URL: https://issues.apache.org/jira/browse/PIG-267
Project: Pig
Issue Type: Bug
Reporter: Amir Youssefi
Priority: Trivial
Attachments: Pig267_ParamFix.patch


A script with $x in comments fails because Pig thinks it's an undefined parameter. One approach to address it is to skip substitution for comments.
java.lang.RuntimeException: Undefined parameter : x
at org.apache.pig.tools.parameters.PreprocessorContext.substitute(PreprocessorContext.java:221)
at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.parsePigFile(ParameterSubstitutionPreprocessor.java:106)
at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:86)
at org.apache.pig.Main.runParamPreprocessor(Main.java:382)
at org.apache.pig.Main.main(Main.java:284)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupdev @
categoriespig, hadoop
postedOct 22, '09 at 6:23p
activeOct 22, '09 at 6:23p
posts1
users1
websitepig.apache.org

1 user in discussion

Thejas M Nair (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase