hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Bhat (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-829) DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc..
Date Tue, 02 Jun 2009 01:33:07 GMT
DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc..
------------------------------------------------------------------------------------------

                 Key: PIG-829
                 URL: https://issues.apache.org/jira/browse/PIG-829
             Project: Pig
          Issue Type: Bug
          Components: grunt
    Affects Versions: 0.3.0
            Reporter: Viraj Bhat
             Fix For: 0.3.0


The below Pig script does not work well, when special characters are used in the DECLARE statement.
{code}
%DECLARE OUT foo.bar

x = LOAD 'something' as (a:chararray, b:chararray);

y = FILTER x BY ( a MATCHES '^.*yahoo.*$' );

STORE y INTO '$OUT';
{code}

When the above script is run in the dry run mode; the substituted file does not contain the
special character.

{code}
java -cp pig.jar:/homes/viraj/hadoop-0.18.0-dev/conf -Dhod.server='' org.apache.pig.Main -r
declaresp.pig
{code}

Resulting file: "declaresp.pig.substituted"
{code}
x = LOAD 'something' as (a:chararray, b:chararray);

y = FILTER x BY ( a MATCHES '^.*yahoo.*$' );

STORE y INTO 'foo';
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message