Schema:
|-- c0: string (nullable = true) |-- c1: struct (nullable = true) | |-- c2: array (nullable = true) | | |-- element: struct (containsNull =
turn on the spark sql case sensitivity configuration and try
spark.sql("set spark.sql.caseSensitive=true")