CATALOG_PRIVILEGES

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 10.2 and above

INFORMATION_SCHEMA.CATALOG_PRIVILEGES lists principals which have privileges on the catalogs.

Definition

The CATALOG_PRIVILEGES relation contains the following columns:

Name

Data type

Nullable

Standard

Description

GRANTOR

STRING

No

Yes

Principal that granted the privilege.

GRANTEE

STRING

No

Yes

Principal to which the privilege has been granted.

CATALOG_NAME

STRING

No

Yes

Catalog on which privilege has been granted.

PRIVILEGE_TYPE

STRING

No

Yes

Privilege being granted.

IS_GRANTABLE

STRING

No

Yes

Always NO. Reserved for future use.

Constraints

The following constraints apply to the CATALOG_PRIVILEGES relation:

Class

Name

Column List

Description

Primary key

CATPRIVS_PK

GRANTOR, GRANTEE, CATALOG_NAME, PRIVILEGE_TYPE

Unique identifier for the privilege granted.

Foreign key

CATPRIVS_CATS_FK

CATALOG_NAME

References CATALOGS

Examples

> SELECT catalog_name, grantee
    FROM information_schema.catalog_privileges;