hive>desc test_split_string;
name string
hive>select*from test_split_string;
John,Smith
John,and,Ann White
Ted,Green
Dorothy,-- UDTF: split_string
hive>select> upper_str, lower_str
>from test_split_string
> lateral view split_string(name,",") tmp as upper_str, lower_str ;
JOHN john
SMITH smith
JOHN john
ANDand
ANN WHITE ann white
TED ted
GREEN green
DOROTHY dorothy