ExitAmazon Athena: S3 data formats for SQL analytics1 / 9
Explanation

Read files through table definitions

How Athena reads CSV, JSON, Parquet, and ORC through table definitions and writes query results into analytics-ready S3 datasets using CTAS and INSERT INTO, with format choices driven by access patterns and scan costs. · associate

Amazon Athena runs SQL against files in Amazon S3 without loading them into a database first. For the external S3 tables in this lesson, a table definition in the AWS Glue Data Catalog describes columns, data types, the S3 location, and how to interpret the files.

Creating an external table registers metadata; it does not copy or convert the files. Athena reads definitions from the catalog and can also register new tables there. The diagram shows both directions of this metadata exchange, alongside source reads and two distinct kinds of S3 output.

Source recordsTable definitionsTable registrationCTAS/INSERT filesSELECT results
Amazon S3 bucketSource files: CSV, JSON, Parquet, ORC
Amazon AthenaSQL reads and dataset creation
AWS GlueData Catalog: table definitions
Amazon S3 bucketCurated dataset: Parquet or ORC
Amazon S3 bucketOrdinary SELECT result location

1 / 6 The source S3 location stores the actual records as CSV, JSON, Parquet, or ORC files.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.