在使用 Databricks 时,我需要删除 外部位置。
我小跑
SHOW EXTERNAL LOCATIONS
这个结果:
此后我会小跑
DROP EXTERNAL LOCATION gold_prd
接收错误:
Storage Location has dependent catalogs, schemas, managed or external tables/volumes; You may use force option to delete it but the managed storage data under this location cannot be purged by Unity Catalog anymore.
我在此位置下没有目录/模式或其他对象,但在强制操作之前,有没有办法列出从此位置依赖的所有对象?
据我所知,没有统一的方法来获取依赖于外部位置的所有对象的列表。您需要使用以下命令检查各个表或架构。
--For tables
DESCRIBE TABLE tabalename;
--For Schema
DESCRIBE SCHEMA employees;
您可以检查此文档并验证您是否从该位置选择了当前在其他目录中处于活动状态的任何表。您的元数据通常保存在元存储中;仅外部表中的数据保存在外部位置。