Skip to main content

SHARES

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 10.4 LTS and above

INFORMATION_SCHEMA.SHARES describes shares.

Information is displayed only for shares the user has permission to interact with.

This is an extension to the SQL Standard Information Schema.

Definition

The SHARES relation contains the following columns:

NameData typeNullableDescription
SHARE_NAMESTRINGNoName of the share.
SHARE_OWNERSTRINGNoOwner of the share.
COMMENTSTRINGYesAn optional comment that describes the share.
CREATEDTIMESTAMPNoTimestamp when the share was created.
CREATED_BYSTRINGNoPrincipal who created the share.
LAST_ALTEREDTIMESTAMPNoTimestamp when the share was last altered in any way.
LAST_ALTERED_BYSTRINGNoPrincipal who last altered the share.

Constraints

The following constraints apply to the SHARES relation:

ClassNameColumn ListDescription
Primary keySHARES_PKSHARE_NAMEUnique identifier for the share.

Examples

SQL
> SELECT share_owner
FROM information_schema.shares