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
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)
val df0 = df_org.filter(col("fiscal_year").isNotNull())
val df0 = df_org.filter(col("fiscal_year").isNotNull)
Try removing () in isNull() in your filter.
()
isNull()