I have just upgraded to using spark 3 instead of spark 2.4.
The following code ran fine in spark 2.4
df = spark.read.parquet(\'s3a://bucket/path/{\'+