add_column
Add a new typed column to an existing dataset and backfill existing rows with the column's default value (or null). Use this to start tracking new attributes in your data.
Instructions
Add a new typed column to an existing dataset.
Existing rows are backfilled with the column's default value, or null when no default is set. Use this when the user wants to start tracking something new in an existing dataset ("also note each candidate's expected salary").
Args: dataset: Exact dataset name, e.g. "Candidates". column: The new column definition (same shape as in create_dataset).
Returns: {"ok": true, "dataset", "column", "type", "backfilled_rows": } on success, {"ok": false, "error": ""} when the column already exists or the definition is invalid (e.g. enum without options).
Example: add_column(dataset="Candidates", column={"name": "expected_salary", "type": "float", "min_value": 0})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| dataset | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||