使用“创建列名”;(“在hive 1.1.0中
我尝试在配置单元中创建表,如下所示:使用“创建列名”;(“在hive 1.1.0中,hive,Hive,我尝试在配置单元中创建表,如下所示: create table IF NOT EXISTS department(deptid int, deptname(1) string, deptname(2) string) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile; 我得到的错误是 编译语句时出错:失败:ParseException行1:58无法识别列类型中“(“
create table IF NOT EXISTS department(deptid int, deptname(1) string, deptname(2) string)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile;
我得到的错误是
编译语句时出错:失败:ParseException行1:58无法识别列类型中“(“1”)附近的输入
有没有其他方法可以创建带“(”的列使用`(反勾选)来转义((圆括号))
它可以用于表名和字段名
尝试:
create table IF NOT EXISTS department(`deptid` int, `deptname(1)` string, `deptname(2)` string) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile;