Description
There are some weird issues with exploding Python UDFs in SparkSQL.
There are 2 cases where based on the DataType of the exploded column, the result can be flat out wrong, or corrupt. Seems like something bad is happening when telling Tungsten the schema of the rows during or after applying the UDF.
Please check the code below for reproduction.