cql3 Questions

1

Is there any way to select TTL value for an element in a map in Cassandra with CQL3? I've tried this, but it doesn't work: SELECT TTL (mapname['element']) FROM columnfamily
Selena asked 11/6, 2013 at 7:7

1

using CF: CREATE TABLE history ( domain text, iid text, timeid timeuuid, data text, comments text, PRIMARY KEY (domain, iid, timeid) ); I'd like to query it like this: select domain, iid,...
Siesta asked 8/11, 2012 at 8:46

1

Solved

I have a table/column family which I am inserting rows that expire after a certain amount of time. Is it possible to then query the table to check which rows are going to expire soon (for diagnosti...
Cacophonous asked 28/9, 2013 at 12:58

1

I have a requirement of versioning to be done using cassandra. Following is my column family definition create table file_details(id text primary key, fname text, version int, mimetype text); I ...
Molest asked 2/9, 2013 at 14:32

4

Solved

I want to insert a single row with 50,000 columns into Cassandra 1.2.8. Before inserting, I have all the data for the entire row ready to go (in memory): +---------+------+------+------+------+---...
Phenacaine asked 29/8, 2013 at 22:50

1

Solved

I need to fetch rows without specific keys. for sample: select * from users where user_id not in ("mikko"); I have tried with "not in" and this is the response: Bad Request: line 1:35 no viabl...
Finnic asked 28/8, 2013 at 21:22

1

Solved

I am using Cassandra 1.2.5. After creating a column family in Cassandra using cassandra-cli, is it possible to modify the primary key on the column family using either cassandra-cli or CQL? Speci...
Werner asked 24/8, 2013 at 18:16

2

Solved

I want to store my website images in cassandra database! I must read and store bytes of image. Do you have a nice code for me? I'm using python2.7, django framework and cql-engine! This is my code...
Procathedral asked 17/7, 2013 at 20:48

1

Solved

I have a requirement of designing Data Model in cassandra for User, Role, Organization and permissions. Each Organization can have Users and Roles Each User can belong to number of Roles Each R...
Tooley asked 10/8, 2013 at 3:44

1

Solved

I'm trying to rename table created via CQLSH. E.g. rename table "AAA" to "BBB". Can't find any command to do so. Any ideas? Using [cqlsh 3.1.6 | Cassandra 1.2.8 | CQL spec 3.0.0 | Thrift protocol...
Delao asked 7/8, 2013 at 19:41

1

Solved

I want to query data filtering by composite keys other than Row Key in CQL3. These are my queries: CREATE TABLE grades (id int, date timestamp, subject text, status text, PRIMARY KEY (id, sub...
Transcalent asked 18/7, 2013 at 23:41

2

Solved

How to rename keyspace and columnfamily in cassandra 1.2? I know that cassandra-cli rename api is no longer supported - How to rename keyspace in Cassandra. Maybe there are some api in CQL3? Or som...
Beachcomber asked 2/4, 2013 at 8:43

1

Solved

I have started working with Cassandra database. I am planning to use Datastax API to upsert/read into/from Cassandra database. I am totally new to this Datastax API (which uses new Binary protocol)...
Jalisajalisco asked 19/4, 2013 at 2:23

3

Solved

Initially I started learning Cassandra because dynamic columns caught my attention. As I started learning more, I learnt that composite primary keys are preferred to dynamic columns and Cassandra i...
Albumenize asked 14/3, 2013 at 8:23

© 2022 - 2024 — McMap. All rights reserved.