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 015FD1870A for ; Wed, 5 Aug 2015 02:23:06 +0000 (UTC) Received: (qmail 94846 invoked by uid 500); 5 Aug 2015 02:23:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94801 invoked by uid 500); 5 Aug 2015 02:23:03 -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 94786 invoked by uid 99); 5 Aug 2015 02:23:03 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 02:23:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7DE231A97C7 for ; Wed, 5 Aug 2015 02:23:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.961 X-Spam-Level: *** X-Spam-Status: No, score=3.961 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_IMAGE_ONLY_20=0.7, HTML_MESSAGE=3, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id r90c7szpAtwM for ; Wed, 5 Aug 2015 02:22:53 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 33EE82100B for ; Wed, 5 Aug 2015 02:22:53 +0000 (UTC) Received: by obnw1 with SMTP id w1so21480658obn.3 for ; Tue, 04 Aug 2015 19:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=Z/GoQ89b6LUDrCNAfdl7ugJVmkMz69PYxY450vHpZJA=; b=TnKKHN/dlLqJ3DtHensNlisd0mWcxaix1vkEk+PgfOVJu8AV/HKMYU0he/DCh/lwf1 nXh93QuHwB3/scLw4qh+qX9knZsyYVxlzcwQgdXprjsZyNL69bAruiPoEODvHYXbNw4O CeSwH5zFVFtjETFxgj94fDhHBhV3dXiaEmTbhJX8ztmLKZh374q/ERFn3Keo1us3UhDE 07IB/dAxDEP9Gb6/8/waLaL+KbexloNn+qO0GFzPT5C9Hap3lAietFvZspWM78oxUauS 0ivrB/WDw8C6MDD1n7Us4grcep7GlFaA+W6uA3C3NZ2jizyHHbphUnBgz/fMV0vlOhyF xA1w== X-Received: by 10.60.61.101 with SMTP id o5mr6209727oer.65.1438741372631; Tue, 04 Aug 2015 19:22:52 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.183.6.233 with HTTP; Tue, 4 Aug 2015 19:22:33 -0700 (PDT) From: Kevin Burton Date: Tue, 4 Aug 2015 19:22:33 -0700 X-Google-Sender-Auth: ffPVlJCoc-yjuWQ9XmgYiFQeQA0 Message-ID: Subject: TTLs on tables with *only* primary keys? To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a11331030707eba051c871480 --001a11331030707eba051c871480 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a table which just has primary keys. basically: create table foo ( sequence bigint, signature text, primary key( sequence, signature ) ) I need these to eventually get GCd however it doesn=E2=80=99t seem to work. If I then run: select ttl(sequence) from foo; I get: Cannot use selection function ttl on PRIMARY KEY part sequence =E2=80=A6 I get the same thing if I do it on the second column .. (signature). And the value doesn=E2=80=99t seem to be TTLd. What=E2=80=99s the best way to proceed here? --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --001a11331030707eba051c871480 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have a table which just has primary keys.

=
basically:

create table foo (
=
=C2=A0 =C2=A0 sequence bigint,
=C2=A0 =C2=A0 signa= ture text,
=C2=A0 =C2=A0 primary key( sequence, signature )
=
)

I need these to eventually get GCd however = it doesn=E2=80=99t seem to work.

If I then run:

select ttl(sequence) from foo;

I get:

Cannot use selection function ttl o= n PRIMARY KEY part sequence

=E2=80=A6=C2=A0

I get the same thing if I do it on the second column= .. (signature).

And the value doesn=E2=80=99t see= m to be TTLd.

What=E2=80=99s the best way to proce= ed here?


--
--001a11331030707eba051c871480--