I'm using Auto Loader as part of a Delta Live Tables pipeline to ingest json files, and today it failed with this error message:
om.databricks.sql.transaction.tahoe.DeltaAnalysisException: Found invalid character(s) among ' ,;{}()\n\t=' in the column names of your schema.
org.apache.spark.sql.AnalysisException: Column name "NotificationSettings.element.Microsoft Teams" contains invalid character(s). Please use alias to rename it.
The failing json file contains an element named "Microsoft Teams" which causes the pipeline to fail. How can I handle such elements? The error message mentions the use of an alias, but I can't find any info on how to implement this.
"NotificationSettings": [
{
"NotificationType": "MissedActivityReminder",
"Microsoft Teams": true
},
...