Edit a table's columns

The Columns step of a Warehouse table popup lists the table's columns as editable rows. Use it to add or remove columns and to change the name, the data domain and type, the description and the order of each one.

Work in the grid

The grid carries more cells than this page covers: a column's foreign key, its computed script, its PII domain and its permission groups. Each has its own page: Foreign keys on columns, Computed columns, PII domains and source columns and Column permission groups.

Add a column

  1. Open the table and go to its Columns step.
  2. Click Add new column. A new row appears, named New Column with the next free number. It starts with the Text data domain and the String data type.
  3. Give it a name, choose its domain and type, and describe it if you like.
  4. Click Apply in the footer to save it.

Name a column

Set the data domain and type

For the domains, the types behind them and their suggested default values, see Column data domains, defaults and PII.

Describe a column

System columns stay locked

The platform keeps its own columns in the grid: the primary key, source reference, partition, audit and history fields. Their rows stay locked and cannot be renamed; a locked name explains itself with System columns cannot be renamed. or This field cannot be edited.

For every lock in the grid and the checks a save runs, see The table columns grid.

Delete columns

  1. Select the rows with their checkboxes and click Delete selected columns.
  2. A row you have just added disappears at once; a saved column is marked and removed when you save the step.

A column that cannot be deleted is named in the message Some columns cannot be deleted, with its reason: (system column) for the platform's own columns or (used in transformation) for a column a transformation reads. With nothing selected, the delete reports No Selection and Please select columns to delete.

Default values

Save the step

Questions, answered

Why did the name I clicked clear itself?

The placeholder name clears itself when you click, so you can type the real one straight away; the full rule is on Define table columns.

Why does a column name show a red warning?

The name repeats another column's name (capital letters aside) or matches one of the platform's reserved names. The mark beside it says which: Column name must be unique or This is a system reserved name. Rename the column to clear it.

Why did I only get the dot warning when I pressed Enter?

The warning fires at that one moment by design: it warns when a dot is new and you commit the name with Enter, not when you click away. A save that includes a dotted name repeats the caution on its own. A dot is allowed, but SQL reads it as a table.column qualifier.

Where do I add a description to a column?

Click the comment icon beside the column's name. It appears when you hover the row and stays lit when a description exists. Type the text and click Save; Clear removes it. The platform's own columns carry no comment icon.

Why can't I change a column the platform added?

System columns stay locked, so you cannot rename them or change their settings; the full rule is on Define table columns.

What happens to a column when I delete it?

A row you have just added disappears at once. A saved column is marked and removed when you save the step, so Revert can still bring it back before then. A column the platform owns, or one a transformation reads, cannot be deleted: the message lists it as (system column) or (used in transformation).

Are my column edits saved as I type them?

No. Every edit waits on the step and saves together when you click Apply; the full saving flow is on Define table columns.

What does Default value auto-quoted mean?

You typed a text default value without quotes, so it was wrapped in single quotes to be stored correctly, and the toast showed the change. Quote text values yourself, for example 'N/A'; numbers and dates take raw values.

Why can't I see the history columns?

The table does not keep history, so its history columns stay out of the grid. They appear only for a table that stores history: Store History is on the General step.