I want to query by a file / group of files under a partition inside a table. I found out that when I'm using the "$path" field Athena scans the entire partition, and not the files I want
Is there a way to make this kind of query more efficient and scan only the given files? Something like partition pruning for files...
Here is a sample query:
SELECT *
FROM my_table
WHERE day = '2019-01-01'
AND "$path" = 's3://my-bucket/my-table/day=2019-01-01/my_file'