Sql Amazon Athena在创建分区时返回“不匹配的输入”“已分区”“应为{,',带有}”错误
我想使用此查询在Amazon Athena中创建一个分区表:Sql Amazon Athena在创建分区时返回“不匹配的输入”“已分区”“应为{,',带有}”错误,sql,amazon-web-services,partitioning,amazon-athena,Sql,Amazon Web Services,Partitioning,Amazon Athena,我想使用此查询在Amazon Athena中创建一个分区表: CREATE TABLE IF NOT EXISTS testing.partitioned_test(order_id bigint, name string, car string, country string) PARTITIONED BY (year int) ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe' STORED AS 'PARQUET' LO
CREATE TABLE IF NOT EXISTS
testing.partitioned_test(order_id bigint, name string, car string, country string)
PARTITIONED BY (year int)
ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe'
STORED AS 'PARQUET'
LOCATION 's3://testing-imcm-into/partitions'
不幸的是,我没有收到错误消息,该消息告诉我:
第3:2行:不匹配的输入'partitioned'应为{,'带'}
围绕“拼花地板”的报价似乎引发了一个问题
试试这个:
如果不存在,则创建外部表
分区测试顺序id bigint、名称字符串、汽车字符串、国家/地区字符串
按整年划分
作为拼花地板储存
位置“s3://将imcm测试到/partitions/”中
围绕“拼花地板”的报价似乎引发了一个问题
试试这个:
如果不存在,则创建外部表
分区测试顺序id bigint、名称字符串、汽车字符串、国家/地区字符串
按整年划分
作为拼花地板储存
位置“s3://将imcm测试到/partitions/”中