I am trying to insert a DataFrame
in na existing Hive partitioned table.
I would like to parameterize by the partition columns but my current approach is not working:
var partitioncolumn="\"deletion_flag\",\"date_feed\""
df.repartition(37).write.
mode(SaveMode.Overwrite).
partitionBy(partitioncolumn).
insertInto("db.table_name")
How can I make this work?