String types

text

Use the text type for UTF-8 encoded strings.

ascii

Use the ascii type for strings of US-ASCII characters.

varchar (partial support)

The varchar type is an alias for text and is used for UTF-8 encoded strings.

The Data API can’t create columns of varchar type. You must use CQL directly instead of the Data API. Alternatively, consider using the text type.

The Data API can only read, write, update, and delete values in existing varchar columns.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2025 | Privacy policy | Terms of use Manage Privacy Choices

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: Contact IBM