Table
laktory.models.resources.databricks.Table
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
A table resides in the third layer of Unity Catalog’s three-level namespace. It contains rows of data.
ATTRIBUTE | DESCRIPTION |
---|---|
catalog_name |
Name of the catalog storing the table |
columns |
List of columns stored in the table |
comment |
Text description of the catalog |
data_source_format |
External tables are supported in multiple data source formats. The string constants identifying these formats are DELTA, CSV, JSON, AVRO, PARQUET, ORC, TEXT. Change forces creation of a new resource. Not supported for MANAGED tables or VIEW.
TYPE:
|
grants |
List of grants operating on the schema
TYPE:
|
lookup_existing |
Specifications for looking up existing resource. Other attributes will be ignored.
TYPE:
|
name |
Name of the table
TYPE:
|
primary_key |
Name of the column storing a unique identifier for each row. It is used by the builder to drop duplicated rows. |
schema_name |
Name of the schema storing the table |
storage_credential_name |
For EXTERNAL Tables only: the name of storage credential to use. Change forces creation of a new resource. |
storage_location |
URL of storage location for Table data (required for EXTERNAL Tables). Not supported for VIEW or MANAGED table_type. |
table_type |
Distinguishes a view vs. managed/external Table.
TYPE:
|
view_definition |
SQL text defining the view (for |
warehouse_id |
All table CRUD operations must be executed on a running cluster or SQL warehouse. If a warehouse_id is specified, that SQL warehouse will be used to execute SQL commands to manage this table. |
Examples:
from laktory import models
table = models.resources.databricks.Table(
name="slv_stock_prices",
)
References
Attributes¤
--
laktory.models.resources.databricks.table.TableLookup
¤
Bases: ResourceLookup
ATTRIBUTE | DESCRIPTION |
---|---|
name |
Full name of the databricks_table:
TYPE:
|