Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
0.11.1
-
None
-
None
-
None
Description
Pig fails to concatenate semi-colon to a column in a generate statement. I've tried multiple ways including unicode version (
u003B), but fails.
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
The same however works when used nested statement.
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>