Forum Discussion
PeterDaniels
Advocate III
2 years agoForbidden error using saveAsTable
I have a dataframe. Trying to simply saveAsTable (delta). I get a strange Forbidden error. I am admin in the workspace and I'm the one that created the lakehouse. I've tried just using a table name, ...
- 2 years ago
Yeah. I think the solution for now is to not use schema enabled lakehouses. Hopefully that feature will get more robust as it heads towards GA
Anonymous
2 years agoNot applicable
Hi PeterDaniels ,
Thank you for your reply from frithjof_v .
I was able to reproduce your error with the preview schema feature enabled, and the error occurs seemingly because of an architecture mismatch.
Using the statement “SaveAsTable” works fine, you can try it:
df = spark.read.format(“csv”).option(“header”, “false”).load( “Files/2019.csv")
# Create a new table
df.write.format(“delta”).saveAsTable(“test2”)
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!