Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 5315 invoked from network); 11 Nov 2010 20:20:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 20:20:28 -0000 Received: (qmail 6199 invoked by uid 500); 11 Nov 2010 20:20:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 6173 invoked by uid 500); 11 Nov 2010 20:20:57 -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 6164 invoked by uid 99); 11 Nov 2010 20:20:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 20:20:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a58.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 20:20:52 +0000 Received: from homiemail-a58.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTP id 299A77D806A for ; Thu, 11 Nov 2010 12:20:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:date:message-id:content-type:mime-version:in-reply-to; q=dns; s=thelastpickle.com; b=xSX4I1VH/n+npMGRAVRVW2L0F/Vdr5fCz sSoEHQB5Zn43jMmqIpmQLX95Md00XYxaGoq1wnOeAawl8Qpd8cFG6KQFyAfLYOgs Arcm/hdlj2BQxT0qzWcTQcc/Q81R3ZIMu+dLLc6/epzU4YC9aYMEDvFShsJo9bBG bsvnCfaBQQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:date:message-id:content-type:mime-version: in-reply-to; s=thelastpickle.com; bh=Q6TjlGZJVuRNHH9adnAOfwfZaq4 =; b=WtkFzhGMHndmrmx4lKsmBHDiIXYi2N4yqYRu17czXuLmQyqPULn8V0gb8yb qXKvoIq7k2K6LW2ooDnek41OHVq5BO+OIEgnLvx/NpQSOBmtYa6JEEKuaNEHh7Xr V0QdxCLtGmpW1bMaKuQNCy3o+95J+vFKY8S3AY/ketYTVu4M= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTPSA id E40FC7D8063 for ; Thu, 11 Nov 2010 12:20:28 -0800 (PST) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: Secondary index query return row should not return? Date: Thu, 11 Nov 2010 20:20:28 GMT X-Mailer: MobileMe Mail (1C3207) Message-id: <05c626a6-714a-65c9-b963-e0248981bc2f@me.com> Content-Type: multipart/alternative; boundary=Apple-Webmail-42--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6 MIME-Version: 1.0 In-Reply-To: --Apple-Webmail-42--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed My understanding is the clauses are AND'd together.=A0=0A=0AThere is some = nice logging from the ColumnFamilyStore when it's running the request, can= you turn the logging up to DEBUG and send them along?=A0=0A=0AThe first l= og message will say something like "Primary scan clause is.."=A0=0A=0AChee= rs=0AAaron=0A=0AOn 12 Nov, 2010,at 02:04 AM, Ching-Cheng Chen wrote:=0A=0ANot sure if this the intended behavior of the = indexed query.=A0=0A=0AI created a column family and added index on column= A,B,C.=A0=0A=0ANow I insert three rows.=A0=0A=0Arow1 : A=3D123, B=3D456, = C=3D789=A0=0Arow2 : A=3D123, C=3D789=A0=0Arow3 : A=3D123, B=3D789, C=3D789= =A0=0A=0ANow if I perform an indexed query for A=3D123 and B=3D456, both r= ow1 and row2 are returned.=A0=0A=0AIs this the expected behavior? =A0Since= row2 doesn't have column B, I would expect B=3D456 expression should retu= rn false. =A0=A0=0A=0AI'm using cassandra-0.7.0-beta3 and hector-0.7.0-19_= 11042010=A0=0A=0ARegards,=A0=0A=0AChen --Apple-Webmail-42--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6 --Apple-Webmail-86--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
My understanding is the clauses are AND'd together. 
<= br>
There is some nice logging from the ColumnFamilyStore when i= t's running the request, can you turn the logging up to DEBUG and send the= m along? 

The first log message will say som= ething like "Primary scan clause is.." 

Chee= rs
Aaron

On 12 Nov, 2010,at 02:04 AM, Ching-Cheng = Chen <cchen@evidentsoftware.com> wrote:

Not sure= if this the intended behavior of the indexed query. 

I create= d a column family and added index on column A,B,C. 
=0A
Now I i= nsert three rows. 

row1 : A=3D123, B=3D456, C=3D789 
r= ow2 : A=3D123, C=3D789 
row3 : A=3D123, B=3D789, C=3D789 
=
Now if I perform an indexed query for A=3D123 and B=3D456, both row1 a= nd row2 are returned. 

=0AIs this the expected behavior?  = ;Since row2 doesn't have column B, I would expect B=3D456 expression shoul= d return false.   

I'm using cassandra-0.7.0-beta3 and he= ctor-0.7.0-19_11042010 

Regards, 

=0AChen
=0A=
--Apple-Webmail-86--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6-- --Apple-Webmail-42--1082d7ca-4031-e76b-cfd6-c1a4977ad9d6--