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

# Cassandra / ScyllaDB

> Connect to Cassandra and ScyllaDB clusters, browse keyspaces, and run CQL queries

Cassandra 3.0 is the floor here, and 2.x will not connect. The driver reads its schema from `system_schema`, which 2.x does not have. ScyllaDB is a separate entry in the database type list but the same driver, over the same CQL native protocol.

## Quick setup

Click **New Connection…**, select **Cassandra** or **ScyllaDB**, enter host, port, and credentials, and connect.

The Cassandra driver is not in the app. Picking Cassandra in the **Choose a Database** sheet offers the
download before the form opens, and opening a saved Cassandra connection installs it without asking.
See [Plugins](https://docs.tablepro.app/features/plugins.md).

## Connection settings

| Field | Default | Notes |
| - | - | - |
| **Host** | `localhost` | CQL contact point |
| **Port** | `9042` | CQL native port |
| **Username** | - | Only if the cluster has an authenticator configured |
| **Password** | - | |

There is no Keyspace field. Pick one in the sidebar after connecting, or put it in the URL path and import that URL. Later switches happen in place, with no reconnect, and the system keyspaces are filtered out of the list. Tabs already open are bound to their own keyspace and do not follow. See [Tabs](https://docs.tablepro.app/features/tabs.md#where-a-tab-points).

## Consistency

Statements in the CQL editor, table browsing and grid saves run at the **Consistency** level on the connection's **Options** tab. **Default** is `LOCAL_ONE`, or `LOCAL_QUORUM` on Amazon Keyspaces. **Serial Consistency** is the level a lightweight transaction (`IF NOT EXISTS`, `IF EXISTS`, `IF` a condition) checks its condition at: `SERIAL` or `LOCAL_SERIAL`. Its **Default** leaves the choice to the server, which uses `SERIAL`.

The result footer names the level each statement ran at, and both levels after a lightweight transaction:

```text theme={null}
Consistency: QUORUM, serial: LOCAL_SERIAL
```

To change the level for the statements that follow, run the cqlsh command in the CQL editor:

```sql theme={null}
CONSISTENCY QUORUM;
SERIAL CONSISTENCY LOCAL_SERIAL;
```

`CONSISTENCY` or `SERIAL CONSISTENCY` alone names the level in use. The server never sees these lines. The new level holds for every tab on the connection until it disconnects, and a reconnect goes back to the **Options** setting. **Count Exactly**, export and import run on a connection of their own, at the **Options** setting. End the command with a semicolon when a statement follows it on the next line.

The schema in the sidebar is read at `LOCAL_ONE` whatever the level, so a level the cluster cannot meet, or `ANY`, which the server refuses for reads, leaves the sidebar working.

## Connection URLs

```text theme={null}
cassandra://user:password@host:9042/keyspace
scylladb://user:password@host:9042/keyspace
```

`cql://` and `scylla://` work too. See [Connection URL Reference](https://docs.tablepro.app/connections/urls.md).

## Amazon Keyspaces

Keyspaces authenticates with SigV4, not a password, so set **Authentication** to an AWS IAM mode and leave Username and Password empty.

**1. Point at the regional endpoint**

Host `cassandra.{region}.amazonaws.com`, port `9142`.

**2. Pick an IAM mode and enter the region**

Access Key, Profile, or SSO. Profiles resolve from `~/.aws/config` and `~/.aws/credentials`, including `credential_process` and assumed roles.

**3. Turn TLS on**

Keyspaces refuses a plaintext connection. See [AWS IAM Authentication](https://docs.tablepro.app/connections/aws-iam.md).

Keyspaces reads at `ONE`, `LOCAL_ONE` and `LOCAL_QUORUM`, and writes only at `LOCAL_QUORUM`. **Default** consistency is `LOCAL_QUORUM` when Authentication is an AWS IAM mode or the host is a Keyspaces endpoint, so writes work without a setting. Pick `LOCAL_ONE` to read cheaper, and every write then fails.

## Browsing and editing

![Cassandra keyspace and tables in the sidebar with table data in the grid](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/cassandra-keyspace-browser.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=8039a311792745dc4c60b2230e00a87a)

Keyspace tables in the sidebar with the data grid

The structure view gives each column's name, CQL type, a primary key flag set for partition key and clustering columns alike, and the table's secondary indexes. Structure editing adds and drops columns; every other schema change goes in the CQL editor. In the grid, map, set, list, and tuple render as collections, a user-defined type as `{field: value}`, a `duration` as `1d2h30m`, a float `vector` as a list of numbers, and blob as hex.

CQL has no `OFFSET`, so a page is reached by reading forward from the first row. **Next** and **Previous** over pages already shown take one read each. Jumping straight to page 200 reads the 199 pages before it first. Rows arrive in token order, and a column header does not sort them: CQL orders rows only by clustering columns inside one partition. A result in the CQL editor sorts the rows it holds.

Neither a table's total nor a filtered total is counted on open. **Count Exactly** runs `SELECT COUNT(*)`, which reads every partition whatever `LIMIT` it carries, so on a large table it can hit the 30 second request timeout.

### Filters

A filter adds `ALLOW FILTERING`, so the server reads every partition to answer it unless the filter pins the whole partition key.

| Operator | Result |
| - | - |
| **equals**, **greater than**, **greater or equal**, **less than**, **less or equal**, **in list**, **between** | Runs on any column |
| **contains**, **starts with**, **ends with** | Sends `LIKE`. ScyllaDB takes it on any column; Cassandra only on a column with a SASI or SAI index |
| **not equals**, **not contains**, **is NULL**, **is not NULL**, **is empty**, **is not empty**, **not in list**, **matches regex** | Refused with a message naming the operator. CQL has no form for them |

The filter bar offers **Match all** only, because CQL has no `OR`, and **Search All Rows** does not appear in the find bar. A raw row goes into the `WHERE` clause as written, joined to the others with `AND`.

### Editing

An edited value is sent as its column's type, so it has to read as one: a number for `int` or `decimal`, a UUID for `uuid`, `0x…` for `blob`. A `timestamp` takes the form the grid shows, the form cqlsh prints, a date alone, or milliseconds since 1970, and one with no zone is read as UTC. A value that does not parse is refused and nothing in the save is written. `list`, `set`, `map`, `tuple`, user-defined types and `duration` cannot be edited in the grid: write an `UPDATE` in the CQL editor.

An edited cell keeps the time to live it had left. Browsing reads each cell's `TTL`, and the save writes `USING TTL` with what remains, or `USING TTL 0` for a cell that never expires in a table with a default TTL. Cells with different TTLs in one row are written in one conditional `BATCH`, and undoing a delete puts each cell back with the TTL it had left.

Each row in a save is written by its own statement, named by its whole primary key, so deleting several rows sends one `DELETE` each. **Add Row** writes `INSERT … IF NOT EXISTS`: a new row whose key is already taken is refused rather than written over the row that holds it. A primary key column cannot be edited in place. Delete the row and add it again with the new key.

Results in the CQL editor are read-only. Open the table from the sidebar to edit its rows.

## SSL/TLS

The default is **Disabled**, and there is no opportunistic TLS here, so **Preferred** behaves exactly like **Required**.

| Mode | Verifies |
| - | - |
| **Preferred**, **Required** | Nothing. Encryption only |
| **Verify CA** | The chain, against the PEM file you supply |
| **Verify Identity** | The chain and the hostname |

Both verifying modes need a **CA Certificate** path, and refuse to connect without one rather than falling back to the system roots. For mutual TLS set the client certificate and key paths, with the key's passphrase in **Key Passphrase**. See [SSL/TLS](https://docs.tablepro.app/connections/ssl.md).

## Limitations

* A page far into a large table is slow, because every row before it is read first. Filter the table down, or query it in the CQL editor with a `WHERE` on the partition key.
* Counter columns cannot be set with a plain `UPDATE`. The grid will edit one and the server rejects the statement it generates. Use `UPDATE … SET c = c + 1` in the CQL editor.
* Materialized views do not appear in the sidebar. Query `system_schema.views` in the CQL editor to see them. UDFs and UDAs are listed under Functions; see [Procedures, functions, and triggers](https://docs.tablepro.app/features/routines-triggers.md). User-defined types are listed under Types; see [User-Defined Types](https://docs.tablepro.app/features/user-defined-types.md).
* The DDL tab reconstructs `CREATE TABLE` from the column list, so table options (compaction, compression, `gc_grace_seconds`), clustering order, and the split between partition and clustering key are all missing from it. Read the real definition with `DESCRIBE TABLE` in `cqlsh`.
* DataStax Astra DB does not connect. The Secure Connect Bundle it requires cannot be loaded, and there is no way around it.
* The connect timeout comes from the connection's **Options** section. The CQL request timeout
  remains fixed at 30 seconds; neither a per-connection query override, the app-wide query timeout,
  nor a multi-DC policy reaches this driver.

## Troubleshooting

**Connection refused**: Check Cassandra is running with `nodetool status`, that port 9042 matches `cassandra.yaml`, and that `rpc_address` and `listen_address` are reachable from your Mac.

**Authentication fails**: Verify the credentials and check `authenticator: PasswordAuthenticator` in `cassandra.yaml`. The default superuser is `cassandra` / `cassandra`.

**Read timeout**: Put the full partition key in the `WHERE` clause, add a `LIMIT`, and check cluster health with `nodetool`.


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