Skill 3.5.7
Transforming data between formats (for example, .csv to .parquet)
Key Concepts
Columnar formats such as Apache Parquet and ORC store data by column with compression, so queries read only the columns they need. Athena and Redshift Spectrum charge by data scanned, so converting CSV or JSON to Parquet can cut cost and query time dramatically. Partitioning (for example by year/month/day) prunes data further.
Tools: AWS Glue ETL jobs (Spark) or Glue Studio's visual editor for batch conversion; Firehose record format conversion to Parquet/ORC for streaming data (using a Glue table schema); Athena CTAS (CREATE TABLE AS SELECT) queries; EMR Spark jobs; Glue DataBrew for visual cleaning without code.
Event-driven conversion: an S3 event triggers a Lambda function or Glue workflow when a new file arrives.