title: error: overloaded method value select with alternatives:
body: <p>I am reading a CSV file in dataframe1 and then filter some columns in dataframe2, during selecting columns for dataframe2 from dataframe1 I want to apply my function on the column value. Like</p>
  
  <pre><code>import utilities._
  val Logs = sqlContext.read
    .format("csv")
    .option("header", "true")
    .load("dbfs:/mnt/records/Logs/2016.07.17/2016.07.17.{*}.csv")
  val Log = Logs.select(
    "key1",
    utility.stringToGuid("username"),
    "key2",
    "key3",
    "startdatetime",
    "enddatetime")
  display(Log)
  </code></pre>
  
  <p>so here I am calling <code>utility.stringToGuid("username")</code>. And it is giving me error:</p>
  
  <pre><code>notebook:5: error: overloaded method value select with alternatives:
    (col: String,cols: String*)org.apache.spark.sql.DataFrame &lt;and&gt;
    (cols: org.apache.spark.sql.Column*)org.apache.spark.sql.DataFrame
  </code></pre>