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 9ED05F661 for ; Tue, 26 Mar 2013 16:09:14 +0000 (UTC) Received: (qmail 689 invoked by uid 500); 26 Mar 2013 16:09:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 648 invoked by uid 500); 26 Mar 2013 16:09:11 -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 637 invoked by uid 99); 26 Mar 2013 16:09:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 16:09:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marko.asplund@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 16:09:06 +0000 Received: by mail-oa0-f42.google.com with SMTP id i18so7809235oag.15 for ; Tue, 26 Mar 2013 09:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=0mOfjrLwhF9Oo5SLddq8GXTBL+E3kuFG4Zqj8x7l3os=; b=DWR80+u3Vu65e62m1e93jMTM6lWAqgA0NDpA8yCZGHpb0c1Y400DTHIOHBjjrMzhOq uomCnzo0eEwlrdGZasHtj/NIyXiCHqW3BULM3yaptOaMqQeBno9024idoRqRZ36VBdAw mM7Y4+MjCc9VQZJxEsEvhTBkLtRgZfueL+7t08yu0Lbb9gno/OR3w9ZlGD0Hp7Wh180h SNgOhTCMNX5W2GBben0M4DBJnzFQMVdyJYsA1FBQkFhGq84MNAEOy0ePFX3jC+3aXdYq 9qRF2ubOdE7vaK4L/lS5prZW7xD8lb++bp4wGtmGQPrn+ji0wmjwqRcxAvwwwPZ/AEGc iebA== X-Received: by 10.60.31.42 with SMTP id x10mr13669854oeh.18.1364314125714; Tue, 26 Mar 2013 09:08:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.115.232 with HTTP; Tue, 26 Mar 2013 09:08:05 -0700 (PDT) From: Marko Asplund Date: Tue, 26 Mar 2013 18:08:05 +0200 Message-ID: Subject: CQL vs. non-CQL data models To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm experimenting with CQL3 and the non-CQL Cassandra data access methods through Astyanax client API. Being new to Cassandra I'm a bit puzzled by differences between the CQL3 data model and the non-CQL based data model exposed by the Astyanax client API. Is this data model defined by Thrift? How closely does it reflect the Cassandra internal data model? Is there any documentation or other online pointers describing these different data models? Can I use both access methods for a particular column family? Can a column family that was created using CQL have columns added to it dynamically? Can I add CQL required metadata to column families created using Cassandra CLI later, so that they can be accessed via CQL? I'm trying to access data created using CQL by using non-CQL based access methods and vice versa and I'm confused about the following behaviour: - trying to use MutationBatch for modifying a rows in column family that has been created using CQL results in: InvalidRequestException(why:Not enough bytes to read value of component 0) - column family created using CQL is not visible via Cassandra CLI [default@test1] list employees1; employees1 not found in current keyspace. - row data in column family created using Cassandra CLI is not deserialized when read using cqlsh (select * from X) - when accessing data in a column family that was created using CQL keyspace.prepareQuery(CF).getKey(id) the column names seem to be encoded strangely and can't be identified - in CQL query a result row a call on Row.getKey() returns null I'm using Cassandra v1.2.3 and Astyanax v1.56.31. thanks, marko