Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D39AF0C9 for ; Sat, 13 Apr 2013 06:06:09 +0000 (UTC) Received: (qmail 96825 invoked by uid 500); 13 Apr 2013 06:06:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 96699 invoked by uid 500); 13 Apr 2013 06:06:06 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 96671 invoked by uid 99); 13 Apr 2013 06:06:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Apr 2013 06:06:05 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FILL_THIS_FORM_SHORT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gareth.o.collins@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Apr 2013 06:05:58 +0000 Received: by mail-lb0-f180.google.com with SMTP id t11so3219781lbi.39 for ; Fri, 12 Apr 2013 23:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=TdoZBVRtQd/1lKlHRjsqbFdWzKqjznSoCOskTaqqTT8=; b=id0YCgYyaiU/7RA9paBm/IYPAZU8BwNyh0asH5eh6CAoHDZmOKEewqUWGqJjStHE2B LVhkYS7kvhIx5rusfdfRZgzuVRFJXy3ElSQ53HfQX+1gvFniX8zJHASJ2RVC2XEwk7G9 fZ29cl4poKhuOJhUU7CUif+yk4ioBWbSBaEcbEQOqK/9LyqZPyLqVfGtMYWLJv9/4wtK OLU130Ne6KhIk/wOEfIZ3PucFDwI8b3ie8EF63/e5Xyoqnk4H3PlY4sF691BUjZ2O4Wr MYgbVRV6YbMsb47T1jIdlAVxljR30cfTzxfgx8Lx5yvjmxrglo4/1v0hPBF4WkZB2Kvr 0tiA== MIME-Version: 1.0 X-Received: by 10.112.130.97 with SMTP id od1mr1974998lbb.3.1365833137389; Fri, 12 Apr 2013 23:05:37 -0700 (PDT) Received: by 10.112.32.100 with HTTP; Fri, 12 Apr 2013 23:05:37 -0700 (PDT) Date: Sat, 13 Apr 2013 02:05:37 -0400 Message-ID: Subject: Anyway To Query Just The Partition Key? From: Gareth Collins To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b343436fa068604da37ceb6 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b343436fa068604da37ceb6 Content-Type: text/plain; charset=ISO-8859-1 Hello, If I have a cql3 table like this (I don't have a table with this data - this is just for example): create table ( surname text, city text, country text, event_id timeuuid, data text, PRIMARY KEY ((surname, city, country),event_id)); there is no way of (easily) getting the set (or a subset) of partition keys, is there (i.e. surname/city/country)? If I want easy access to do queries to get a subset of the partition keys, I have to create another table? I am assuming yes but just making sure I am not missing something obvious here. thanks in advance, Gareth --047d7b343436fa068604da37ceb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

If I have a cql3 table lik= e this (I don't have a table with this data - this is just for example)= :

create table (
=A0 = =A0 surname text,
=A0 =A0 city text,
=A0 =A0 country text,
=A0 =A0 event_id timeuuid,
=A0 =A0 data text,
=A0 =A0 PRIMARY KEY ((surname, city, country),event_id));
=

there is no way of (easily) getting the set (or a subset) of par= tition keys, is there (i.e. surname/city/country)? If I want easy access to= do queries to get a subset of the partition keys, I have to create another= table?

I am assuming yes but just making sure I am= not missing something obvious here.

t= hanks in advance,
Gareth
--047d7b343436fa068604da37ceb6--