I am able to create databricks delta tables using scala and able to perform append and overwrite operations over it.
Is there any way I can perform DELETE and UPDATE operations using scala and not through Databricks runtime.
val target = Seq(
Data("a", "0"),
Data("b", "1"),
Data("c", "2"),
Data("d", "3")
).toDF().write.format("delta").mode("overwrite").saveAsTable("target")
val DF1 = spark.table("target")
DF1.show()
val NewInserts = Seq(
Data("a", "0"),
Data("b", "1"),
Data("c", "2"),
Data("d", "3")
).toDF().write.format("delta").mode("append").saveAsTable("target")
val DF2 = spark.table("target")
DF2.show()