From user-return-23909-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Fri Feb 3 07:27:55 2012 Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 250759E13 for ; Fri, 3 Feb 2012 07:27:55 +0000 (UTC) Received: (qmail 15133 invoked by uid 500); 3 Feb 2012 07:27:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14836 invoked by uid 500); 3 Feb 2012 07:27:43 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 14828 invoked by uid 99); 3 Feb 2012 07:27:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 07:27:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.13.192.44] (HELO cl35.gs01.gridserver.com) (64.13.192.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 07:27:33 +0000 Received: from c-24-7-82-252.hsd1.ca.comcast.net ([24.7.82.252]:50490 helo=[192.168.26.105]) by cl35.gs01.gridserver.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.69) (envelope-from ) id 1RtDY9-0001hq-6b for user@cassandra.apache.org; Thu, 02 Feb 2012 23:27:13 -0800 Message-ID: <4F2B8C8B.8060009@syncopated.net> Date: Thu, 02 Feb 2012 23:28:11 -0800 From: Deno Vichas User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: data model with composite columns References: <4F2AFF4F.9060502@syncopated.net> <08E2A35D-863A-4B2B-8D51-BC860B0BC886@thelastpickle.com> In-Reply-To: <08E2A35D-863A-4B2B-8D51-BC860B0BC886@thelastpickle.com> Content-Type: multipart/alternative; boundary="------------030005020406020806070706" X-Authenticated-User: 32415 deno@syncopated.net X-Spam-Level: X-Old-Spam-Status: "score=-0.4 tests=ALL_TRUSTED, HTML_MESSAGE version=3.1.7" This is a multi-part message in MIME format. --------------030005020406020806070706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit this is what i thought. thanks for clarifying. On 2/2/2012 10:44 PM, aaron morton wrote: > Short answer is no. The slightly longer answer is nope. > > All column names in a CF are compared using the same comparator. You > will need to create a new CF. > > Cheers. > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 3/02/2012, at 10:25 AM, Deno Vichas wrote: > >> hey all! >> >> i have a CF that has ~10 columns in it and now i'm finding the need >> to use composite column names. can you, or should mix and match >> composite and non-composite column names in the same CF? if you >> can/should how does sorting work with a single comparator? >> >> >> thanks, >> deno >> >> > --------------030005020406020806070706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit this is what i thought. thanks for clarifying.


On 2/2/2012 10:44 PM, aaron morton wrote:
Short answer is no. The slightly longer answer is nope.

All column names in a CF are compared using the same comparator. You will need to create a new CF. 

Cheers.
 
-----------------
Aaron Morton
Freelance Developer
@aaronmorton

On 3/02/2012, at 10:25 AM, Deno Vichas wrote:

hey all!

i have a CF that has ~10 columns in it and now i'm finding the need to use composite column names.  can you, or should mix and match composite and non-composite column names in the same CF?  if you can/should how does sorting work with a single comparator?


thanks,
deno




--------------030005020406020806070706--