Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 77293 invoked from network); 22 Mar 2010 14:01:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Mar 2010 14:01:48 -0000 Received: (qmail 29490 invoked by uid 500); 22 Mar 2010 14:01:48 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29434 invoked by uid 500); 22 Mar 2010 14:01:48 -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 29417 invoked by uid 99); 22 Mar 2010 14:01:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Mar 2010 14:01:48 +0000 X-ASF-Spam-Status: No, hits=-1091.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Mar 2010 14:01:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 827C8234C1EE for ; Mon, 22 Mar 2010 14:01:27 +0000 (UTC) Message-ID: <1128764611.403371269266487519.JavaMail.jira@brutus.apache.org> Date: Mon, 22 Mar 2010 14:01:27 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-767) Row keys should be byte[]s, not Strings 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-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848132#action_12848132 ] Sylvain Lebresne commented on CASSANDRA-767: -------------------------------------------- > In version 0.7, all row keys (which are currently strings encoded as UTF-8, will be returned as raw > UTF-8 bytes: Cassandra does not have any idea what you might have encoded in the string. Yep, I think I was hoping for some upgrade path that you could customize to repack the keys in bytes correctly (by means of a custom java class for instance). But I realized that there is no way that could be done without converting all the data of the cluster at once, which is unrealistic. I was just stupid. Sorry. > Row keys should be byte[]s, not Strings > --------------------------------------- > > Key: CASSANDRA-767 > URL: https://issues.apache.org/jira/browse/CASSANDRA-767 > Project: Cassandra > Issue Type: Improvement > Reporter: Stu Hood > Priority: Critical > Fix For: 0.7 > > > This issue has come up numerous times, and we've dealt with a lot of pain because of it: let's get it knocked out. > Keys being Java Strings can make it painful to use Cassandra from other languages, encoding binary data like integers as Strings is very inefficient, and there is a disconnect between our column data types and the plain String treatment we give row keys. > The key design decision that needs discussion is: Should we apply the column AbstractTypes to row keys? If so, how do Partitioners change? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.