hive> desc T_UNSTRUCTURE;
OK
col_name data_type comment
emp_id int
name map<string,string>
addr struct<City:string,Pin:int>
skill_set array<string>
Time taken: 0.027 seconds, Fetched: 4 row(s)
hive> select size(skill_set),array_contains(skill_set,'Hadoop'),sort_array(skill_set),concat_ws("$",skill_set) from T_UNSTRUCTURE;
OK
_c0 _c1 _c2 _c3
2 false ["'Hadoop'","'OBIEE'"] 'Hadoop'$'OBIEE'
2 false ["'Chocolate'","'oracle'"] 'oracle'$'Chocolate'
Time taken: 0.201 seconds, Fetched: 2 row(s)
OK
col_name data_type comment
emp_id int
name map<string,string>
addr struct<City:string,Pin:int>
skill_set array<string>
Time taken: 0.027 seconds, Fetched: 4 row(s)
hive> select size(skill_set),array_contains(skill_set,'Hadoop'),sort_array(skill_set),concat_ws("$",skill_set) from T_UNSTRUCTURE;
OK
_c0 _c1 _c2 _c3
2 false ["'Hadoop'","'OBIEE'"] 'Hadoop'$'OBIEE'
2 false ["'Chocolate'","'oracle'"] 'oracle'$'Chocolate'
Time taken: 0.201 seconds, Fetched: 2 row(s)
No comments:
Post a Comment