I have hive table with the following fields
id name age gender level salary
and retrieved data in spark (scala) from the hive and created new data frame with the following
id name gender level salary
then created new hive table from spark.
Now, the question here is how to create case class for the new dataframe performing some operations like if level is > 1 give salary hike of 3000.
After performing the operations, then create the table in hive.