You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Viraj Bhat (JIRA)" <ji...@apache.org> on 2010/04/15 02:28:48 UTC

[jira] Resolved: (PIG-829) DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc..

     [ 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