You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Saurabh S <sa...@live.com> on 2012/03/22 00:30:03 UTC

Length of an array

How do I get the length of an array in Hive?

Specifically, I'm looking at the following problem: I'm splitting a column using the split() function and a pattern. However, the resulting array can have variable number of entries and I want to handle each case separately.
 		 	   		  

Re: Length of an array

Posted by James Warren <ja...@stanfordalumni.org>.
https://cwiki.apache.org/Hive/languagemanual-udf.html#LanguageManualUDF-CollectionFunctions

cheers,
-James

On Wed, Mar 21, 2012 at 4:30 PM, Saurabh S <sa...@live.com> wrote:

>  How do I get the length of an array in Hive?
>
> Specifically, I'm looking at the following problem: I'm splitting a column
> using the split() function and a pattern. However, the resulting array can
> have variable number of entries and I want to handle each case separately.
>