Hi Nab,
I have created a UDF as below. But seems hashset does not work. I got the same output as the input, anyone could help?
Set<String> unique = new HashSet<String>();
for(int i = 0; i < ebeln.length; i ++) {
if( unique.add( ebeln[ i ] )) {
ebeln_out.addValue(ebeln[ i ]);
}
}