Loading the documentation…

Deploy, run, truncate and monitor tables

Use this page to deploy, run, check, truncate and drop Warehouse tables day to day. To build a table first, see Create a dimension or fact table and Build, test and finalize a transformation.

Deploy a table

Deploying creates the table in the warehouse from its current definition. Until then, the table shows Pending in the tree.

  1. In the tree, right-click the table and choose Deploy. This works for undeployed Fact, Dimension, View and Static tables.
  2. Or open the table, go to Settings and click Deploy in the banner there. While the deploy runs, the action reads Deploying and stays disabled.
  3. Read the message. A successful deploy shows Table deployed successfully. If it fails, you see Table deployment failed. Table partially deployed means only some of the work succeeded.

Until the table is deployed, content that needs the stored table shows a Table Not Deployed card (for example Fact Table Not Deployed) in place of that content, with a line on what deploying unlocks and no actions of its own. The content opens when the deploy finishes. Shared elements in table popups collects the banner and card with the other common pieces.

Deploying also builds the table's access layer and reapplies its Mind grants, so access is ready as soon as the table exists. Sync a table with the database covers the structure side of the deploy.

A Dictionary has no Deploy in the tree. Open it instead: its data mapping step shows a Deploy button until the table is deployed.

Run a transformation

From the table:

  1. Open the table and go to Transformations.
  2. Click Run transformation on the transformation's card.
  3. In Execute Transformation, choose the date and set any values under Run Parameters. Click Execute.
  4. The popup opens the Settings tab, where the run appears under Transformation Runs.

From the transformation:

  1. Open the transformation and go to Execution.
  2. Click Execute Now, choose the date and set the run parameters, then click Execute.

To see what a run writes, see How Dimension and Fact runs write data.

If the workflow or another run is loading the same table, your run does not fail: it appears as Pending with a Queued chip and starts by itself when the table is free. See When a table is busy.

Run history for one source system

A Dimension with Store History keeps its versions current through a history run. It normally runs with the table's workflow, and a run can also be started on its own for one source system and a date. Dimension history explains what a run writes and the reasons a history step stops.

For it to run, the table must be a deployed Dimension with Store History on, and the source system must have a transformation with its schedule on. When it starts, DataMind shows History transformation started on JobId: followed by the job's ID.

The start is refused with the reason when something is missing:

While a transformation or another history run of that source system is still going, the history run waits as Pending with a Queued chip and starts when they end.

Use the Settings actions

The Settings tab gathers the table's actions, such as Deploy, Truncate and Drop, into a strip of small buttons.

Read runs and statistics

The Transformation Runs table on Settings lists each run with its ID, Name, Status, Run Scope, Note, Rows, Error, Duration, User, Start, Finish and Snap Date. It refreshes by itself while the tab stays open: every two seconds while a run is active, and every ten seconds otherwise. Click Refresh runs in the table toolbar to reload the list yourself.

The Status column carries the run's state: Running, Finished, Failed, Aborted, Error, Running Error or Skipped. A run that waits for its table shows a Queued chip with the reason next to it. A skipped step is not an error; Skipped runs and restarts explains why runs skip or are refused.

The statistics strip at the top of Settings shows Size, Rows and Partitions. Click Refresh to reload them. The transformation's own Execution tab keeps a Run Log; Run a transformation and read the Run Log explains it.

Stop a running transformation

  1. In the table's Settings tab, click the stop button at the end of the running row. This tab does not ask you to confirm.
  2. Or open the transformation, go to Execution, click the stop button on the running row, and confirm Abort Transformation Run.

On a run that is still queued for its table, the stop button reads Cancel; it drops the run before it starts.

Truncate data for one source system

Truncate removes the data of one source system from a Dimension or Fact table. The table itself stays.

  1. Open the table, go to Settings and click Truncate in the statistics strip. The button appears only when the table is deployed.
  2. In Truncate Partitions, pick a source system under Source Systems.
  3. For a Fact, pick the dates under Partition Dates. For a Dimension that keeps history, pick a Truncate Target: Main (the default) clears the current data, History clears the versioned rows, and All clears both. Dimension history explains what those versions are.
  4. Read the summary and click Truncate. It counts the partitions you are about to remove and states This action cannot be undone.

When the truncate finishes, DataMind shows Partitions truncated successfully. A truncate needs the whole table, so it waits for the loads of every source system of the table; if they do not end within 10 seconds, Table is busy offers Run when free. See When a table is busy. The full dialog is described with the rest of the tab in Dimension and fact settings.

Drop a table

Drop removes the stored table but keeps its definition, so you can deploy it again.

  1. Open the table, go to Settings and click Drop in the statistics strip. The button appears only for deployed tables.
  2. Read the dialog. It warns that all data is permanently deleted, and that the definition stays so you can deploy again. Anything depending on the table is not dropped and breaks until you fix it or redeploy the table.
  3. Click Drop table.

For a view, the dialog warns that the view is removed from ClickHouse instead of warning about data. Drop a table instead quotes the dialog in full.

When the drop finishes, DataMind shows The table has been dropped from the database. If the drop fails, the dialog stays open next to the error so you can fix the cause and try again. While a load uses the table, the drop waits like a truncate and can be queued with Run when free. A dropped table is no longer deployed, so it shows Pending again.

Warning

Dropping a table does not remove what depends on it. Those objects break until you fix them or redeploy the table. Check the Dependants tab first.

Check what depends on a table

Open the table and go to Dependants. The tab lists downstream objects grouped by kind. If nothing uses the table, you see No dependants found.

Objects you cannot open are summarised as, for example, "2 Minds you cannot access". Ask their owners before you change the table. Dependencies and dependants describes the full tab, and Explore and trace lineage shows the wider picture.

Delete a table or transformation

Deleting removes a table or a transformation for good. Delete Warehouse objects covers the single and batch flows, the dependants check, refusals and retries.

Permissions

ActionPermission
Deploy, truncate, drop and delete a transformationCreate/Edit Warehouse Objects
Run and abort transformationsExecute/Stop Warehouse Objects
Run history for a source systemExecute/Stop Warehouse Objects
Delete tablesDelete Warehouse Objects
Read statistics and runsView Warehouse Objects

For the full picture, see Warehouse permissions and row-level security.

Limits

Questions, answered

What does the Table Not Deployed card mean?

The table's definition exists, but the table itself is not deployed yet, so content that needs the stored table stays closed. Click Deploy in the banner on Settings, or in the tree; the tabs open when the deploy finishes. While it runs, the action reads Deploying and stays disabled.

Why is a settings action greyed out?

It cannot run in the table's current state, and a tooltip on it says why. Point at the action to read the reason. A spinner on the button means the action is already running.

What is the difference between Truncate and Drop?

Truncate removes the data of one source system, and for a Fact, the dates you pick. The table stays. Drop removes the stored table but keeps its definition, so you can deploy it again.

Why is Execute Now missing?

Execute Now appears only after the transformation is finalized. Finish validation first, as described in Build, test and finalize a transformation.

How do I stop a running transformation?

Click the stop button on the running row, either in the table's Settings tab, which stops the run without a confirmation, or in the transformation's Execution tab, where you confirm Abort Transformation Run.

Can I truncate only last week of a Fact?

Yes. Pick the source system, then pick only the dates from last week under Partition Dates.

What does the History truncate target clear?

The versioned rows, not the current ones. Main clears the current data, History clears the versioned rows, and All clears both. Dimension history explains what the versions hold.

I truncated the history by mistake. Can I undo it?

No. Truncation cannot be undone, and the confirmation says so before you click Truncate.

Do runs refresh by themselves?

Yes, while the tab stays open: every two seconds while a run is active, and every ten seconds otherwise. Refresh runs reloads the list on demand.

Can I delete a transformation without Delete Warehouse Objects?

Yes. Deleting a transformation needs Create/Edit Warehouse Objects. Deleting a table needs Delete Warehouse Objects.