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 233E211CDC for ; Wed, 17 Sep 2014 12:39:34 +0000 (UTC) Received: (qmail 11937 invoked by uid 500); 17 Sep 2014 12:39:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 11847 invoked by uid 500); 17 Sep 2014 12:39:33 -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 11505 invoked by uid 99); 17 Sep 2014 12:39:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 12:39:33 +0000 Date: Wed, 17 Sep 2014 12:39:33 +0000 (UTC) From: "Benjamin Lerer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-4762) Support IN clause for any clustering column 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-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137152#comment-14137152 ] Benjamin Lerer commented on CASSANDRA-4762: ------------------------------------------- Pushed the fix to [branch|https://github.com/blerer/cassandra/commits/CASSANDRA-4762]. I have fixed all the points but I am not fully happy with the new name for the add method of CompositesBuilder: {quote}addElementToAll(ByteBuffer){quote} and {quote}addEachElementToAll(List){quote}. I am willing to take any suggestion. I tried to make the javadoc explicite by providing some examples to compensate for those not so clear names. > Support IN clause for any clustering column > ------------------------------------------- > > Key: CASSANDRA-4762 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4762 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: T Jake Luciani > Assignee: Benjamin Lerer > Labels: cql, docs > Fix For: 3.0 > > Attachments: 4762-1.txt > > > Given CASSANDRA-3885 > It seems it should be possible to store multiple ranges for many predicates even the inner parts of a composite column. > They could be expressed as a expanded set of filter queries. > example: > {code} > CREATE TABLE test ( > name text, > tdate timestamp, > tdate2 timestamp, > tdate3 timestamp, > num double, > PRIMARY KEY(name,tdate,tdate2,tdate3) > ) WITH COMPACT STORAGE; > SELECT * FROM test WHERE > name IN ('a','b') and > tdate IN ('2010-01-01','2011-01-01') and > tdate2 IN ('2010-01-01','2011-01-01') and > tdate3 IN ('2010-01-01','2011-01-01') > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)