There are a few posts on here about handling invalid characters at the first level but not multi-nested attributes
I encountered this error with my multi-nested schema
org.apache.spark.sql.AnalysisException: Attribute name "Foo Bar" contains invalid character(s) among " ,;{}()\n\t=". Please use alias to rename it.;