DESCRIBE CATALOG

적용 대상:검사 '예'로 표시 Databricks SQL 검사 '예'로 표시 Databricks Runtime 10.4 LTS 이상 검사 '예'로 표시 Unity 카탈로그만 해당

기존 카탈로그의 메타데이터를 반환합니다. 메타데이터 정보에는 카탈로그 이름, 주석, 소유자가 포함됩니다. 선택적 EXTENDED 옵션을 지정하면 다른 카탈로그 속성과 함께 기본 메타데이터 정보가 반환됩니다.

구문

{ DESC | DESCRIBE } CATALOG [ EXTENDED ] catalog_name

매개 변수

  • catalog_name: 메타스토어에 있는 기존 카탈로그의 이름입니다. 이름이 없으면 예외가 throw됩니다.

예제

> 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