我正在使用Hive 1.1
hive> select country from releases limit 1;
OK
["us","ca","fr"]
目前,在Hive中,国家是字符串类型。如何将其转换为Array [String]?
我尝试了以下操作,但出现错误:
hive> select country, cast(country as Array[String]) from releases limit 1;
FAILED: ParseException line 1:48 cannot recognize input near 'Array' '[' 'String' in primitive type specification
有人可以帮我进行类型转换吗?