Question on running a notebook using pyspark.sql. I am loading multiple files into a new table that is specified in the notebook. The notebook loads the first file successfully then all other files it throws out the error such as the below. The code fails around line 79 when processing the sebsequent files. I will also paste in the notebook code at line 79 for reference. Trying to figure out how to fix the attribute error stating 'Nonetype' object has no attribute 'alias'.

Notebook line 79 code.

If anyone has any suggestions that would be great. Thank you for your time.