You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The difficulty with this is In Spark is that spark will always call "load" before drop.
So essentially DROP in Spark looks like
Load Catalog
Load Table
Call Table.Drop
This makes it difficult to implement a "force drop" because the call to Table.Drop happens after we have the error at LoadTable. We've had several threads and Issues about this previously, maybe the best thing to do is add a Java Utillity method which just calls the underlying Catalog Drop Function on the Spark Table isntance without going through the load pathway?
For Hive catalogs in Spark we can already work around the Spark interface by calling Drop directly on the hive catalog,
You can do this with a
How about adding a new procedure that drops a table without "load" or deleting files?
Trino Iceberg connector has unregister_table procedure as you may already know:
Feature Request / Improvement
Spark configuration
Question:
drop table failed when metadata.json file is missing
When the metadata.json file is lost, I want to delete this table record from the hive metastore. How to solve this situation?
Query engine
Spark
Willingness to contribute
The text was updated successfully, but these errors were encountered: