Separate execution from metadata
How to distinguish Glue data preparation from Athena query execution when choosing where analytics processing belongs. · advanced
AWS Glue jobs execute data preparation programs: they read sources, apply transformations, and write outputs. The Glue Data Catalog is a different capability: it stores table definitions, locations, and other technical metadata. Using catalog metadata does not mean that a Glue ETL job executes.
Amazon Athena SQL executes SQL against data, including files in Amazon S3 described by catalog tables. The boundary is not “Glue transforms; Athena only reads”: Athena can also persist SQL transformations using CTAS and INSERT INTO. Glue jobs can themselves use SQL within a larger processing program.
Choose the execution model, not the presence of a transformation. This lesson concerns Athena SQL, not Athena's separate Spark capability. Amazon Redshift is a warehouse query platform rather than Athena's independent query service; AWS Lake Formation provides governance rather than an ETL or SQL execution engine.
| Boundary | Glue job | Athena SQL |
|---|---|---|
| Execution unit | Preparation program | SQL statement |
| Transformation expression | Code and SQL | Supported SQL |
| Persistent output | Job writes datasets | SQL can write datasets |
| Catalog relationship | Can use metadata | Uses table metadata |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.