I have a map of type Map[String, String] which i want to append within another map2 of type Map[String, Any]. Later this map2 will be added as a column in a dataframe.
When I try to add map2 as a column using spark.sql.functions.typedLit, it fails with error:
Unsupported literal type class scala.collection.mutalbe.HashMap Map...
Any suggestion to achieve this?