Unsupported literal type class scala.runtime.BoxedUnit

后端 未结 2 1428
不知归路
不知归路 2020-12-20 23:31

I am trying to filter a column of a dataframe read from oracle as below

import org.apache.spark.sql.functions.{col, lit, when}

val df0  =  df_org.filter(col         


        
相关标签:
2条回答
  • 2020-12-20 23:58

    Just remove parenthesis on your function:

    from:
    val df0 = df_org.filter(col("fiscal_year").isNotNull())
    to:
    val df0 = df_org.filter(col("fiscal_year").isNotNull)

    0 讨论(0)
  • 2020-12-21 00:04

    Try removing () in isNull() in your filter.

    0 讨论(0)
提交回复
热议问题