- Newest
- Most votes
- Most comments
You can't limit the S3 location with anything other than a path prefix, and even then, the prefix must end in a forward slash /
.
The first warning box on this documentation page https://docs.aws.amazon.com/athena/latest/ug/tables-location-format.html states this explicitly:
Important Athena reads all data stored in the Amazon S3 folder that you specify. If you have data that you do not want Athena to read, do not store that data in the same Amazon S3 folder as the data that you do want Athena to read.
Thank you! I have a follow-up question and appreciate if you can help - IIUC I can use AWS Glue to define such table, but I'm wondering if I need to have the crawler to make it work, as I suspect Glue itself doesn't support wildcard path either. Can you shed some light on this?
Relevant content
- asked 3 months ago
- asked a year ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Looks like we don't support *.parquet in the table defintion. What are ways to workaround this? The reason I use this pattern is because I have other files (e.g.
.json
files) in the directory, so I can't use the directory directly