An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
How to delete a table in Azure Synapse Dedicated Pool from a Synapse Spark notebook
I have a notebook that loads several tables in Azure Synapse Dedicated pool. I am using the Apache Spark connector for Synapse dedicated pools. I am using mode("overwrite"), but this does not drop the target table. I need to do something similar to "drop table if exists stg.customer" before loading from a dataframe in the notebook. I have tried everything I can think of, including a stored procedure, but nothing works. Any advice is greatly appreciated! A screenshot of my cell and what I have tried follows (note that the procedure works if I run it from a SQL script, but the table remains even after this cell runs successfully...nothing really happened):
Azure Synapse Analytics
2 answers
Sort by: Oldest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more