Loading the documentation…

Deploy a table

Deploying builds a table in the Lake with its current column configuration. Until a table is deployed, parts of its popup stay locked. This page covers deploying from the table popup, deploying several tables from the Lake tree, and the changes that drop and recreate a deployed table.

Deploy from the table popup

  1. Open the table: double-click it in the Lake tree, or right-click it and choose Edit.
  2. A banner above the form reads This table is ready to deploy. Deploy to access settings and lake preview. Click Deploy. While the deploy runs, the button reads Deploying.
  3. A notification reports the result, with the message the server returns.
  4. The Settings tab opens and the Lake mode of Preview unlocks.

One banner shows at a time: a deploy error comes first, then the primary-key notice, then the ready notice. The popup deploys this table only; to deploy several tables together, see Deploy several tables from the tree.

Add a primary key first

A table needs at least one primary key column to deploy. Without one, the banner reads Primary key required. Define a primary key column before this table can be deployed. and offers Go to Columns:

  1. Click Go to Columns.
  2. Tick PK on the column that identifies each row.
  3. Click Apply, then click Deploy in the banner.

The key check comes first: while the table has no key, the popup asks for one even when the table is otherwise ready to deploy. Set up a table's columns covers the PK flag and its rules.

Why the Settings tab is locked

Until a table is deployed, its Settings tab shows Table Not Deployed with Deploy this table to access settings. Deployment creates the table in the lake with your current column configuration. The Lake mode of Preview stays unavailable with the tooltip Deploy the table to preview lake data, and Refresh stays disabled.

If the table also has no primary key, the tab shows Primary Key Required with This table must have at least one primary key column before it can be deployed. Define a primary key in the Columns tab to continue. instead.

Deploy the table and the locked parts open; see Preview table data and Run, stop and troubleshoot loads.

When a deploy fails

A failed deploy shows an error banner above the form. The whole banner is clickable, and it offers:

The notification uses the first failed reason, or Failed to deploy table when the server gives none. For the messages and their fixes, see Lake troubleshooting.

Deploy several tables from the tree

Deploy from the Lake tree to build several tables at once: mark a table, tick several items with Batch select, or right-click a datasource, database or schema to deploy the tables under it.

A table can be deployed when it is not deployed yet and has at least one primary key column. Only tables are deployed. Selecting a datasource, database or schema collects the tables under it, and only the deployable ones are deployed; the rest are skipped and counted in the confirmation.

From the tree toolbar

  1. Click a row to mark it, or turn on Batch select and tick the tables you want.
  2. Click Deploy in the tree toolbar.
  3. In Deploy Selected Items?, check Tables to deploy: {n}.
  4. When tables are skipped, the dialog lists them under Tables skipped ({n}): with {n} already deployed and {n} missing primary key.
  5. Click Deploy. The dialog warns that This action cannot be undone.

The button's tooltip changes with the selection:

TooltipWhat it tells you
Select at least one deployable tableSelect a table that can be deployed.
No tables in selectionThe selection holds no tables.
All selected tables are already deployedEvery selected table is deployed already.
Selected tables are missing primary keyA selected table has no primary key.
No deployable tables in selectionNothing in the selection can be deployed.
DeployThe button is active; click it to open the confirmation.

From the right-click menu

Right-click a row and choose Deploy, the menu item described in The Lake tree. It appears on a table that is not deployed and has a primary key, or on a datasource, database or schema that holds such tables. The confirmation is titled Deploy {nodeType}: {name} and reads This will deploy the {nodeType} "{name}" to the Lake. Click Deploy to confirm. To hand-pick items instead, see Batch edit and organise.

What happens after a tree deploy

Note

Deploying builds the table; it does not load its rows. Loads run through the table's workflow, or you start one by hand. See Run, stop and troubleshoot loads.

Fix failed tree deployments

When a deploy fails for some tables, a red badge appears next to Deploy with the number of failures. The count pulses for three seconds when a new failure arrives. Click the badge (its tooltip reads {n} table(s) failed - click to view) to open Failed Deployments:

Retries are per table, so you can fix and redeploy one table without touching the rest. For the message texts and the fixes behind them, see Lake troubleshooting.

Changes that drop and recreate a deployed table

Some changes to a deployed table cannot be applied in place. The table is dropped and recreated, and its existing data is permanently lost. Each of these changes asks for confirmation first:

You changeThe dialogWhat it warns
The sync type to one in another DDL family, except a switch between Full Reload (Truncate Insert), Full Reload (Upsert), Incremental (Upsert) and OnetimeChange DDL Type from {old} to {new}?This will drop and recreate the table. All existing data will be permanently lost.
The Date Column of an incremental tableChange Date Column?The same data-loss warning.
A primary key or partition column's definition: key status, data type or data domainPrimary Key Change DetectedThe dialog warns that the change drops and recreates the table and all existing data will be permanently lost, then asks Do you want to proceed?

A sync type change inside the same DDL family still confirms with Change sync type from {old} to {new}?, without the data-loss warning; the change applies after you confirm. A switch between Full Reload (Truncate Insert), Full Reload (Upsert), Incremental (Upsert) and Onetime confirms the same way and keeps the table and its data: the dialog reads "The table keeps its data. The next run loads it as {new}." In Lake Batch edit, the Sync Type cell can still ask Change DDL Type from {old} to {new}? with the data-loss warning for such a switch; the table keeps its data all the same. A table that is not deployed yet changes sync type with no confirmation. See Choose a sync type for the families, and Configure a table for what a sync type change updates.

Warning

A drop and recreate cannot be undone, and the table holds no data until its next load. Run the table again after the change; see Run, stop and troubleshoot loads.

Permissions

Deploying, from the popup or the tree, needs Create/Edit Lake Objects, like saving the table's settings. Without it, the request is refused. See Who can do what in the Lake.

Questions, answered

How do I deploy a table from its popup?

Open the table, then click Deploy in the banner that reads This table is ready to deploy. When the deploy finishes, the Settings tab and the Lake preview open. The popup builds this table only; to deploy several tables, or everything under a schema, use Deploy in the Lake tree, as described in Deploy several tables from the tree.

Why does the popup ask for a primary key before deploying?

A table cannot be deployed without at least one primary key column. The banner reads Primary key required. Define a primary key column before this table can be deployed. Click Go to Columns, tick PK on the column that identifies each row, and click Apply. See Set up a table's columns.

Why does the Settings tab show Table Not Deployed?

The table has not been deployed yet. The tab opens once it is: Deploy this table to access settings. Deployment creates the table in the lake with your current column configuration. The Lake mode of Preview and Refresh unlock with it.

Which sync type changes drop and recreate a deployed table?

Moving to a sync type in another DDL family, for example from Incremental Reload (Truncate Insert) to Full Reload (Upsert) or to a snapshot type, drops and recreates the table after you confirm Change DDL Type from {old} to {new}?. The dialog warns that all existing data will be permanently lost. A change inside the same family, or a switch between Full Reload (Truncate Insert), Full Reload (Upsert), Incremental (Upsert) and Onetime, confirms without the warning and keeps the data.

Why am I asked to confirm a Date Column change?

The confirmation appears on a deployed table that already has a date column. Changing the Date Column drops and recreates the table, so the popup asks Change Date Column? and warns that all existing data will be permanently lost. After the change, the table loads fresh data on its next run.

Which column edits trigger Primary Key Change Detected?

On a deployed table, the dialog appears when a column's PK or partition status changes, or when a column that is a primary key or partition column changes its data type or data domain. It warns that the definition change drops and recreates the table, and asks whether to proceed; cancel the dialog to keep the table as it is.

My deploy failed. Where can I see why?

The error banner above the form holds the message; click it or View details to read the full error. Redeploy retries this table. If the server gave no reason, the notification reads Failed to deploy table. For the messages and their fixes, see Lake troubleshooting.

A change dropped and recreated my table. How do I get the data back?

The previous data is gone; the table holds nothing until its next load. Run the table again from the Settings tab, or let its workflow run. What the next run reads depends on the sync type. See Run, stop and troubleshoot loads and Choose a sync type.

Why is the Deploy button in the tree greyed out?

The button activates only when the selection holds at least one deployable table. Hover over it to read the reason: No tables in selection, All selected tables are already deployed, Selected tables are missing primary key or No deployable tables in selection.

Why were some tables skipped when I deployed?

The dialog counts the skipped tables by reason: {n} already deployed and {n} missing primary key. Already deployed tables need nothing. To deploy a skipped table that has no key, add a primary key on its Columns step and deploy it again.

Why is there a red number next to Deploy?

It counts the tables from your last tree deploy that failed. Click it to open Failed Deployments, where each table shows its error and offers Redeploy, Edit and Copy error. Redeploy retries only that table; a table leaves the list once it deploys successfully.

Does deploying load the table's data?

No. Deploying builds the table in the Lake; the load happens when the table's workflow runs, or when you start one by hand. See Run, stop and troubleshoot loads.