You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "sudhir mallem (JIRA)" <ji...@apache.org> on 2014/02/03 20:43:06 UTC

[jira] [Commented] (PIG-3733) Pig fails to concatenate semi-colon in generate statement

    [ https://issues.apache.org/jira/browse/PIG-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889815#comment-13889815 ] 

sudhir mallem commented on PIG-3733:
------------------------------------

Thanks Daniel for checking.
can couple of more folks who are on pig 0.12 check if it works without any issues?
we can close this jira after confirmation.

thanks!

> Pig fails to concatenate semi-colon in generate statement
> ---------------------------------------------------------
>
>                 Key: PIG-3733
>                 URL: https://issues.apache.org/jira/browse/PIG-3733
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.11.1
>            Reporter: sudhir mallem
>
> Pig fails to concatenate semi-colon to a column in a generate statement. I've tried multiple ways including unicode version (\\u003B), but fails.
> {code}
> grunt> a = load '/user/smallem/mem.csv' using PigStorage('|') as (uid:int, sid:chararray);
> grunt> b = foreach a generate uid as uid, CONCAT('v=1;',sid) as sids;
> <line 3, column 0>  mismatched character '<EOF>' expecting '''
> 2014-01-30 08:51:51,759 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 3, column 0>  mismatched character '<EOF>' expecting '''
> Details at logfile: /export/home/smallem/pig_1391071809426.log
> {code}
> The same however works when used nested statement.
> {code}
> grunt> a = load '/user/smallem/mem.csv' using PigStorage('|') as (uid:int, sid:chararray);
> grunt> b = foreach a {                                                                    
> >>         x = CONCAT('v=1;',sid);
> >>         generate uid as memberuid, x as sids ;
> >> };
> grunt>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)