sparksql 过滤出null值

来源:互联网 发布:linux的java环境变量 编辑:程序博客网 时间:2024/05/17 13:44

过滤出空的值 :

 by_car_score_id.filter("type is not null")

 by_car_score_id.filter("type is null")

下面的方法试了可是不行:

df.where(df.col("type").isNull()) 
df.where(df.col("type").isNotNull())
df.filter(df.col("type").isNotNull())
df.filter(df.col("type").isNull())

0 0
原创粉丝点击