I am trying to do upsert from pyspark to postgresql. pyspark script is being submitted by NiFi using executesparkinteractive processor. This is what I am trying -