I have a dataframe that contains the Property table and main table from Hive. I want to remove columns and then I want to apply masking logic (SHA2).
Reading Property config from postgre DB as a Dataframe in Spark/scala job.

val propertydf = loading the property dataframe from postgre db
Main Hive table

and the output should be

Anyone, please help me write a code in Spark/Scala. I am unable to convert List[String] and pass it to function from dataframe config.