配置单元:parseexception行3:23无法识别“from”附近的输入

tmb3ates  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(449)

我尝试创建此表:

create table tmp_test (
id_ string,
myelement array<struct<from:string>>
)
STORED AS PARQUET
LOCATION '/donne/tmp_test'

我有个错误:
编译语句时出错:失败:parseexception行3:23无法识别列规范中“”中“”字符串“”附近的输入。
我怎样才能逃避“从”这个词,因为我必须用这个词?
谢谢你的帮助

arknldoa

arknldoa1#

from是配置单元中的保留关键字。
用倒勾(`)来引用它,

create table tmp_test (
id_ string,
myelement array<struct<`from`:string>>
)
STORED AS PARQUET
LOCATION '/donne/tmp_test';

相关问题