hive建表常见错误


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建表时报错,

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM