Partager via


DESCRIBE CATALOG

S’applique à :coché oui Databricks SQL coché oui Databricks Runtime 10.4 LTS et versions ultérieures coché oui Unity Catalog uniquement

Retourne les métadonnées d’une catalogexistante. Les informations de métadonnées incluent catalog nom, commentaire et propriétaire. Si l’option EXTENDED facultative est spécifiée, elle retourne les informations de métadonnées de base ainsi que les autres propriétés catalog.

Syntaxe

{ DESC | DESCRIBE } CATALOG [ EXTENDED ] catalog_name

Parameters

  • catalog_name: nom d’une catalog existante dans le metastore. Si le nom n’existe pas, une exception est levée.

Exemples

> DESCRIBE CATALOG main;
 info_name     info_value
 ------------  ------------------------------------
 Catalog Name                                  main
      Comment           Main catalog (auto-created)
        Owner                 metastore-admin-users
 Catalog Type                               Regular

> DESCRIBE CATALOG EXTENDED main;
 info_name     info_value
 ------------  ------------------------------------
 Catalog Name                                  main
      Comment  This is a reserved catalog in Spark.
      Comment           Main catalog (auto-created)
        Owner                 metastore-admin-users
 Catalog Type                               Regular
   Created By
   Created At
   Updated By
   Updated At

-- A catalog from a Delta Sharing share
> DESCRIBE CATALOG vaccinedata;
 info_name     info_value
 ------------  ------------------------------------
 Catalog Name                           vaccinedata
      Comment
        Owner            alwaysworks@databricks.com
 Catalog Type                         Delta Sharing