Does Hive have a String split function?

There does exist a split function based on regular expressions. It’s not listed in the tutorial, but it is listed on the language manual on the wiki:

split(string str, string pat)
   Split str around pat (pat is a regular expression) 

In your case, the delimiter “|” has a special meaning as a regular expression, so it should be referred to as “\\|“.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)