-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.10.0
-
Fix Version/s: None
-
Component/s: impl
-
Labels:None
In this Pig script:
A = load 'data' as (a:chararray); B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') ? 1 : 0); }
The Eval function UPPER is called twice for each record.
This should be optimized so that the UPPER is called only once for each record