Interview practice question
Athena query fails after schema change
Data Engineering · AWS · Beginner
After a source added a new column in the middle of its CSV files, Athena queries return values in the wrong columns. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- CSV columns are matched by position, not name.
- The table schema no longer matches the file layout.
- Update the table schema for new files, possibly as a new table or partition schema.
- Convert to Parquet, which matches by name.
- Agree file contracts with the source.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.