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 56A5611204 for ; Tue, 29 Jul 2014 22:29:41 +0000 (UTC) Received: (qmail 52575 invoked by uid 500); 29 Jul 2014 22:29:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 52159 invoked by uid 500); 29 Jul 2014 22:29:39 -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 52057 invoked by uid 99); 29 Jul 2014 22:29:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 22:29:39 +0000 Date: Tue, 29 Jul 2014 22:29:39 +0000 (UTC) From: "Rustam Aliyev (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7637) Add CQL3 keyword for efficient lexical range queries (e.g. START_WITH) 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-7637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rustam Aliyev updated CASSANDRA-7637: ------------------------------------- Component/s: API > Add CQL3 keyword for efficient lexical range queries (e.g. START_WITH) > ---------------------------------------------------------------------- > > Key: CASSANDRA-7637 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7637 > Project: Cassandra > Issue Type: New Feature > Components: API > Reporter: Rustam Aliyev > > Currently, if I want to perform range query on lexical type I need to do something like this: > {code} > SELECT * FROM profile WHERE profile_id = 123 AND > attribute > 'interests.food.' AND > attribute < 'interests.food.z'; > {code} > This is very efficient range query. Yet, many users who are not familiar with Thrift and storage level implementation are unaware of this "trick". > Therefore, it would be convenient to introduce CQL keyword which will do this more simply: > {code} > SELECT * FROM profile WHERE profile_id = 123 AND > attribute START_WITH('interests.food.'); > {code} > Keyword would have same restrictions as other inequality search operators plus some type restrictions. > Allowed types would be: > * {{ascii}} > * {{text}} / {{varchar}} > * {{inet}} (?) > * {{map}} (same for ascii) (?) > * {{set}} (same for ascii) (?) > (?) may require more work, therefore optional -- This message was sent by Atlassian JIRA (v6.2#6252)