```scala
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)

```

> 
> 
> ```
> <console>:38: error: overloaded method value partitionBy with alternatives:
> (cols: org.apache.spark.sql.Column*)     org.apache.spark.sql.expressions.WindowSpec <and>
> (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)
> 
> ```
> 
> 

Is it possible to send List of Columns to `partitionBy` method Spark/Scala?

I have implemented for passing one column to `partitionBy` method which worked. I don't know how to pass multiple columns to `partitionBy` Method 

basically I want to pass `List(Columns)` to `partitionBy` method 

Spark version is 1.6.