Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 45356 invoked from network); 13 Jan 2010 20:44:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 20:44:16 -0000 Received: (qmail 77144 invoked by uid 500); 13 Jan 2010 20:44:16 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 77069 invoked by uid 500); 13 Jan 2010 20:44:16 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 76905 invoked by uid 99); 13 Jan 2010 20:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 20:44:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 13 Jan 2010 20:44:14 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9EA97234C4AC for ; Wed, 13 Jan 2010 12:43:54 -0800 (PST) Message-ID: <1647864465.221411263415434648.JavaMail.jira@brutus.apache.org> Date: Wed, 13 Jan 2010 20:43:54 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-626) Polymorphic status of keys as byte[] and String is confusing In-Reply-To: <792823993.1260519078102.JavaMail.jira@brutus> 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-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799924#action_12799924 ] Jonathan Ellis commented on CASSANDRA-626: ------------------------------------------ row ordering is controlled by your partitioner. > Polymorphic status of keys as byte[] and String is confusing > ------------------------------------------------------------ > > Key: CASSANDRA-626 > URL: https://issues.apache.org/jira/browse/CASSANDRA-626 > Project: Cassandra > Issue Type: Improvement > Components: Documentation & website > Affects Versions: 0.5 > Reporter: Paul R. Brown > Priority: Minor > > As part of some experiments with Cassandra, I wanted to build a column space with row keys that are Long (64-bit binary blocks) and column names that are Long, and this seems to be supported by the data configuration infrastructure: > {code} CompareWith="LongType" > CompareSubcolumnsWith="LongType" > Name="UserEvent"/>{code} > But there is no obvious way to perform the insert over the Thrift interface via Java; I tried various ways of turning the Long bits into Strings for the API call, but the insert call returns: > {code}Exception in thread "main" InvalidRequestException(why:A long is exactly 8 bytes){code} > The status of keys as either byte[] or String and the mechanisms for inserting need to be clarified and surfaced in the API. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.