Postgres If Value Is Not Null Pyspark