My downstream source does not support a Map type and my source does and as such sends this. I need to convert this map into an array of struct (tuple).
Scala support Ma
Just use an udf:
udf
val toArray = udf((vs: Map[String, String]) => vs.toArray)
and adjust input type according to your needs.