Using CQL in DataStax Studio

The notebook tutorial Working with CQL is installed with Studio. The tutorial provides hands-on steps to create and interact with data in a DSE cluster by writing and executing CQL code in a notebook. This interactive notebook provides steps to use CQL in DataStax Studio to:

  • select CQL as the language to enable intelligent editor features.

  • view the CQL schema.

  • use CQL templates and schema-aware content assist to help you form valid CQL statements:

    • Propose valid CQL keywords.

    • Propose valid table names anywhere a table can be referenced in a CQL statement.

    • Propose column names anywhere a table can be referenced.

  • identify errors with DSE domain-specific validations when CQL statements violate a constraint.

  • view results in table view or different styles of charts.

  • view results as grid (table) to download results in CSV format.

  • view results as JSON (jsonWidget) to download JSON.

You can use the keyspace menu to select the keyspace or specify the CQL USE statement. The following rules apply to USE statements in Studio.

  • USE statements apply only to the current cell.

  • A USE statement overrides the default keyspace setting for all statements that follow the USE statement within that cell.

  • The keyspace selected in the keyspace drop down menu applies only to the current cell.

  • The selected keyspace is copied to new cells created below an existing CQL cell.

  • If a default keyspace is not selected, and there are no USE statements in the cell, all statements must be fully qualified to include the desired keyspace.

See the DataStax blog post Studio Multi-Model CQL Support.

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