Azure Synapse Unable to drop created table
I have created a table in the synapse notebook using the following method.
path = "synfs:/{}{}/".format(jobId,mountPoint)
spark.sql(f"CREATE TABLE test_table USING DELTA LOCATION '{path}'")
and a table named test_table is created under this section.
However, once the session closes, and a new session is started, I realised that the path used to create this test_table would not exist since the path is specific to the previous session due to the jobId and mount.
java.util.concurrent.ExecutionException: org.apache.hadoop.fs.PathNotFoundException:
Tried dropping the table using spark.sql("DROP TABLE IF EXISTS test_table ") but that didn't work either.
Are there other ways to drop this table?