I can type cast NULL as a string. How can I type cast an empty array as an empty array of strings? I need to solve it inside the SQL query. The following snippet throws a ValueError: Some of types cannot be determined after inferring
df = spark.sql("select Array()").collect()
display(df)