DataFrame的Spark隐式$ [英] Spark Implicit $ for DataFrame

查看:95
本文介绍了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"))

推荐答案

如果您看到

SQLContext.implicits $ .StringToColumn类

class SQLContext.implicits$.StringToColumn

将$"col name"转换为列.

Converts $"col name" into an Column.

此处是链接以获得最新版本.

这篇关于DataFrame的Spark隐式$的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆