> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Insert Rows

> Insert rows into an existing Databricks table without writing SQL: pass the table and a list of row objects keyed by column name

Insert rows into an existing Databricks table without writing SQL: pass the table and a list of row objects keyed by column name. Values are sent as parameters and cast to the column types by Databricks. Large lists are split across several INSERT statements that each commit on their own. Needs MODIFY on the table.

| | |
| - | - |
| **App** | Databricks |
| **Operation ID** | `databricks_insert_rows` |
| **Type** | Action |
| **Connection** | `databricks` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `table` | string | Yes | - | Table to insert into, as catalog.schema.table (for example main.marketing.ad\_spend). The table must already exist. |
| `rows` | array of object or string | Yes | - | Rows to insert: a list of objects whose keys are column names. A column missing from a row is inserted as NULL. Values are sent as parameters and cast by Databricks to each column's type, so dates go as YYYY-MM-DD and timestamps as ISO 8601. Example: \[\{"day": "2026-01-31", "campaign": "Brand", "spend": 120.5}] |
| `warehouse_id` | string | No | - | SQL warehouse to run on (id from databricks\_list\_warehouses). Default: the first warehouse this connection can use, preferring one that is running. |

## Output

**Type**: `Dict`

Returns table, inserted\_rows (rows Databricks reports as inserted), columns (the column names used) and statements (how many INSERT statements ran).

**Fields**: `table`, `inserted_rows`, `columns`, `statements`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.