【问题标题】:Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'tblemployees' '[' 'empid' in table name编译语句时出错:FAILED: ParseException line 2:0 cannot identify input near 'tblemployees' '[' 'empid' in table name
【发布时间】:2016-08-05 05:23:44
【问题描述】:
create table tblemployees
[ empid int,
empname string,
location string,
salary double1
row formate delimited fields terminated by "."]

我收到上述代码的错误

Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'tblemployees' '[' 'empid' in table name

解决办法是什么?

【问题讨论】:

  • 如果您在 Hive 中创建表,请删除“[”

标签: hadoop hive hue


【解决方案1】:

使用方括号“(”代替方括号“[”..

【讨论】:

    猜你喜欢
    • 2017-11-12
    • 2018-06-01
    • 1970-01-01
    • 2015-07-14
    • 1970-01-01
    • 2019-12-07
    • 1970-01-01
    • 2021-01-24
    • 1970-01-01
    相关资源
    最近更新 更多