Forum Discussion
Failed to create table and schema
- 2 years ago
felipe_regis , Yes we can't create schema in the lakehouse. In the code given in the lab the sales denotes lakehouse name not the schema. So if you haven't created the sales lakehouse your code will show this error.
Hi felipe_regis
Thanks for using Fabric Community.
Apologies I could not understand the issue properly. Are you trying to say that you are able to create a new table in the Lakehouse using SQL code in the notebook, but getting an error while using python?
Actually, answers and thoughts mentioned were pretty useful. Just to clarify, I was not able to create a table using the following synthax [sales].[table_name]. As "sales" lakehouse didn't exist I got that error, "schema not found or does not exist".
I understood that it's not possible to create schemas when using a Lakehouse but, indeed, it's possible to create a table when referencing a lakehouse name instead. Such as [Lakehouse_name].[table_name].
Thanks anyways
Regards