Skip to main content
Table assets represent tables or views in your data warehouse. Register table assets to track metadata, ownership, and descriptions in Elementary Cloud.

TableAsset Object

from elementary_python_sdk import TableAsset

asset = TableAsset(
    name="string",                  # Required: Table name
    database_name="string",         # Required: Database name
    schema_name="string",           # Required: Schema name
    table_name="string",            # Required: Table name
    description="string",           # Optional: Table description
    owners=["string"],              # Optional: List of owners (emails or usernames)
    tags=["string"],               # Optional: List of tags
    depends_on=["string"]           # Optional: List of upstream asset IDs
)

Required Fields

FieldTypeDescription
namestringDisplay name for the table
database_namestringName of the database containing the table
schema_namestringName of the schema containing the table
table_namestringName of the table

Optional Fields

FieldTypeDescription
descriptionstringHuman-readable description of the table
ownerslist[string]List of owners (email addresses or usernames)
tagslist[string]List of tags for categorization
depends_onlist[string]List of upstream asset IDs (e.g., ["prod.public.customers", "prod.public.orders"]) for lineage tracking

Example

from elementary_python_sdk import TableAsset

# Create a table asset
asset = TableAsset(
    name="users",
    database_name="prod",
    schema_name="public",
    table_name="users",
    description="Users table",
    owners=["data-team"],
    tags=["pii", "production"],
    depends_on=["prod.public.customers", "prod.public.orders"]
)

Best Practices

  1. Include descriptions - Add meaningful descriptions to help your team understand what each table contains
  2. Set owners - Assign owners to tables so they receive alerts and notifications
  3. Use tags - Tag tables to enable filtering and grouping in the Elementary UI
  4. Define dependencies - Use depends_on to establish lineage connections to upstream assets
  5. Update regularly - Send updated table assets when metadata changes (descriptions, owners, tags, dependencies)
Table assets are updated on each ingest, so include all current metadata in every request.