when we try to select Columns from DataFrame, one can use $"columnname"
or col("columnname")
or just "columnname"
.
My question is how $ symbol
[which returns ColumnName] is working, i can understand i need to import sqlContext.implicits._
to use $ symbol on df.select
I dont see $ method
on SQLImplicits
class as well. I can see one method with the name symbolToColumn(scala.Symbol s)
.
Can someone explain more on this?