Skip to main content

Table Metadata

The Table Metadata section of a task lets you describe the Delta table the task produces — its primary key, comments, tags, constraints, and per-column documentation. The metadata is applied to the Delta table when the task runs.

Use it to keep schema documentation alongside the pipeline that produces the data, so Unity Catalog stays up to date without a separate process.

When it appears

Table Metadata appears on ingestion tasks that elevate data to a Delta table, where Schema Name and Table Name are configurable options.

Open a valid task, and scroll to the Table Metadata section.

Table Metadata section in the task configuration

The section is organised as a stack of panels:

  1. Sync from Databricks — pull live metadata from an existing table
  2. Table Comment — free-text description of the table
  3. Table Tags — key/value tags applied to the table itself
  4. Primary Key — the columns that uniquely identify a row
  5. Foreign Keys — references to columns in other tables
  6. Unique Constraints — column sets that must be unique across rows
  7. Liquid Clustering Columns — columns Databricks should cluster the table on
  8. Column Tags/Comments — per-column documentation in a grid

You can fill any subset — every section is optional.

Sync from Databricks

If the target table already exists in Unity Catalog, Sync from Databricks pulls its current metadata into the form so you don't have to type everything by hand.

  1. Make sure Schema Name and Table Name are set on the task. The Sync button is disabled until both are filled.
  2. Click Sync from Databricks at the top of the section.
  3. The button shows Syncing… while it fetches. On success a green tick appears next to it and a success toast. On failure a red cross and an error toast.

How the merge works

Sync is non-destructive — values you've already entered are preserved. The merge follows these rules:

FieldBehaviour
Single-value fields (Table Comment, Primary Key, Liquid Clustering Columns)Filled in only if the form value is empty. Existing values are left alone.
List fields (Table Tags, Foreign Keys, Unique Constraints, Columns)Combined with the incoming list. Where an item already exists locally, your values win and the incoming values are ignored. New items from Databricks are appended.
Column tags and commentsFor columns that already exist in the form, empty Data Type and Comment fields are filled in from Databricks. Existing tags are kept; new tags from Databricks are appended.

If you change Schema Name or Table Name between syncs, the next sync starts from a clean slate rather than merging — the form treats it as a different table.

tip

Sync once at the start to seed the form, then edit. You can re-sync any time to pull in changes Databricks has made — your manual edits won't be overwritten.

Table-level fields

Table Comment

A free-text description of what the table holds.

Table Comment field

Table Tags

Key/value pairs attached to the table. Use them for governance metadata (environment: prod, owner: data-eng, pii: true).

To add a tag:

  1. Enter a Key and Value in the input fields below the saved tags list.
  2. Click Add Tag.

The new tag appears in the list above as Key:Value. Click the close icon on a tag to remove it.

Keys must be unique across the table's tags — adding a second tag with the same key shows a validation error.

Table Tags section

Primary Key

A comma-separated list of column names that uniquely identify a row. For composite keys, list each column separated by commas — for example, org_id, user_id.

The columns named here are highlighted with a yellow key icon in the Column Tags/Comments grid.

Primary Key field

Foreign Keys

Each foreign key declares that one or more columns in this table reference columns in another table.

To add a foreign key:

  1. Fill in Column(s) — the column or comma-separated columns in this table.
  2. Fill in Referenced table in schema.table format.
  3. Optionally fill in Referenced column(s) — if the referenced columns have different names from yours.
  4. Click Add Foreign Key.

The saved foreign key renders as column → schema.table (refcolumn) so you can see at a glance what points where.

Foreign Keys section

Columns appearing in a foreign key are highlighted with a blue link icon in the Column Tags/Comments grid.

Unique Constraints

Each unique constraint is a set of columns whose combined values must be unique across the table.

  1. Enter a comma-separated list of column names in Columns.
  2. Click Add Unique Constraint.

For a single-column constraint, just enter the one column name. For a composite constraint, list every column in the set.

Unique Constraints section

Liquid Clustering Columns

A comma-separated list of column names Databricks should use for liquid clustering. Setting this here applies the clustering when the table is altered.

Liquid Clustering Columns field

Column Tags/Comments

The Column Tags/Comments grid lets you document every column in the table.

ColumnDescription
ColumnThe column name. Editable until a row is saved, then locked. Highlighted with a key icon if it's part of the primary key, or a link icon if it's part of a foreign key.
TypeThe column's data type, populated from Databricks via Sync. Not editable here — change the type in Databricks.
CommentA free-text description of the column. Multi-line.
TagsKey/value tags attached to the column. The first few show as chips; the rest are accessible via the edit icon.

Column Tags/Comments grid

Adding and removing columns

  • Click the + icon in the grid toolbar to add a blank row.
  • Click the delete icon on a row to remove the column. Removing a column also cleans up references to it — see Deleting a column.
  • Use the search box in the toolbar to filter the grid by column name.

Editing column tags

Click the edit icon next to the tag chips on a column to open the Edit tags modal.

Edit tags modal

In the modal:

  1. Existing tags appear at the top — edit Key/Value inline, or click the delete icon to remove a tag.
  2. Add a new tag by entering a Key and Value in the draft area and clicking Add Tag.
  3. Click Save to commit the changes, or Cancel to discard.

Keys must be unique within the column's tags. Both Key and Value are required to add a tag.

Generate missing comments with AI

Below the grid is a Generate missing comments with AI checkbox. When ticked, the next time the task runs, any column with an empty Comment gets one auto-generated based on the column name, type, and surrounding context.

Columns that already have a comment are not modified.

Deleting a column

When you delete a column from the grid, all dangling references to it from elsewhere in the metadata will be stripped including:

  • Primary Key — the column name is removed from the comma-separated list.
  • Foreign Keys — any foreign key whose Column becomes empty after removal is dropped entirely.
  • Unique Constraints — any constraint whose Columns set becomes empty is dropped.
  • Liquid Clustering Columns — the column name is removed from the list.