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 BD0EC81ED for ; Thu, 1 Sep 2011 22:48:32 +0000 (UTC) Received: (qmail 44849 invoked by uid 500); 1 Sep 2011 22:48:32 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 44695 invoked by uid 500); 1 Sep 2011 22:48:32 -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 44686 invoked by uid 99); 1 Sep 2011 22:48:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 22:48:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 22:48:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 336293C1EE for ; Thu, 1 Sep 2011 22:48:10 +0000 (UTC) Date: Thu, 1 Sep 2011 22:48:10 +0000 (UTC) From: "Pavel Yaskevich (JIRA)" To: commits@cassandra.apache.org Message-ID: <1876614800.8751.1314917290207.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1760266686.58147.1302800105858.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CASSANDRA-2474) CQL support for compound 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-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095653#comment-13095653 ] Pavel Yaskevich edited comment on CASSANDRA-2474 at 9/1/11 10:47 PM: --------------------------------------------------------------------- we can extend that syntax like this to support multiple columns: for composite columns: {noformat} SELECT :column as (date, company), :value as price FROM stockhist WHERE ='GOOG' AND date >= '2011-01-02' LIMIT 50 {noformat} for super columns: {noformat} SELECT :parent as company, :column as (date, ), :value as (price, ) FROM stockhist WHERE company='GOOG' AND date >= '2011-01-02' AND = '...' LIMIT 50 {noformat} Also instead of :column we could use just :name, it might be even cleaner. was (Author: xedin): we can extend that syntax like this to support multiple columns: {noformat} SELECT :column as (date, company), :value as (price, name) FROM stockhist WHERE ='GOOG' AND date >= '2011-01-02' LIMIT 50 {noformat} {noformat} SELECT :parent as company, :column as (date, ), :value as (price, ) FROM stockhist WHERE company='GOOG' AND date >= '2011-01-02' AND = '...' LIMIT 50 {noformat} Also instead of :column we could use just :name, it might be even cleaner. > CQL support for compound columns > -------------------------------- > > Key: CASSANDRA-2474 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2474 > Project: Cassandra > Issue Type: Sub-task > Components: API, Core > Reporter: Eric Evans > Assignee: Pavel Yaskevich > Labels: cql > Fix For: 1.0 > > Attachments: screenshot-1.jpg, screenshot-2.jpg > > > For the most part, this boils down to supporting the specification of compound column names (the CQL syntax is colon-delimted terms), and then teaching the decoders (drivers) to create structures from the results. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira