Dataset
Apache Cassandra table datasets for AI training
An Apache Cassandra dataset is an export of chosen keyspaces from a business's Cassandra cluster: the tables its application wrote, row by row inside their partitions, with the CQL schema that names every partition key, clustering column, collection and user-defined type. Typical tables hold messages, activity feeds, time series, device readings and user state. SourceX sources it to a buyer's spec from established businesses that run Cassandra in production, read out through a bulk tool into open files. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Rows of chosen keyspaces' tables with the CQL schema, primary key definitions and, on request, per-column write times and TTLs
- Typical systems
- Apache Cassandra clusters and distributions built on it such as DataStax Enterprise; base tables as data, materialized views and secondary indexes as schema
- Typical history
- Varies by table; TTLs and deletes decide what survives, so ask for the oldest live row per table
- Modality
- Wide-column rows with typed columns, collections and user-defined types; text columns can hold message bodies or serialized JSON
- Delivery formats
- Parquet or JSONL per table with partition and clustering keys kept, the keyspace schema as CQL and row counts per table
- Preparation
- User and device identifiers replaced with the same pseudonym in every table; message and free-text columns screened; system keyspaces left out
- Licensing
- Scoped per keyspace, table and date range; permitted use agreed per license; end users' terms checked by the owner and the buyer
- Availability
- Sourced to your spec; history depends on each table's TTL and delete pattern, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| keyspace_name | string | The keyspace the table belongs to, as listed in system_schema.keyspaces, with its replication settings in the schema file. |
| table_name | string | The table inside the keyspace, usually named for the query it serves, such as messages_by_conversation. |
| table_role | enum | Whether the owner treats this table as the record for its entity, an application-maintained query copy or a materialized view. |
| partition_key | object | Values of the table's partition key columns, pseudonymized, which decide which rows are stored and read together. |
| clustering_key | object | Values of the clustering columns that order rows inside the partition, often a timeuuid or a timestamp. |
| partition_token | string | The partition's ring position from the CQL token function, kept as a string, used to check a scan for gaps. |
| static_columns | object | Static columns, stored once per partition and shared by every row in it, such as a conversation's member count. |
| columns | object | The row's regular columns with their CQL types; null means never written or deleted, which Cassandra does not tell apart on read. |
| collections | object | List, set and map columns and user-defined type values, frozen or not, delivered as nested JSON. |
| write_time | object | Per-column write timestamps from the WRITETIME function, microseconds since the epoch unless the client supplied its own; not available for primary key columns. |
| ttl_remaining | object | Seconds left before a column expires, from the TTL function at the time of the scan; null where no TTL applies. |
| schema_ref | string | Pointer to the table's CREATE TABLE statement in the delivered CQL, with clustering order, default_time_to_live and gc_grace_seconds. |
| export_meta | object | The unload tool, the consistency level of the read and when the token-range scan ran, from the export log. |
Field names from the table above; values are masked placeholders.
Example record
{
"keyspace_name": "chat_prod",
"table_name": "messages_by_conversation",
"table_role": "record_table",
"partition_key": {
"conversation_id": "cnv_7f3a91c2",
"month_bucket": "2024-06"
},
"clustering_key": {
"message_id": "02212340-2739-11ef-9a41-3f6d2b7c8e55"
},
"partition_token": "-4069959284402364209",
"static_columns": {
"conversation_title": "[TITLE_REMOVED]",
"member_count": 3
},
"columns": {
"sender_id": "usr_41d0",
"body": "Can you resend the invoice for order [ORDER_ID]? The PDF link expired.",
"message_type": "text",
"edited_at": null,
"client_platform": "ios"
},
"collections": {
"reactions": {
"usr_9b2e": "thumbs_up"
},
"attachments": [
{
"kind": "pdf",
"size_bytes": 48211,
"storage_key": "att_0c77"
}
],
"mentions": []
},
"write_time": {
"body": 1718031127412000,
"message_type": 1718031127412000
},
"ttl_remaining": {
"body": 25533481
},
"schema_ref": "schema/chat_prod.cql#messages_by_conversation",
"export_meta": {
"tool": "dsbulk unload",
"consistency_level": "LOCAL_QUORUM",
"scanned_at": "2024-08-19T02:14:07Z"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Model conversations and activity feeds in order
Message and activity tables give long, ordered partitions of real exchanges for dialogue, summarization and ranking work.
Forecast from time series and device readings
Partitions of readings keyed by device and day supply dense series with real gaps and late writes.
Teach agents query-first data modeling
A CQL schema beside populated tables shows how partition keys and clustering order were chosen for real queries.
Reconcile denormalized copies
The same facts stored under several keys make training pairs and tests for matching, deduplication and conflict detection.
Evaluate migration and data engineering agents
Moving a keyspace to a relational or columnar store has checkable answers when row counts per table are known.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Schema delivered as CQL
DESCRIBE output with primary keys, clustering order and table options lets you rebuild every table exactly.
A named record table
The owner states which table is the record for each entity and which tables are query copies.
Write times included
WRITETIME values date each column even where the table has no timestamp column of its own.
Documented TTL and delete policy
Table defaults and per-write TTLs are stated, so missing history is explained.
Quorum read after repair
A quorum scan of a recently repaired cluster is less likely to miss rows or return deleted ones.
Partition size profile
Row counts per partition show skew and very large partitions before any training run.
Document stack
Apache Cassandra dataset
One table per query means several copies of each fact
Cassandra has no joins and no foreign keys, and an efficient query has to name the partition key. Teams therefore design tables backward from the application's queries. A chat product ends up with messages_by_conversation, messages_by_user and conversations_by_user, each holding the same messages, or a few of their columns, under a different primary key. The application writes every copy itself, in a logged batch or one statement after another, or it declares a materialized view and lets the cluster maintain the copy.
The copies disagree at the edges. A write that reached one table and failed on the next leaves a row with no twin, and an edit applied to the conversation table may never have reached the per-user table. The project's own configuration file lists materialized views as experimental, off by default and not recommended for production use, and a view can fall out of step with its base table. So a buyer has to ask which table is the record for each entity, then drop the others or keep them, labeled, as a test of reconciliation. Counting rows across every table counts each message several times.
History works differently too. INSERT and UPDATE are both upserts that do not read first, and the newest timestamp wins column by column. The earlier value is not kept, so a table shows change over time only where the application modeled each event as its own clustering row. Every regular column does carry its own write timestamp, returned by the CQL WRITETIME function, so a table with no updated_at column still says when each value was last written. And because conflicts resolve per column, one row can hold columns from two different writes, a state no client ever sent.
A snapshot is node files, so an export is a scan
Cassandra has no command that dumps a whole keyspace as one consistent logical file. The nodetool snapshot command hard-links the SSTable files on the node where it runs. Each node holds only its own token ranges, every row sits on as many nodes as the replication factor says, and a row's columns can be spread over several SSTables that merge only when read or compacted. Snapshots are therefore replicated, unmerged and in a binary format tied to the Cassandra version. They can also still contain deleted rows under their tombstones, which matters when an end user asked for erasure.
A usable delivery is a read through the cluster: DataStax Bulk Loader's unload command to CSV or JSON, Spark with the Cassandra connector to Parquet, or cqlsh COPY TO for small tables. Each walks the token ring range by range and returns live rows as merged at the consistency level of the read. Write times and TTLs come back only when the export query selects them with the WRITETIME and TTL functions. CSV turns collections and user-defined types into strings. The scan is not a point in time, since writes keep landing while it runs, and a read at consistency ONE on an unrepaired cluster can miss rows or return deleted ones.
What was deleted or expired is gone. A delete writes a tombstone, a cell whose TTL ran out becomes one, and once the table's gc_grace_seconds has passed, compaction discards the tombstone and the data under it. To test a sample, select WRITETIME for a few columns and compare the oldest value per table with the history claimed. Look up the same entities in two tables that should agree, count partitions per token range to find gaps, and check that a long conversation or series is complete across its day or month buckets.
What to check before licensing
- Have the data owner and your counsel check the license and terms that apply to the Cassandra distribution or managed service in use, on exported data and API use.
- Confirm that the terms and privacy notice shown to the end users of the application that wrote each table allow those records to be licensed.
- Check de-identification of user identifiers wherever they occur: partition keys, clustering columns, map keys, user-defined type fields and text columns holding message bodies or JSON.
- Ask which table is the record for each entity and which are query copies or materialized views, then compare the same entities across two of them on the sample.
- Ask for each table's default_time_to_live, whether the application writes with USING TTL and how it issues deletes, then compare the oldest write time in the sample with the history claimed.
- Ask which tool ran the export, at what consistency level and when repair last completed, since rows a replica missed can be absent and deleted rows can reappear.
- If any part comes from snapshot SSTables, confirm replicas were merged, tombstoned rows were dropped and end users' deletion requests hold in the output.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Does a Cassandra dataset include the history of changes to a row?
Only where the application stored each change as its own row. Cassandra overwrites a column when a newer write arrives and keeps no earlier value. Event-style tables, with one clustering row per message, reading or status change, do carry history. Change data capture is off by default, is enabled per node and per table, and must have been switched on beforehand.
Why not license a snapshot or backup of the cluster?
Because a snapshot is each node's SSTable files, not a copy of the tables. The files are replicated across nodes, unmerged, tied to the Cassandra version and can still contain deleted rows under tombstones. A read through a bulk tool returns each live row once, in open formats, and can be de-identified column by column.
How do I get one record per entity when several tables hold the same data?
Ask the owner to name the record table for each entity and scope the delivery to it. Query copies and materialized views repeat the same rows under other keys and can lag or miss writes. If you want them for reconciliation work, ask for them labeled by role, with shared identifiers pseudonymized the same way in every table.
How much history can I expect from a Cassandra table?
It depends on the table's TTL and delete behavior more than on how long the cluster has run. Feed, session and reading tables often expire rows by design, and expired or deleted rows are removed for good after compaction. Ask for each table's TTL settings and the oldest write time in the sample before agreeing a date range.
How are collections, timeuuids and user-defined types delivered?
As nested values, if you specify JSONL or Parquet with the CQL schema alongside so every type is known. Lists, sets and maps become arrays and objects, user-defined types become nested objects, and a timeuuid is best kept as text because it encodes both order and time. Avoid CSV, where dsbulk and cqlsh write collections and user-defined types as strings.
Is SourceX affiliated with the Apache Software Foundation?
Apache Cassandra is named to identify the system the records come from. That does not imply a partnership with or endorsement by the Apache Software Foundation. The records belong to the business that runs Apache Cassandra, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Relational business database exports
Populated relational databases from business applications, with schema, keys, constraints, code tables and a data dictionary
- Database schemas, migrations and stored procedures
Production schema definitions with the migration chain, procedural code and the review and rollback record
- MongoDB document collections
Chosen collections from one MongoDB deployment as BSON documents, with index definitions, validation rules, view definitions and GridFS files
- Amazon DynamoDB tables
Chosen DynamoDB tables exported as items, with each table's key schema, secondary index definitions and the application's access pattern documentation
- ClickHouse event tables
Rows of chosen tables and materialized view targets with their CREATE statements, engines, part metadata and, optionally, the query log
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.