【发布时间】:2021-02-21 02:55:51
【问题描述】:
我使用 AWS Glue 聚合来自 S3 存储桶的数据,现在使用 Athena 查询该数据。我现在可以从 S3 传递一个单独的文件来查询我的数据集吗?
例如,如果我有以下查询:
SELECT city,population,coordinates
FROM "Country"."Japan"
WHERE city IN ('Tokyo','Kyoto','Osaka');
我想在 S3 中放置一个 .txt 文件,其中列出了 ('Tokyo'、'Kyoto'、'Osaka'),这样我的查询将类似于:
SELECT city,population,coordinates
FROM "Country"."Japan"
WHERE city IN << some file path in s3 >>;
【问题讨论】:
标签: mysql amazon-web-services amazon-s3 aws-glue amazon-athena