table-race-starts

INSERT INTO cycling.race_starts (cyclist_name, rnumbers) VALUES ('John DEGENKOLB', [39, 7, 14]);
CREATE INDEX IF NOT EXISTS rnumbers_idx ON cycling.race_starts ( FULL(rnumbers) );
CREATE CUSTOM INDEX IF NOT EXISTS rnumbers_idx ON cycling.race_starts ( FULL(rnumbers) )
USING 'StorageAttachedIndex';
DESCRIBE INDEX cycling.rnumbers_idx;
DESCRIBE INDEX cycling.rnumbers_idx;
DROP INDEX IF EXISTS cycling.rnumbers_idx;
SELECT * FROM cycling.race_starts WHERE rnumbers = [39, 7, 14];
SELECT * FROM cycling.race_starts WHERE rnumbers = [39, 7, 14];
CREATE TABLE IF NOT EXISTS cycling.race_starts (
  cyclist_name text PRIMARY KEY,
  rnumbers FROZEN<LIST<int>>
);
DESCRIBE TABLE cycling.race_starts;
DROP TABLE IF EXISTS cycling.race_starts;

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