When I call the java UDF inside hive, it returns different result than the one returned in IDE. Attached are the screenshots for the same. The output in Hive is inconsistent as sometimes it does return expected. Any possible explanation for this behavior?
The UDF is supposed to removed duplicates and return the output in same order but in lowercase.