Skip to main content

tables

Operations on a tables resource.

Overview

Nametables
TypeResource
Iddatabricks_workspace.unitycatalog.tables

Fields

NameDatatype
namestring
access_pointstring
browse_onlyboolean
catalog_namestring
columnsarray
commentstring
created_atinteger
created_bystring
data_access_configuration_idstring
data_source_formatstring
deleted_atinteger
delta_runtime_properties_kvpairsobject
effective_predictive_optimization_flagobject
enable_predictive_optimizationstring
full_namestring
metastore_idstring
ownerstring
pipeline_idstring
propertiesobject
row_filterobject
schema_namestring
sql_pathstring
storage_credential_namestring
storage_locationstring
table_constraintsarray
table_idstring
table_typestring
updated_atinteger
updated_bystring
view_definitionstring
view_dependenciesobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTfull_name, deployment_nameGets a table from the metastore for a specific catalog and schema. The caller must satisfy one of the following requirements:
listSELECTcatalog_name, schema_name, deployment_nameGets an array of all tables for the current metastore under the parent catalog and schema. The caller must be a metastore admin or an owner of (or have the
deleteDELETEfull_name, deployment_nameDeletes a table from the specified parent catalog and schema. The caller must be the owner of the parent catalog, have the

SELECT examples

SELECT
name,
access_point,
browse_only,
catalog_name,
columns,
comment,
created_at,
created_by,
data_access_configuration_id,
data_source_format,
deleted_at,
delta_runtime_properties_kvpairs,
effective_predictive_optimization_flag,
enable_predictive_optimization,
full_name,
metastore_id,
owner,
pipeline_id,
properties,
row_filter,
schema_name,
sql_path,
storage_credential_name,
storage_location,
table_constraints,
table_id,
table_type,
updated_at,
updated_by,
view_definition,
view_dependencies
FROM databricks_workspace.unitycatalog.tables
WHERE full_name = '{{ full_name }}' AND
deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a tables resource.

/*+ delete */
DELETE FROM databricks_workspace.unitycatalog.tables
WHERE full_name = '{{ full_name }}' AND
deployment_name = '{{ deployment_name }}';