Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C177115EE for ; Thu, 31 Jul 2014 00:21:39 +0000 (UTC) Received: (qmail 99350 invoked by uid 500); 31 Jul 2014 00:21:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 99313 invoked by uid 500); 31 Jul 2014 00:21:38 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 99298 invoked by uid 99); 31 Jul 2014 00:21:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 00:21:38 +0000 Date: Thu, 31 Jul 2014 00:21:38 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7636) Data is not filtered out when using WHERE clause on cluster column on Column Family with row cache on. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams updated CASSANDRA-7636: ---------------------------------------- Fix Version/s: 2.1.0 > Data is not filtered out when using WHERE clause on cluster column on Column Family with row cache on. > ------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-7636 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7636 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 2.1.0-rc4 > Reporter: Krzysztof Zarzycki > Fix For: 2.1.0 > > > My pretty simplified case looks like the following: > I create a table with partition and cluster column. I set key caching to NONE and row caching to ALL. > When I'm running some SELECTs with WHERE clause filtering on cluster columns, the rows sometimes are not getting filtered out. When? Probably when the row gets loaded to row cache (By some previous query). > Look at this scenario: > {code} > cqlsh:xxx> create KEYSPACE test_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; > cqlsh:xxx> use test_keyspace ; > cqlsh:test_keyspace> CREATE TABLE test (p1 bigint, c1 int, PRIMARY KEY (p1, c1) ) WITH caching = '{"keys":"NONE", "rows_per_partition":"ALL"}'; > cqlsh:test_keyspace> insert into test (p1, c1 ) values ( 123, 10); > cqlsh:test_keyspace> select * from test where p1 = 123 and c1 > 10; > (0 rows) > cqlsh:test_keyspace> select * from test where p1 = 123 and c1 > 9; > p1 | c1 > -----+---- > 123 | 10 > (1 rows) > cqlsh:test_keyspace> select * from test where p1 = 123 and c1 > 10; > p1 | c1 > -----+---- > 123 | 10 > (1 rows) > {code} > Running the same scenario, but with row cache turned OFF works fine. > The filtering on other (partition) columns runs fine. Only the clustering column is somewhat malfunctioning. -- This message was sent by Atlassian JIRA (v6.2#6252)