From user-return-12805-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Wed Feb 02 23:14:58 2011 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 75407 invoked from network); 2 Feb 2011 23:14:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 23:14:57 -0000 Received: (qmail 35533 invoked by uid 500); 2 Feb 2011 23:14:55 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 35485 invoked by uid 500); 2 Feb 2011 23:14:55 -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 35477 invoked by uid 99); 2 Feb 2011 23:14:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 23:14:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.83.172 as permitted sender) Received: from [74.125.83.172] (HELO mail-pv0-f172.google.com) (74.125.83.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 23:14:49 +0000 Received: by pvc21 with SMTP id 21so116917pvc.31 for ; Wed, 02 Feb 2011 15:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=rofHIPxN50W1aC5hSLpZs4RucOfgjrHz+7U/l02DEEU=; b=QNGqdKQpM6KiEjmJyrKWxAabmCPoGOVpYNK6rxxVyoVkmMwZP5btMIFBgG+EDQDP9K N85HvQTISiq770lY/8K5ordOiJue231nAQM3BMn9IgSSwLZAxEfZRT6Mt7q76UHtE6WZ wlNC4pPt54DJjVWwLS0ZgFrdGlNenHq/6xPwA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IvRyOF1ROu9sAAvVD86Cr/zK+b+yeDTk2bCCyaZrrApxgJFEU6x36LPkD2doGgvnsD dfeBeKbgCYlvGY0xzIXfivM9t4GZ68VS3ojlHck3q98CwkEMQ0fefNy/PFcTzB8pXQ29 /zUcaQ7qEmfB5HfcMD5nEGaD02T15UFjfVKeo= MIME-Version: 1.0 Received: by 10.142.232.6 with SMTP id e6mr9428342wfh.288.1296688468801; Wed, 02 Feb 2011 15:14:28 -0800 (PST) Received: by 10.142.164.19 with HTTP; Wed, 2 Feb 2011 15:14:28 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Feb 2011 15:14:28 -0800 Message-ID: Subject: Re: how to change compare_with From: Jonathan Ellis To: user Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 2, 2011 at 3:01 PM, Tyler Hobbs wrote: > I think Jonathan mispoke. I thought I was mistaken, but I was wrong. :) > You cannot change the 'compare_with' attribute of an existing column > family. You can, but it's up to you to make sure that the new type makes sense. Most frequently, you see this when changing from BytesType to something more structured. (If you screw up and specify a compare_with that is nonsensical for your data, just change it back.) -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com