Re: Hive UDF to fetch value from distributed cache not working with outer queries

2016-04-05 Thread Jason Dere
g in a MR task. For the other queries try referencing the file as "MyData.txt". From: Dayong Sent: Tuesday, April 05, 2016 11:49 AM To: user@hive.apache.org Subject: Re: Hive UDF to fetch value from distributed cache not working with outer que

Re: Hive UDF to fetch value from distributed cache not working with outer queries

2016-04-05 Thread Dayong
What if you extends genericUDF Thanks, Dayong > On Apr 5, 2016, at 2:11 PM, Abhishek Dubey wrote: > > Hi, > > > We have written a Hive UDF in Java to fetch value from file added in > distributed cache which works perfectly from a select query like : > > Query 1. > > select country_key, MyF

Hive UDF to fetch value from distributed cache not working with outer queries

2016-04-05 Thread Abhishek Dubey
Hi, We have written a Hive UDF in Java to fetch value from file added in distributed cache which works perfectly from a select query like : Query 1. select country_key, MyFunction(country_key,"/data/MyData.txt") as capital from tablename; But not working when trying to create table from its