Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. scala> val a = Array("col1", "col2")
  2. a: Array[String] = Array(col1, col2)
  3.  
  4. val edges = all_edges.select(a:_*)
  5. <console>:27: error: overloaded method value select with alternatives:
  6. (col: String,cols: String*)org.apache.spark.sql.DataFrame <and>
  7. (cols: org.apache.spark.sql.Column*)org.apache.spark.sql.DataFrame
  8. cannot be applied to (String)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement