[
https://issues.apache.org/jira/browse/PIG-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dai closed PIG-829.
--------------------------
> 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.
-
You can reply to this email to add a comment to the issue online.