DataFrame 的 Spark 隐式 $
Spark Implicit $ for DataFrame
它在 sqlContext.implicits._
的哪个位置定义了 $"string" 来表示对父数据框列的数据框调用?具体来说,我对看到如下内容感到困惑:
import sqlContext.implicits._
df.where($"type".isin("type1","type2") and $"status".isin("completed","inprogress"))
如果您看到 following link
class SQLContext.implicits$.StringToColumn
Converts $"col name" into an Column.
它在 sqlContext.implicits._
的哪个位置定义了 $"string" 来表示对父数据框列的数据框调用?具体来说,我对看到如下内容感到困惑:
import sqlContext.implicits._
df.where($"type".isin("type1","type2") and $"status".isin("completed","inprogress"))
如果您看到 following link
class SQLContext.implicits$.StringToColumn
Converts $"col name" into an Column.