Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 18492 invoked from network); 23 Apr 2010 10:00:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Apr 2010 10:00:23 -0000 Received: (qmail 10398 invoked by uid 500); 23 Apr 2010 10:00:22 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 10380 invoked by uid 500); 23 Apr 2010 10:00:22 -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 10372 invoked by uid 99); 23 Apr 2010 10:00:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 10:00:21 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.27.53.206] (HELO zmc.proxad.net) (212.27.53.206) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 10:00:14 +0000 Received: from localhost (localhost [127.0.0.1]) by zmc.proxad.net (Postfix) with ESMTP id B8CF3341819E for ; Fri, 23 Apr 2010 11:59:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -1.345 X-Spam-Level: Received: from zmc.proxad.net ([127.0.0.1]) by localhost (zmc.proxad.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b0tJmO2XyEwt for ; Fri, 23 Apr 2010 11:59:51 +0200 (CEST) Received: from [192.168.110.5] (unknown [213.228.1.188]) by zmc.proxad.net (Postfix) with ESMTPSA id 5A1E1341819D for ; Fri, 23 Apr 2010 11:59:51 +0200 (CEST) Subject: How to insert a row with a TimeUUIDType column in C++ From: Olivier Rosello To: user@cassandra.apache.org Content-Type: text/plain; charset="UTF-8" Organization: Free Mobile Date: Fri, 23 Apr 2010 11:59:50 +0200 Message-ID: <1272016790.4661.114.camel@neptune> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-1.345 tagged_above=-10 required=2.8 tests=[ALL_TRUSTED=-1.8, AWL=-0.676, BAYES_50=0.001, DNS_FROM_OPENWHOIS=1.13] autolearn=no Here is my test code : ColumnPath new_col; new_col.__isset.column = true; /* this is required! */ new_col.column_family.assign("Incoming"); new_col.column.assign("1968ec4a-2a73-11df-9aca-00012e27a270"); client.insert("MyKeyspace", "somekey", new_col, "Random Value", time(NULL), ONE); I didn't found in the C++ Cassandra/Thrift API how to specify TimeUUID bytes (16) to the column name. The ColumnPath type get only a string field for the name "column". With a String like this example shows, the TimeUUID is a 36 chars String and this code throws a Exception "UUIDs must be exactly 16 bytes". I didn't found a function like "client.insert_timeuuid_column" which convert the column name to an uint8_t[16]... or anything else which could help me. Cheers, Olivier -- Olivier