Hello,
I had a schema-enforced lakehouse and tried to create a table with Pyspark. Code as below:
df.write.mode("overwrite").option("overwriteSchema", "true").format("delta").saveAsTable("schema.table")
But returned the error like this: An error occurred while calling o4724.saveAsTable. : java.lang.RuntimeException: Request failed: HTTP/1.1 403 Forbidden
I am able to use the same code to create a table in a non schema lakehouse.
My account have write permission to both lakehouses.
Does anyone has insight of it?
Thank you!!