https://delta.io logo
l

Lucas Zago

02/10/2023, 12:33 PM
Hi guys Question here, I saved the following table: test.write .format("delta") .mode("overwrite") .option("overwriteSchema","true") .saveAsTable(path), when i try to upsert this table i got the error: "path" is not a Delta table Any advices to solve it ?
r

Ryan Zhu

02/10/2023, 3:50 PM
If you use the table path, you need to use
save
rather than
saveAsTable
✔️ 1
j

JosephK (exDatabricks)

02/10/2023, 3:58 PM
Ryan is correct. saveastable will write to the default metastore
3 Views