【发布时间】:2021-11-28 08:56:20
【问题描述】:
我想查询存储在 MongoDB 中并导出到多个 JSON 文件中的数据,存储在 S3 中
我正在使用 AWS Glue 将文件读入 Athena,但是每个表上 id 的数据类型导入为 struct<$oid:string>
我尝试了在字段周围添加引号的各种变体,但没有成功。我尝试的一切都会导致错误name expected at the position 7 of 'struct<$oid:string>' but '$' is found.
有什么方法可以读取这些表格的当前形式,还是需要在 Glue 中声明它们的类型?
【问题讨论】:
标签: sql mongodb amazon-s3 aws-glue amazon-athena