I am using pig 0.11.1.
Example:
---------------
data:
a,b,c
data = LOAD 'data' USING PigStorage(',') AS (f1:chararray, f2:chararray,
f3:chararray);
data2 = FOREACH data GENERATE
TOTUPLE(
CONCAT(f1, f2),
f3);
----------------
The above works fine, but if I change the last statement to name the result of
the CONCAT as so:
------------------
data2 = FOREACH data GENERATE
TOTUPLE(
CONCAT(f1, f2) AS field_that_needs_an_alias,
f3);
-----------------
It doesn't work for me. Am I doing things right? If so, is this a bug, or
should I make a feature request? I have ran into this problem a couple of times
now.
Thanks,
Allan