Go driver for Apache Cassandra®

This page describes compatibility between the Apache Cassandra GoCQL driver and DSE, HCD, Astra DB, and open-source Cassandra.

The Apache Software Foundation maintains the Cassandra GoCQL driver (gocql) Latest gocql release on GitHub.

GoCQL compatibility

GoCQL is compatible with Astra DB, DSE, HCD, and open-source Cassandra.

For information about specific versions of Go and Apache Cassandra supported by GoCQL, see Supported Versions in the GoCQL documentation.

GoCQL 2.x

GoCQL version 2.0 introduced breaking changes and new features, including support for the Apache Cassandra 5.x built-in vector type. Earlier versions of GoCQL don’t support the vector type.

To upgrade from GoCQL 1.x to 2.x, see the GoCQL upgrade guide.

The gocql-astra package isn’t compatible with GoCQL 2.0. For more information, see Connect GoCQL.

GoCQL 1.x

If you are using GoCQL 1.x, see the GoCQL 1.x documentation for usage and compatibility information.

To upgrade from GoCQL 1.x to 2.x, see the GoCQL upgrade guide.

Connect GoCQL

  • Cassandra

  • DSE

  • HCD

  • Astra DB

See Connecting to the cluster in the GoCQL documentation.

See Connecting to the cluster in the GoCQL documentation.

See Connecting to the cluster in the GoCQL documentation.

For Astra DB connections, DataStax provides gocql-astra. This package includes gocql and additional support for connections to Astra DB.

gocql-astra doesn’t support gocql 2.x. This means gocql 2.x features, such as the vector type, aren’t available to gocql-astra.

Until gocql-astra version 2.0 is released, gocql-astra requires gocql 1.x. Manually modifying the gocql dependency in gocql-astra can cause errors. For more information, see the GitHub issue for gocql 2.x support in gocql-astra.

To get started with gocql-astra, see Connect to Astra DB with the Go driver.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | 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