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