docs/cql: fix CREATE TABLE example with hyphenated column names

Column names containing hyphens must be double-quoted. Also fix
the PRIMARY KEY reference from 'customer_id' (non-existent) to
'cust_id' (the actual column).
This commit is contained in:
Yaniv Michael Kaul
2026-05-06 10:54:20 +03:00
parent 3e2b0f844c
commit 5c528e4e02

View File

@@ -1017,11 +1017,11 @@ For example:
CREATE TABLE customer_data (
cust_id uuid,
cust_first-name text,
cust_last-name text,
"cust_first-name" text,
"cust_last-name" text,
cust_phone text,
cust_get-sms text,
PRIMARY KEY (customer_id)
"cust_get-sms" text,
PRIMARY KEY (cust_id)
) WITH cdc = { 'enabled' : 'true', 'preimage' : 'true' };
.. _cql-caching-options: