Sathish created PIG-3363:
----------------------------
Summary: Unable to Use Macros as a part of relation
Key: PIG-3363
URL: https://issues.apache.org/jira/browse/PIG-3363
Project: Pig
Issue Type: Bug
Affects Versions: 0.10.0
Reporter: Sathish
I have a use case of adding unique values for individual columns of a row. I
defined a unique macro to compute the unique value for the given column.
If i call the macro within the script in a single line I'm getting unable to
create MR Plan exception
ex:
define unique(col_name)
returns result{
$result =col_name+'unq';
}
A = load 'logs.txt' as (id:chararray,name:chararray);
B = foreach A generate unique('A::id') as unq_id, unique('A::name') as unq_name;
Where as when I have the macro calling code seperately it is running fine
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira