TABLE_SHARE_USAGE
Applies to: Databricks SQL Databricks Runtime 10.4 LTS and above
INFORMATION_SCHEMA.TABLE_SHARE_USAGE lists tables which belong to 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 TABLE_SHARE_USAGE
relation contains the following columns:
Name |
Data type |
Nullable |
Description |
---|---|---|---|
|
|
No |
Catalog of the table in the share. |
|
|
No |
Schema of the table in the share. |
|
|
No |
Table in the share. |
|
|
No |
Name of the share. |
|
|
Yes |
Partition filtering specification for the shared table. |
|
|
No |
Whether CDF is enabled on the shared table. |
|
|
No |
The start version associated with the shared table. |
|
|
No |
Alias of the shared schema. |
|
|
No |
Alias of the shared table. |
|
|
Yes |
An optional comment that describes the table share usage. |
Constraints
The following constraints apply to the TABLE_SHARE_USAGE
relation:
Class |
Name |
Column List |
Description |
---|---|---|---|
Primary key |
|
|
Unique identifier for the table share usage. |
Foreign key |
|
|
References TABLES |
Foreign key |
|
|
References SHARES |