hadoop - Append a value to a PIG variable -


i need append value declared variable in pig.

%declare desc 'test/nimmiv/pig'

raw = load 'test.log' using pigstorage('\t') (a1:chararray, a2:chararray, a3:long);

/* pig processing */

value = foreach raw generate $0;

tmp = foreach raw generate $1 path;

path = distinct tmp;

/* dump path give me (tmp) , need append value exisitng value test/nimmiv/pig=>test/nimmiv/pig/tmp */

store value '$desc/$path';

this throwing undefined alias error. easiest way append value existing path.

the undefined alias "value" doesn't seem have been introduced before , have exist before attempted store on it.


Popular posts from this blog