Valid characters in names

Only alpha-numeric characters and underscores are allowed in keyspace and table names. Keyspace and table names must begin with an alphabetic charcter. All other element names, such as columns or types support any characters.

To specify a name that contains a special character, like period (.) or hyphen (-), enclose the name in double quotes.

What Works and What Doesn’t
Creations that Work Creations that Don’t Work

CREATE TABLE foo …​

CREATE TABLE foo!$% …​

CREATE TABLE foo_bar …​

CREATE TABLE foo[]"90 …​

CREATE TABLE foo ("what#*&" text, …​)

CREATE TABLE foo (what#*& text, …​)

ALTER TABLE foo5 …​

ALTER TABLE "foo5$$"…​

CREATE FUNCTION "foo5$$$^%" …​

CREATE FUNCTION foo5$$…​

CREATE AGGREGATE "foo5!@#" …​

CREATE AGGREGATE foo5$$

CREATE TYPE foo5 ("bar#9" text, …​

CREATE TYPE foo5 (bar#9 text …​

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com