table_exists
Creates, updates, deletes, gets or lists a table_exists resource.
Overview
| Name | table_exists |
| Type | Resource |
| Id | databricks_workspace.unitycatalog.table_exists |
Fields
The following fields are returned by SELECT queries:
- exists
The boolean reflecting if the table exists was successfully returned.
| Name | Datatype | Description |
|---|---|---|
table_exists | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
exists | select | deployment_name | Gets if a table exists in the metastore for a specific catalog and schema. The caller must satisfy one of the following requirements: |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT examples
- exists
Gets if a table exists in the metastore for a specific catalog and schema. The caller must satisfy one of the following requirements:
SELECT
table_exists
FROM databricks_workspace.unitycatalog.table_exists
WHERE deployment_name = '{{ deployment_name }}' -- required;