From 5c528e4e02fb49a31a2ed55d14da3084e4b7646e Mon Sep 17 00:00:00 2001 From: Yaniv Michael Kaul Date: Wed, 6 May 2026 10:54:20 +0300 Subject: [PATCH] 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). --- docs/cql/ddl.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cql/ddl.rst b/docs/cql/ddl.rst index 684be564c5..db986f37c7 100644 --- a/docs/cql/ddl.rst +++ b/docs/cql/ddl.rst @@ -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: