Re: Hive UDAF convert problem

2012-11-15 Thread Cheng Su
Thanks a lot. I will look into it. > I don't have the entire code so it's hard for me to say but does it help if > you change: > private TreeMap sessionMap =... > to be > private Map sessionMap =... > Actually I did change the source like what you suggested to avoid the convert exception. But I

Re: Hive UDAF convert problem

2012-11-14 Thread Mark Grover
Hi Cheng, It's reflection that's causing you the problem. You seem to be using the old class (UDAF) to implement UDAF. While that may still be fine, just so that you know there is a newer, better performing method to implement UDAFs (more on that at https://cwiki.apache.org/Hive/genericudafcasestud