Re: Typecasting arrays

2013-12-18 Thread Nitin Pawar
I normally set default value to 0 if its empty On Thu, Dec 19, 2013 at 12:04 PM, Andre Araujo wrote: > Thanks, Nitin. > > More specifically, what about empty arrays? How can I convince Hive that > an empty array -- array() -- has a type of array? > > Thanks again! > Andre' > > > On 19 December

Re: Typecasting arrays

2013-12-18 Thread Andre Araujo
Thanks, Nitin. More specifically, what about empty arrays? How can I convince Hive that an empty array -- array() -- has a type of array? Thanks again! Andre' On 19 December 2013 17:22, Nitin Pawar wrote: > from what I know, There is no direct way to type cast array directly as of > now. If i

Re: Typecasting arrays

2013-12-18 Thread Nitin Pawar
from what I know, There is no direct way to type cast array directly as of now. If its added now then well and good I normally typecast individual element of the array and then join them back (mostly via udf). I will see if I can find that code On Thu, Dec 19, 2013 at 11:47 AM, Andre Araujo wr