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 7C08211F9A for ; Tue, 5 Aug 2014 18:12:17 +0000 (UTC) Received: (qmail 32540 invoked by uid 500); 5 Aug 2014 18:12:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 32508 invoked by uid 500); 5 Aug 2014 18:12:13 -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 32498 invoked by uid 99); 5 Aug 2014 18:12:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 18:12:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of savio.teles@cuia.com.br designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 18:12:09 +0000 Received: by mail-vc0-f176.google.com with SMTP id id10so2183647vcb.35 for ; Tue, 05 Aug 2014 11:11:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=5nHxPGWJr61UGpJdeB6MFI7az5QrAEWWP40a+QpFoHo=; b=j4Z+Qo9hRfZfNIOTR5rdBE48zGXA+KrVlVC+qN8PgLsVO7jCC1LVwJwdbtFy2LprQA F7sZn4ZF/Szc9saZlFdvrpxPYELhEMyul2TrfbcjYdpKtS0J1L94/MK7Ynsb+9fSzsYj YkZvHC7Xjgev00xArzPxszqvWsUozrxrgijWKZz2chyfJKsXHSKQHxvrculc7FubYDaX 9U7yORr9i17oh0gbvKaeWk1OacmY8/WeOdRx3Jg7cKMjclGCcOhPOGyRMDLvoSAlouQz STqaEz2QopVFkwOckaVsbf44gBbTm4UUlX4OPffD9HHgBQfV9jJpG7PpKiYcYQnG/OxR 1bYA== X-Gm-Message-State: ALoCoQmSLyJurClBAaFI1R4QRL2mvZZBaDCOPmThgIKuVlvIQP5f29LnUCNZgknNa2XTdHZR+pyF MIME-Version: 1.0 X-Received: by 10.53.7.204 with SMTP id de12mr4677892vdd.41.1407262308022; Tue, 05 Aug 2014 11:11:48 -0700 (PDT) Received: by 10.221.47.70 with HTTP; Tue, 5 Aug 2014 11:11:47 -0700 (PDT) X-Originating-IP: [186.213.199.209] In-Reply-To: References: Date: Tue, 5 Aug 2014 15:11:47 -0300 Message-ID: Subject: Re: Issue with ALLOW FILTERING From: =?UTF-8?Q?S=C3=A1vio_S=2E_Teles_de_Oliveira?= To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1133f016f9d47f04ffe5c9a9 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133f016f9d47f04ffe5c9a9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You need to create an index on attribute *c.* 2014-08-05 9:24 GMT-03:00 Jens Rantil : > Hi, > > I'm having an issue with ALLOW FILTERING with Cassandra 2.0.8. See a > minimal example here: > https://gist.github.com/JensRantil/ec43622c26acb56e5bc9 > > I expect the second last to fail, but the last query to return a single > row. In particular I expect the last SELECT to first select using the > clustering primary id and then do filtering. > > I've been reading > https://cassandra.apache.org/doc/cql3/CQL.html#selectStmt "ALLOW > FILTERING" and can't wrap my head around why this won't work. > > Could anyone clarify this for me? > > Thanks, > Jens > --=20 Atenciosamente, S=C3=A1vio S. Teles de Oliveira voice: +55 62 9136 6996 http://br.linkedin.com/in/savioteles Mestrando em Ci=C3=AAncias da Computa=C3=A7=C3=A3o - UFG Arquiteto de Software CUIA Internet Brasil --001a1133f016f9d47f04ffe5c9a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You need to create an index on attribute c.


2014-08-05 9:24= GMT-03:00 Jens Rantil <jens.rantil@tink.se>:
Hi,

I= 9;m having an issue with ALLOW FILTERING with Cassandra 2.0.8. See a minima= l example here: https://gist.github.com/JensRantil/ec43622c26acb= 56e5bc9

I expect the second last to fail, but the last query to= return a single row. In particular I expect the last SELECT to first selec= t using the clustering primary id and then do filtering.

I've been reading=C2=A0https://cassandra.apache= .org/doc/cql3/CQL.html#selectStmt "ALLOW FILTERING" and can&#= 39;t wrap my head around why this won't work.

Could anyone clarify this for me?

<= div>Thanks,
Jens



--
Atenciosamente,
S=C3=A1vio S. Teles de Oliveira
voi= ce: +55 62 9136 6996
http://br.linkedin.com/in/savioteles
Mestrando em Ci=C3=AAncias da Computa=C3=A7=C3=A3o - UFG
Arquiteto de S= oftware
CUIA Internet Brasil
--001a1133f016f9d47f04ffe5c9a9--