- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Java UDF returning different output while calling inside hive queries
- Labels:
-
Apache Hive
Created on ‎08-29-2016 01:27 PM - edited ‎08-19-2019 03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
Created ‎08-30-2016 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the issue! probably LinkedHashSet lib is missing in hive!
Created ‎08-29-2016 02:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@abhi singh Can you please share your code for evaluate method?
Created on ‎08-29-2016 02:27 PM - edited ‎08-19-2019 03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @mqureshi, attached is the udf code
Created ‎08-30-2016 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the issue! probably LinkedHashSet lib is missing in hive!
