Spark 2.0, DataFrame, filter a string column, unequal operator (!==) is deprecated

后端 未结 1 578
深忆病人
深忆病人 2021-02-18 22:17

I am trying to filter a DataFrame by keeping only those rows that have a certain string column non-empty.

The operation is the following:

df.filter($\"st         


        
相关标签:
1条回答
  • 2021-02-18 22:44

    Use =!= as a replacement:

    df.filter($"stringColumn" =!= "")
    
    0 讨论(0)
提交回复
热议问题