Set up a table's columns

The Columns step decides which columns a Lake table keeps, what each one stores, and how it loads. Open it whenever a column needs a type, a key, a statement, a description or a permission change.

Open the Columns step

  1. Open the table in the Lake tree: double-click it, or right-click it and choose Edit. See Configure a table for the popup's other tabs and steps.
  2. On the Table tab, open Columns in the stepper.
  3. Make your changes and click Apply. Revert discards them.

Reading the step needs View Lake Objects; saving needs Add/Modify Lake Objects. See Who can do what in the Lake.

What the grid shows

ColumnWhat it holds
NameThe column name, as the source reports it. Read-only.
Data DomainThe business type of the column, such as Amount or Email.
Data TypeThe storage type behind the domain.
PII DomainThe kind of personal data the column holds.
PKMarks the column as part of the table's primary key. The tooltip reads Primary Key.
SYWhether the column is synchronised with each load.
MIWhether the column is created in the Lake.
Permission GroupThe permission groups that can read the column.
StatementA SQL expression applied to the column during each load.
Source TypeThe type the source reports. Read-only.

Some rows come from the source locked. They show a lock icon, and hovering it reads "This column is locked and cannot be edited." Locked rows cannot be edited at all, including their PII Domain. Name and Source Type are read-only in every row, because they mirror source metadata. A table that reports no columns shows the empty message "No columns defined."

Set a primary key

Tick PK on the column or columns that identify each row. A table needs at least one primary key column before it can be deployed, so set this up before your first deploy.

Control what loads and what is created

Change the data domain and type

Write a statement

  1. Click the Statement cell of a column. The editor opens with the title Statement for {column name}.
  2. Write the expression, then click Save. Column and function suggestions appear on Ctrl+Space. Clear empties the expression, and Cancel closes without saving.

The hint under the title reads "Enter a SQL expression for this column. Use Ctrl+Space for column and function suggestions." Expand Column expression · e.g. CAST(amount AS Decimal(18, 2)) for the reminder: "SQL expression applied to compute or transform this column during synchronization."

Add a description

  1. Hover the Name cell and click the message icon. The Column description popover opens.
  2. Write the description (the placeholder reads "Add description for this column..."), then click Save. Clear removes it.

Set column permissions

In the Permission Group cell, choose the groups that can read the column. The groups come from the table's General step.

Use the AI helpers

The toolbar above the grid offers two helpers. Each opens a prompt box, and its results land in the grid as unsaved changes; review them and click Apply.

If a helper fails, nothing changes and the toast reads "Failed to generate column comments" or "Failed to suggest primary key".

Reorder columns

Drag a column row to move it in the grid. Locked columns cannot be dragged, so they keep their place. The new order is saved when you click Apply.

Save the step and fix errors

Apply saves the step; Revert discards the changes. When you save, the grid checks:

A failed check shows the Validation Error toast with the message (or "Please check the columns configuration."). A successful save reads "Columns saved successfully"; when the save fails for another reason, the toast shows the server's message, or "Failed to save columns". In the rare case that the table has no saved id, the save stops with "Table ID is required for saving columns."

A type change that would turn stored values into NULL is refused with the Type change refused toast. It names the column, the number of values that cannot be converted and an example, and it stays on screen for about 15 seconds. Nothing is saved. To make the change, truncate the table and reload it afterwards; see Run, stop and troubleshoot loads.

Questions, answered

Why can't I edit a column's Data Type?

Data Type is editable only while the column's Data Domain is Custom. Point at the locked cell to read "Only custom data domain's data type can be edited." To set your own type, choose Custom first. On a locked row, no cell can be edited.

Why can't I untick SY or MI on a column?

A primary key or partition column always keeps both ticked, and their boxes are locked. The tooltip reads "Sync and migrated must be enabled for primary key or partition columns." On other rows you can change them.

Does ticking MI also tick SY?

Yes. MI writes both boxes: ticking it also ticks SY, and clearing it also clears SY. SY is looser: ticking SY also ticks MI, while clearing SY leaves MI as it is.

What does a column's Statement do?

It is a SQL expression applied to compute or transform the column during each load, such as concat("first_name", ' ', "last_name"). Click the Statement cell to edit it, and use Ctrl+Space for column and function suggestions.

Why does a column's Source Type turn amber?

Sync Schema found that the source now maps the column to a different type, while the Lake table keeps the type it has. Hover the amber cell to read "Source now maps to {new type}; the Lake column is {current type}". See Run, stop and troubleshoot loads for Sync Schema.

Why was my column type change refused?

The change would turn existing stored values into NULL, so the platform refuses it and nothing is saved. The Type change refused message names the column, how many values cannot be converted and an example. To apply the change, truncate the table and reload it afterwards; see Run, stop and troubleshoot loads.

Which columns can I reorder?

Any column that is open for editing. Locked columns cannot be dragged. The new order is saved when you click Apply.

Where do the column permission groups come from?

From the table's General step, in Permission Groups. The admin group always has full access and is not added per column. With no groups on the table, the cell reads "No permission groups added to table" and offers Add in General. You can select up to 100 groups per column.

Can I describe a locked column?

No. On a locked row the description control is hidden, so the description cannot be opened or changed.

Which columns do the AI helpers change?

The comments helper writes only to columns that do not have a description yet, and it is disabled when all columns have one. The primary key helper is available until a key is defined. Both write unsaved changes into the grid, so review them and click Apply.