Friday, 23 December 2022

Hive: split: Split the string by a separator

Signature

split(string str, string separator)

 

Split the string by a separator and return array of strings as output.

hive> SELECT split('ram,23,india', ',');
OK
_c0
["ram","23","india"]
Time taken: 0.039 seconds, Fetched: 1 row(s)

 


Previous                                                    Next                                                    Home

No comments:

Post a Comment