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 127678116 for ; Wed, 7 Sep 2011 17:11:36 +0000 (UTC) Received: (qmail 37033 invoked by uid 500); 7 Sep 2011 17:11:35 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 36650 invoked by uid 500); 7 Sep 2011 17:11:35 -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 36433 invoked by uid 99); 7 Sep 2011 17:11:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 17:11:34 +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; Wed, 07 Sep 2011 17:11: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 5249986078 for ; Wed, 7 Sep 2011 17:11:10 +0000 (UTC) Date: Wed, 7 Sep 2011 17:11:10 +0000 (UTC) From: "Pavel Yaskevich (JIRA)" To: commits@cassandra.apache.org Message-ID: <1795214152.26433.1315415470333.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=13099103#comment-13099103 ] Pavel Yaskevich edited comment on CASSANDRA-2474 at 9/7/11 5:09 PM: -------------------------------------------------------------------- To make it Hive friendly {noformat} -- sparse select example SELECT tweet_id; username, body; location FROM tweets:transposed WHERE key = AND username = 'xedin'; -- dense select example SELECT tweet_id; username; location FROM tweets:transposed WHERE key = AND username = 'xedin'; -- insert INSERT INTO tweets (KEY, COMPOUND_NAME('2e1c3308', username)) VALUES (, 'cscotta'); INSERT INTO tweets (KEY, COMPOUND_NAME('2e1c3308', body)) VALUES (, 'Brother...'); INSERT INTO tweets (KEY, COMPOUND_NAME('2e1c3308', 'cscotta')) VALUES (, 'Brother...'); -- update UPDATE tweets SET value = 'My motocycle...' WHERE KEY = AND COMPOUND_NAME('2e1c3308', 'cscotta'); {noformat} was (Author: xedin): To make it Hive friendly {noformat} -- sparse select example SELECT tweet_id; username, body; location FROM tweets:transposed WHERE key = AND username = 'xedin'; -- dense select example SELECT tweet_id; username; location FROM tweets:transposed WHERE key = AND username = 'xedin'; -- insert INSERT INTO tweets:transposed (KEY, COMPOUND_NAME('2e1c3308', username)) VALUES (, 'cscotta'); INSERT INTO tweets:transposed (KEY, COMPOUND_NAME('2e1c3308', body)) VALUES (, 'Brother...'); INSERT INTO tweets:transposed (KEY, COMPOUND_NAME('2e1c3308', 'cscotta')) VALUES (, 'Brother...'); -- update UPDATE tweets:transposed SET value = 'My motocycle...' WHERE KEY = AND COMPOUND_NAME('2e1c3308', 'cscotta'); {noformat} > 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