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] Resolved: (PIG-829) DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc..
Date Thu, 15 Apr 2010 00:28:48 GMT

     [ https://issues.apache.org/jira/browse/PIG-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Viraj Bhat resolved PIG-829.
----------------------------

    Fix Version/s: 0.7.0
       Resolution: Fixed

Pig 0.7 yields the correct result.
{code}
x = LOAD 'something' as (a:chararray, b:chararray);
y = FILTER x BY ( a MATCHES '^.*yahoo.*$' );
STORE y INTO 'foo.bar';
{code}

> 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.7.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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message