When I scan a parquet files that is located in s3 using Athena, then Athena bills me for how much data it scans. Because parquet is a columnar format, queries that touch just a few columns of wide tables end up scanning only a small portion of the parquet files, leading to cost savings on the query side. If the parquet files are stored in S3's standard access tier, then there is no additional cost for accessing the data from s3.
What if the data is stored in S3's infrequent access tier (IA)? If Athena scans small portions of a parquet file stored in S3, do I
- Pay the Infrequent Access Data retrieval fee for only the number of bytes that Athena scans?, or
- Pay the Infrequent Access Data retrieval fee for the size of the entire parquet file, because I get charged for accessing the entire file if I touch it at all?