Hive建表语句出现错误ParseException line 1:28 cannot recognize input near 'time' 'string'

编程入门 行业动态 更新时间:2024-10-19 13:18:56

create table if not exists hive.data(ip string,time string,day string,traffic bigint,type string,id string);

 

在hive中建表时会出现这样的问题,纠结了很久,网上查询说time字段为hive保留字段,修改之后即可。如果非要用这个字段名,就用反引号改起来:

反引号就是键盘左上方1的左边那个,中文的符号` 

如create table if not exists hive.data(ip string,`time` string,day string,traffic bigint,type string,id string);

 

 

 

 

引用https://blog.csdn/u011940366/article/details/51396152

 

更多推荐

Hive建表语句出现错误ParseException line 1:28 cannot recognize input near 'time'

本文发布于:2023-06-14 08:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1456634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表语   出现错误   line   ParseException   Hive

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!