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 3D7B018358 for ; Tue, 22 Mar 2016 13:26:26 +0000 (UTC) Received: (qmail 18388 invoked by uid 500); 22 Mar 2016 13:26:26 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 18357 invoked by uid 500); 22 Mar 2016 13:26:25 -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 18344 invoked by uid 99); 22 Mar 2016 13:26:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 13:26:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7024F2C14F8 for ; Tue, 22 Mar 2016 13:26:25 +0000 (UTC) Date: Tue, 22 Mar 2016 13:26:25 +0000 (UTC) From: "Sam Tunnicliffe (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-11399) Unable to run range queries on SASI clustering index with restrictions on succeeding columns 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-11399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Tunnicliffe resolved CASSANDRA-11399. ----------------------------------------- Resolution: Duplicate Looks like this will be addressed by CASSANDRA-11310, so closing as a duplicate > Unable to run range queries on SASI clustering index with restrictions on succeeding columns > -------------------------------------------------------------------------------------------- > > Key: CASSANDRA-11399 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11399 > Project: Cassandra > Issue Type: Bug > Components: sasi > Reporter: Sam Tunnicliffe > Priority: Minor > > Because the {{GT/GTE/LT/LTE}} operators generate {{Slice}} restrictions, when the index is on a clustering column and a range predicate is used, restrictions are not allowed on any following, non-indexed clustering columns. > {code} > cqlsh> create table ks.t1 (k text, c1 int, c2 int, c3 int, v text, primary key (k,c1,c2,c3)); > cqlsh> create custom index on ks.t1(c2) using 'org.apache.cassandra.index.sasi.SASIIndex'; > cqlsh> select * from ks.t1 where c1 = 1 and c2 > 0 allow filtering; > k | c1 | c2 | c3 | v > ---+----+----+----+----- > a | 1 | 1 | 1 | val > (1 rows) > cqlsh> select * from ks.t3 where c1 = 1 and c2 > 0 and c3 = 1 allow filtering; > InvalidRequest: code=2200 [Invalid query] message="PRIMARY KEY column "c3" cannot be restricted (preceding column "c2" is restricted by a non-EQ relation)" > {code} > Given that {{ALLOW FILTERING}} is required and we're querying via the index, it's probably reasonable to expect this second query to be allowed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)