Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 49042

Table creation in lakehouse with schema

$
0
0

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!!
 

Viewing all articles
Browse latest Browse all 49042

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>