This UDF takes a Map and returns a Tuple containing the value set. Note, this UDF returns only unique values. For all values, use VALUELIST instead.
grunt> cat data [open#apache,1#2,11#2] [apache#hadoop,3#4,12#hadoop] grunt> a = load 'data' as (M:[]); grunt> b = foreach a generate VALUELIST($0); ({(apache),(2)}) ({(4),(hadoop)})
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.