title: How do I apply multiple columns in window PartitionBy in Spark scala
body: <pre class="lang-scala prettyprint-override"><code>val partitionsColumns = "idnum,monthnum"
  val partitionsColumnsList = partitionsColumns.split(",").toList
  val loc = "/data/omega/published/invoice"
  val df = sqlContext.read.parquet(loc)
  val windowFunction = Window.partitionBy  (partitionsColumnsList:_*).orderBy(df("effective_date").desc)
  </code></pre>
  
  <blockquote>
  <pre><code>&lt;console&gt;:38: error: overloaded method value partitionBy with alternatives:
  (cols: org.apache.spark.sql.Column*)     org.apache.spark.sql.expressions.WindowSpec &lt;and&gt;
  (colName: String,colNames: String*)org.apache.spark.sql.expressions.WindowSpec
  cannot be applied to (String)
  val windowFunction = Window.partitionBy(partitionsColumnsList:_*).orderBy(df("effective_date").desc)
  </code></pre>
  </blockquote>
  
  <p>Is it possible to send List of Columns to <code>partitionBy</code> method Spark/Scala?</p>
  
  <p>I have implemented for passing one column to <code>partitionBy</code> method which worked. I don't know how to pass multiple columns to <code>partitionBy</code> Method </p>
  
  <p>basically I want to pass <code>List(Columns)</code> to <code>partitionBy</code> method </p>
  
  <p>Spark version is 1.6.</p>