In a pipeline that writes Parquet to S3 and reads it with Spark on EMR/Glue, you discover that timestamps are off by several hours for some partitions. Which root cause is most plausible given typical AWS defaults?

Answer

Timestamp fields were written as UTC but later interpreted as local time due to inconsistent configuration (e.g., spark.sql.session.timeZone)

Explanation

Spark and SQL engines may interpret timestamp semantics using a session time zone setting. Inconsistent configuration between writer and reader can shift displayed times even when raw epoch values are correct.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list