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 434AA97CE for ; Thu, 1 Mar 2012 21:42:21 +0000 (UTC) Received: (qmail 94609 invoked by uid 500); 1 Mar 2012 21:42:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94572 invoked by uid 500); 1 Mar 2012 21:42:18 -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 94564 invoked by uid 99); 1 Mar 2012 21:42:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 21:42:17 +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 database.craftsman@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 21:42:13 +0000 Received: by yenm5 with SMTP id m5so592098yen.31 for ; Thu, 01 Mar 2012 13:41:52 -0800 (PST) Received-SPF: pass (google.com: domain of database.craftsman@gmail.com designates 10.236.146.6 as permitted sender) client-ip=10.236.146.6; Authentication-Results: mr.google.com; spf=pass (google.com: domain of database.craftsman@gmail.com designates 10.236.146.6 as permitted sender) smtp.mail=database.craftsman@gmail.com; dkim=pass header.i=database.craftsman@gmail.com Received: from mr.google.com ([10.236.146.6]) by 10.236.146.6 with SMTP id q6mr9977668yhj.90.1330638112528 (num_hops = 1); Thu, 01 Mar 2012 13:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=295C6e65jdKUlh8ujyDQqZ5yH+Je4Ly8HSKLNBrGjJw=; b=Aqya5BGNcqdp5pIQgfhrqX7M1DuAV53LKVx3WTiKoV3LqUAB7C2Z5mao5rcHqmV6hE SEGRTCgSsPqjet1+lp4UKRL6xdLZXjqy2cQbD8we/sU2tzSCKiOq7g07Srk28cobq4Yp v0HmfDKTB6/rIl5gHlz1dFnezqaQxHMXlUmpPKPzrqWQST68xQRcvVB9brXDkjJA0uji ZaM7f6Wlmboqr4pjkShmrG5t/CyVfrpn3w4NPAOKy9LRVgdLNR5xS3/rtfe541uCceZF DqI1ja7vsTj+/sY8eYbmk92oykuIrNWeUsDNliqFHl8SzPhzJziL5TdaBB3bCVPzychd ZDVQ== MIME-Version: 1.0 Received: by 10.236.146.6 with SMTP id q6mr7886384yhj.90.1330638112265; Thu, 01 Mar 2012 13:41:52 -0800 (PST) Received: by 10.146.50.14 with HTTP; Thu, 1 Mar 2012 13:41:52 -0800 (PST) Date: Thu, 1 Mar 2012 13:41:52 -0800 Message-ID: Subject: Composite primary key does not work on Cassandra 1.1.0-beta1 From: Data Craftsman To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Howdy, Here is the the CQL and error. Did I do something wrong? /home/cassandra>cqlsh Connected to Test Cluster at localhost:9160. [cqlsh 2.1.0 | Cassandra 1.1.0-beta1 | CQL spec 2.0.0 | Thrift protocol 19.= 28.0] Use HELP for help. cqlsh> use demo; cqlsh:demo> CREATE TABLE timeline ( ... user_id varchar, ... tweet_id uuid, ... author varchar, ... body varchar, ... PRIMARY KEY (user_id, tweet_id) ... ); Bad Request: line 7:0 mismatched input ')' expecting EOF cqlsh:demo> Reference:=A0http://www.datastax.com/dev/blog/schema-in-cassandra-1-1 Thanks, Charlie | DBA