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 CB276D476 for ; Fri, 3 Aug 2012 12:06:46 +0000 (UTC) Received: (qmail 91146 invoked by uid 500); 3 Aug 2012 12:06:44 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91038 invoked by uid 500); 3 Aug 2012 12:06: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 91011 invoked by uid 99); 3 Aug 2012 12:06:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 12:06:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.55.203.195] (HELO mx1.datenpark.ch) (212.55.203.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 12:06:36 +0000 Received: from mx3.datenpark.ch (mx3.datenpark.ch [212.55.203.199]) by mx1.datenpark.ch (Postfix) with ESMTP id 9BE2CDC049C for ; Fri, 3 Aug 2012 14:06:15 +0200 (CEST) Received: from [129.132.130.216] (vs37.inf.ethz.ch [129.132.130.216]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx3.datenpark.ch (Postfix) with ESMTPSA id 7902E27809D5 for ; Fri, 3 Aug 2012 14:06:15 +0200 (CEST) Message-ID: <501BBEB4.9070205@scandit.com> Date: Fri, 03 Aug 2012 14:06:12 +0200 From: Christof Roduner User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Changing comparator References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Roshni, Thanks for your reply. As far as I know, ASSUME is only for cqlsh and not for CQL in general. (We can of course achieve the same by programmatically setting the encoding. It would be just simpler to let the CQL driver take care of it...) Regards, Christof On 8/3/2012 11:31 AM, Roshni Rajagopal wrote: > Christof , > > can't you just use ASSUME for the CQL session? > > http://www.datastax.com/docs/1.0/references/cql/ASSUME > > > Regards, > Roshni > > > > On 03/08/12 2:26 PM, "Christof Roduner" wrote: > >> Hi, >> >> I know that changing a CF's comparator is not officially supported. >> However, there is a post by Jonathan Ellis that implies it can be done >> (www.mail-archive.com/user@cassandra.apache.org/msg09502.html). >> >> I assume that we'd have to change entries in the system.schema_* column >> families. >> >> Has anyone successfully done this? >> >> We want to change the comparator from BytesType to UTF8Type to make the >> move to CQL easier ("cannot parse 'foo' as hex bytes"). Our CFs were >> created back in the Cassandra 0.6.x days and are too large to be easily >> copied to new CFs with a new schema. >> >> Many thanks in advance. >> >> Christof > > This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential *** >