Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE292D99D for ; Tue, 4 Sep 2012 18:45:08 +0000 (UTC) Received: (qmail 93749 invoked by uid 500); 4 Sep 2012 18:45:08 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 93686 invoked by uid 500); 4 Sep 2012 18:45:08 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 93599 invoked by uid 500); 4 Sep 2012 18:45:08 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 93549 invoked by uid 99); 4 Sep 2012 18:45:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 18:45:07 +0000 Date: Wed, 5 Sep 2012 05:45:07 +1100 (NCT) From: "Dmitriy V. Ryaboy (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1051047848.34105.1346784307962.JavaMail.jiratomcat@arcas> In-Reply-To: <1776730883.32365.1346760607541.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (PIG-2903) passing an empty string parameter cause a Encountered parse exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 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 "" at line 1, column 8. > Was expecting one of: > ... > ... > ... > ... > > 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