I am trying to return a map from a function and create a new column in the dataset but its giving me error .Here is the code
import org.apache.spark.sql.Spark