title: Upsert to Phoenix table in Apache Spark
body: <p>Looking to find if anybody got through a way to perform upserts (append / update / partial inserts/update) on Phoenix using Apache Spark. I could see as per <a href="https://phoenix.apache.org/phoenix_spark.html" rel="nofollow noreferrer">Phoenix documentation</a> save <code>SaveMode.Overwrite</code> is only supported - which is overwrite with full load. I tried changing the mode it throws error. </p>
  
  <p>Currently, we have *.hql jobs running to perform this operation, now we want to rewrite them in Spark Scala. Thanks for sharing your valuable inputs.</p>