FAILED: ParseException line 6:163 cannot recognize input near 'map' ':' 'map' in column specification

 

如果hive建表里面字段类型是struct,里面嵌入了map:map<string,string>> 这种类型的数据,将map写成`map`(map两边的引号在键盘Esc下面输入),

例如`map`:map<string,string>> ,同理struc果有_id:string,建表时报错,可以写成`_id`:string,其它的struct建表时报错,

碰到类似的这样问题,可以做如上的修改。

posted on 2018-03-15 11:04  Deep-thinker  阅读(3309)  评论(0)    收藏  举报