Thank you for reaching out to the community forum with your query.
As I understand you’re encountering an issue while creating a table in a new schema within Synapse Analytics Lakehouse Database. Let’s address this!
The error message you received indicates that the catalog couldn’t find the specified identifier (core.Deal.stg_tbl_DEAL_BULK_Opportunities
). This could be due to incorrect schema or table names. Let’s address this!
- Creating a Table in a New Schema: To create a table in a new schema, you can follow these steps: Step 1: Define Your Schema: Decide on the name of your new schema. For example, let’s call it
my_new_schema
. Step 2: Create the Table: Use the following PySpark code snippet to create your table in the desired schema:
Step 3: verify the Table: After executing the code, verify that the table has been created in the specified schema.# Replace 'my_new_schema' and 'my_table_name' with your actual schema and table names df.write.mode("overwrite").saveAsTable("my_new_schema.my_table_name")
- Ensure that the schema exists before creating the table.
- Double-check the schema and table names for typos or inconsistencies.
Reference:
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.