是否可以在具有两种不同格式文件的 S3 上运行 AWS Athena?

发布于 2025-01-12 22:14:41 字数 141 浏览 3 评论 0原文

我有一台 S3,其中有一长串两种不同格式的文件! 包含“log”一词的 CSV 文件有 10 列,包含“sever”一词的 CSV 文件有 20 列(变量也不同)

是否可以在 S3 上使用 Athena 运行并仅查询“log”文件?如果是这样,该怎么做?

I have an S3 that has a long list of files in two different formats!
CSV files that contain the word "log" have 10 columns, and CSV files that contain the word "sever" have 20 columns (The variables are also different)

Is it possible to run with Athena on S3 and query only the "log" files? and if so, how to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉鱼一梦 2025-01-19 22:14:41

不,Athena 将读取表(或每个分区)LOCATION 中的所有文件。无法将其配置为仅读取某些文件。

No, Athena will read all files in the table's (or each partition's) LOCATION. There is no way to configure it to read only some files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文