DataFrame的Spark隐式$ [英] Spark Implicit $ for DataFrame
本文介绍了DataFrame的Spark隐式$的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在sqlContext.implicits._
中的哪个位置定义了$"string"来表示对父数据框的列的数据框调用?具体来说,我对看到以下内容感到困惑:
Where in the sqlContext.implicits._
does it define the $"string" to represent a dataframe call to the parent dataframe's column? Specifically I was confused on seeing something like the following:
import sqlContext.implicits._
df.where($"type".isin("type1","type2") and $"status".isin("completed","inprogress"))
推荐答案
查看全文