Hi All,
If I modify the code to below The hive UDF is working in spark-sql but it
is giving different results..Please let me know difference between these
two below codes..
1) public Object get(Object name) {
int pos = getPos((String)name);
if(pos<0) return null;
How to debug Hive UDfs?!
On Jan 24, 2017 5:29 PM, "Sirisha Cheruvu" wrote:
> Hi Team,
>
> I am trying to keep below code in get method and calling that get mthod in
> another hive UDF
> and running the hive UDF using Hive Context.sql procedure..
>
>
> switch (f) {
> case
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: [Error:
java.lang.Double cannot be cast to
org.apache.hadoop.hive.serde2.io.DoubleWritable]
Getting below error while running hive UDF on spark but the UDF is working
perfectly fine in Hive..
public Object get(Object name) {
Hi,
Could you show us the whole code to reproduce that?
// maropu
On Wed, Jan 25, 2017 at 12:02 AM, Deepak Sharma
wrote:
> Can you try writing the UDF directly in spark and register it with spark
> sql or hive context ?
> Or do you want to reuse the existing UDF jar for
Can you try writing the UDF directly in spark and register it with spark
sql or hive context ?
Or do you want to reuse the existing UDF jar for hive in spark ?
Thanks
Deepak
On Jan 24, 2017 5:29 PM, "Sirisha Cheruvu" wrote:
> Hi Team,
>
> I am trying to keep below code in