Return-Path: X-Original-To: apmail-cassandra-dev-archive@www.apache.org Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED8B7E728 for ; Mon, 10 Dec 2012 06:06:26 +0000 (UTC) Received: (qmail 75922 invoked by uid 500); 10 Dec 2012 06:06:26 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 74953 invoked by uid 500); 10 Dec 2012 06:06:22 -0000 Mailing-List: contact dev-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 dev@cassandra.apache.org Received: (qmail 74945 invoked by uid 99); 10 Dec 2012 06:06:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 06:06:22 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of boneill42@gmail.com designates 209.85.217.172 as permitted sender) Received: from [209.85.217.172] (HELO mail-lb0-f172.google.com) (209.85.217.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 06:06:16 +0000 Received: by mail-lb0-f172.google.com with SMTP id y2so1894802lbk.31 for ; Sun, 09 Dec 2012 22:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Tp7bnLmPaAwzvVNeOjegstDVgTPMaKQpBDNeYUEo708=; b=sbcomq6jwpBvtzVdpENZUzVdefPk46sSvAemep19tNb+pD93deQpWOLU1ksmxpd56Z TpJFubZzglDKYPlmloGfKRMO8yAyI+D17Oi1dpP/tzVzaUf7CNZbf89Wp543B9RZahf0 34aqp6fsK3mbGImETq+hBlbqd++2Abb0bPJwupYlFwOJQK9g5b4aO416y+NYTVawMpED yUc8MEAiBAyu5xVz+zBBIU2ZO6f1qJ4dXg2qM8EQczd54Q1h78vXnhPkS1+b251NRF/6 Ucra+pOGm9GxGY3zIAox2BNlDagfXuvz3F5CnoDYKUogEIcA4RiLuObNnscfoyyWGpb5 j8HA== MIME-Version: 1.0 Received: by 10.112.11.34 with SMTP id n2mr5570579lbb.100.1355119556148; Sun, 09 Dec 2012 22:05:56 -0800 (PST) Sender: boneill42@gmail.com Received: by 10.114.91.197 with HTTP; Sun, 9 Dec 2012 22:05:56 -0800 (PST) Date: Mon, 10 Dec 2012 01:05:56 -0500 X-Google-Sender-Auth: sm77DAkcb7V2ei0pEqzTz-m3ADU Message-ID: Subject: CQL/CLI Experiments w/ 1.2 From: "Brian O'Neill" To: dev@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I'm using the following schema and data: CREATE TABLE children ( childId varchar, firstName varchar, lastName varchar, timezone varchar, PRIMARY KEY (childId ) ); insert into children (childId, firstName, lastName, timezone) values ('bart.simpson', 'Bart', 'Simpson', 'PST'); insert into children (childId, firstName, lastName, timezone) values ('dennis.menace', 'Dennis', 'Menace', 'PST'); All is well on the CQL side of things, but when I go over into CLI, I see the following: [default@northpole] list children; Using default limit of 100 Using default column limit of 100 ------------------- RowKey: bart.simpson => (column=, value=, timestamp=1355116106465000) => (column=firstname, value=42617274, timestamp=1355116106465000) => (column=lastname, value=53696d70736f6e, timestamp=1355116106465000) => (column=timezone, value=505354, timestamp=1355116106465000) ------------------- RowKey: dennis.menace => (column=, value=, timestamp=1355116106466000) => (column=firstname, value=44656e6e6973, timestamp=1355116106466000) => (column=lastname, value=4d656e616365, timestamp=1355116106466000) => (column=timezone, value=505354, timestamp=1355116106466000) Question 1: What is the empty column/value? I ask because it causes confusion/issues when accessing it from a Java API. (like Astyanax) That column and value are in the result set. Should clients start ignoring empty column names/values? Question 2: It also appears as though the column names are CompositeType even though there is only one component: (below is from CLI) Columns sorted by: org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type) Because of that, I would need to use CompositeTypes in my java app to insert into the table. Is there any way to create a table via CQL3 that doesn't force me to use Composite types in my Java app? (In CQL2, we could specify comparators, but I don't see that in CQL3) -brian -- Brian ONeill Lead Architect, Health Market Science (http://healthmarketscience.com) mobile:215.588.6024 blog: http://brianoneill.blogspot.com/ twitter: @boneill42