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 910D61182D for ; Wed, 6 Aug 2014 07:41:54 +0000 (UTC) Received: (qmail 54406 invoked by uid 500); 6 Aug 2014 07:41:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 54366 invoked by uid 500); 6 Aug 2014 07:41:52 -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 54334 invoked by uid 99); 6 Aug 2014 07:41:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 07:41:52 +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 jens.rantil@tink.se designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 07:41:48 +0000 Received: by mail-la0-f53.google.com with SMTP id gl10so1644851lab.12 for ; Wed, 06 Aug 2014 00:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tink.se; s=tink; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=trvbZ3lJPaHo1IYJqvRO8c28ijfZCcTA3kHJzrT66Gw=; b=PuCqFgO7IL69UgczmS7vkcjf/IUDvyhsbPrGmtNUU1lArmEfh2I+xsuR1eZzR0VPiU IuwKXxGisyfVG8yV57s2shYcw/KBdbK+FwSyB6xfa9PNppMVPPeYaidUQVih3QtksAm+ QDK0EsXLjLZHQ0x3j7N1gZ88J0YNXLVTZDltQ= 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:from:date :message-id:subject:to:content-type; bh=trvbZ3lJPaHo1IYJqvRO8c28ijfZCcTA3kHJzrT66Gw=; b=B+PPgOB8VALpUcAYlCii4TizXdfJp+5JvAguwNz4K7ZrOpWPnVFQu8mSXZUe7loE70 Uy9FPgK9i+oxzUbJgIkcznAfxKxsrtzJ1P7lu/um6osLbOKSCXo3KnNsFSM62bjqqIR/ o+hKFFMMCda+TjG1AfZkQ8G09opHpaQ8l6bj9ndLaGkOQZaN2B7PTE5KBbxn/1fDverO Zpem5xfW/e653qsTTXVgN2alZ5lzGpfyidEmjrf48/KWz6CGOAx5jhfcbb6/5d2xkWjH Kqe0gAI2DEDsl8PALVpxGU1axOSXacAAlPxjN0MomhCwDskHk1zQa6IajIl1OJ3cGciK Z+1w== X-Gm-Message-State: ALoCoQlRxFfyNWnjk3YJsSV7r/9wlPaGj03O+c/chsMiTRprbhlbd4Qd2S4u2ZH0d6/XD6qud5sX X-Received: by 10.152.163.33 with SMTP id yf1mr9631831lab.6.1407310886295; Wed, 06 Aug 2014 00:41:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.171.41 with HTTP; Wed, 6 Aug 2014 00:41:06 -0700 (PDT) In-Reply-To: References: From: Jens Rantil Date: Wed, 6 Aug 2014 09:41:06 +0200 Message-ID: Subject: Re: Issue with ALLOW FILTERING To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11340764776dc604fff119d7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11340764776dc604fff119d7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi S=C3=A1vio, I am really surprised by this. Could anyone explain why ALLOW FILTERING only is allowed when using secondary index and not together with a PRIMARY KEY? I'm struggling to see any reason for it not being supported. Also, I don't believe the CQL specification makes it entirely clear that only secondary indexes are supported. Or is it considered implementation specific under what circumstances ALLOW FILTERING can be used? Thanks, Jens On Tue, Aug 5, 2014 at 8:11 PM, S=C3=A1vio S. Teles de Oliveira < savio.teles@cuia.com.br> wrote: > 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 >> > > > > -- > 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 > --001a11340764776dc604fff119d7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi S=C3=A1vio,

I am really surprised by= this. Could anyone explain why ALLOW FILTERING only is allowed when using = secondary index and not together with a PRIMARY KEY? I'm struggling to = see any reason for it not being supported.

Also, I don't believe the CQL specification makes i= t entirely clear that only secondary indexes are supported. Or is it consid= ered implementation specific under what circumstances ALLOW FILTERING can b= e used?

Thanks,
Jens


On Tue, Aug 5, 2014 at 8:11 PM, S= =C3=A1vio S. Teles de Oliveira <savio.teles@cuia.com.br> wrote:
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



--
Aten= ciosamente,
S=C3=A1vio S. Teles de Oliveira
voice: +55 6= 2 9136 6996
http://b= r.linkedin.com/in/savioteles
Mestrando em Ci=C3=AAncias da Computa=C3=A7=C3=A3o - UFG
Arquiteto de S= oftware
CUIA Internet Brasil

--001a11340764776dc604fff119d7--