Re: GenericUDF Testing in Hive

2014-02-05 Thread Jason Dere
Tried your example with Hive trunk. Didn't quite work out of the box, you'll need to replace List with List. Otherwise, this seemed to work: hive> select ComplexUDFExample(array('a', 'b', 'c'), 'a') from src limit 3; …. OK true true true Time taken: 6.271 seconds, Fetched: 3 row(s) On Feb 4, 20

Re: GenericUDF Testing in Hive

2014-02-04 Thread Raj Hadoop
I want to do a simple test like this - but not working - select ComplexUDFExample(List("a", "b", "c"), "b") from table1 limit 10; FAILED: SemanticException [Error 10011]: Line 1:25 Invalid function 'List' On Tuesday, February 4, 2014 2:34 PM, Raj Hadoop wrote: How to test a Hive Generi

Re: GenericUDF Testing in Hive

2014-02-04 Thread Raj Hadoop
How to test a Hive GenericUDF which accepts two parameters List, T List -> Can it be the output of a collect set. Please advise. I have a generic udf which takes List, T. I want to test it how it works through Hive. On Monday, January 20, 2014 5:19 PM, Raj Hadoop wrote:   The following

GenericUDF Testing in Hive

2014-01-20 Thread Raj Hadoop
  The following is a an example for a GenericUDF. I wanted to test this through a Hive query. Basically want to pass parameters some thing like "select ComplexUDFExample('a','b','c') from employees limit 10". ---