Re: UDTF fails when used in LATERAL VIEW

2012-06-22 Thread Mark Grover
rning PrimitiveObjectInspectorFactory.writableStringObjectInspector Glad you found the solution. Sorry that you learned it the hard way though! Mark - Original Message - From: "Jan Dolinár" To: user@hive.apache.org Sent: Friday, June 22, 2012 1:59:03 AM Subject: Re: UDTF fails when used in LATERA

Re: UDTF fails when used in LATERAL VIEW

2012-06-21 Thread Jan Dolinár
Hi Mark, Thanks for suggestion, it is not that naïve :) I tried a lot of things and combinations, including Text and even LazyString (as I was getting exceptions about converting String to LazyString at one moment...). But I guess what I missed was correct setting of field object inspectors in in

Re: UDTF fails when used in LATERAL VIEW

2012-06-21 Thread Mark Grover
Hi Jan, Here's my first naïve question:-) Have you tried returning a Text value instead of String? Atleast in the case of UDFs, returning Text instead of Strings is possible and recommended too. I would think it would be the same case with UDTFs. Mark - Original Message - From: "Jan Do