{
  "id": "cassandra-partition-keys-table",
  "kind": "table",
  "slug": "cassandra-partition-keys",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/cassandra-partition-keys/",
  "title": "A Cassandra primary key starts with the partition key that places the row",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "PRIMARY KEY (pk, t)",
      "source": "Apache Cassandra",
      "detail": "pk is the partition key and t is clustering"
    },
    {
      "name": "static",
      "source": "Apache Cassandra",
      "detail": "a column shared by every row in the same partition"
    },
    {
      "name": "CREATE TABLE t",
      "source": "Apache Cassandra",
      "detail": "example table in the documentation"
    },
    {
      "name": "s",
      "source": "Apache Cassandra",
      "detail": "the static column whose value is the same for both rows in the partition"
    }
  ],
  "related_slugs": [
    "postgres-partitioning",
    "postgres-indexes-basics",
    "cassandra-consistency-levels"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (Apache Cassandra); Apache-2.0 (Apache Cassandra); prose restates cited source lines in own words",
  "as_of": "2026-11-20",
  "status": "deep-draft-20261120",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}