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 B4E707362 for ; Thu, 28 Jul 2011 03:54:37 +0000 (UTC) Received: (qmail 88354 invoked by uid 500); 28 Jul 2011 03:54:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 87990 invoked by uid 500); 28 Jul 2011 03:54: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 87829 invoked by uid 99); 28 Jul 2011 03:54:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 03:54:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 03:54:03 +0000 Received: by iye7 with SMTP id 7so2906964iye.31 for ; Wed, 27 Jul 2011 20:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=4kHtjxRBPqnzdax75QwIMaPW8oiMUJm2uNIMk0H9KxE=; b=STjTdBe2UAwNd1RgY+mNEDkNenTRmQNkrhF4/D7aRS7mc+2BBsQaNpmWjO3+bNY69V rcE56dV+dNjJ/ATdxUYfkn6iEW7w0F9tVZJkxuoCqRP+LkxNwgccVzk/+ow/8UU/okiQ EQjA0c+BnD3WKqlpBnyF6S1PGqxyFeEVYy5dw= MIME-Version: 1.0 Received: by 10.43.130.200 with SMTP id hn8mr304939icc.269.1311825222682; Wed, 27 Jul 2011 20:53:42 -0700 (PDT) Received: by 10.42.18.137 with HTTP; Wed, 27 Jul 2011 20:53:42 -0700 (PDT) Date: Wed, 27 Jul 2011 23:53:42 -0400 Message-ID: Subject: Changing the CLI, not a great idea! From: Edward Capriolo To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf307f33d067c93304a9191cf4 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307f33d067c93304a9191cf4 Content-Type: text/plain; charset=ISO-8859-1 Notice how users react to these things. At one point for example we decided to add a ';' to the CLI. http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412 The initial chapters on downloading and installing the product get the reader started using Cassandra immediately. Then the bumps in the road appear. The current version of Cassandra requires a semicolon to end each statement in the command line interface (CLI) client - that 's missing in the book. This is noted in the errata on the O'Reilly site as "unconfirmed", and if you're coming from a MySQL/Oracle background it's something you might try, otherwise, it's frustrating. It confuses users and here is the kicker: [default@app] use app; use app; Syntax error at position 9: missing EOF at 'use' You can not even put two statements on the same line. So the ';' is semi useless syntax. What have learned we learned from this? [default@app] set people['ecapriolo']['last']='capriolo'; org.apache.cassandra.db.marshal.MarshalException: cannot parse 'last' as hex bytes Ow dear... are you saying... [default@app] set people[ascii('ecapriolo')][ascii('last')]=ascii('capriolo'); Value inserted. Is their a way to move things forward without hurting backwards compatibility of the CLI? Edward --20cf307f33d067c93304a9191cf4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Notice how users react to these things. At one point for example we decided= to add a ';' to the CLI.

http://www.amazon.com/= Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412

The initial chapters on downloading and installing the product get=20 the reader started using Cassandra immediately. Then the bumps in the=20 road appear. The current version of Cassandra requires a semicolon to=20 end each statement in the command line interface (CLI) client - that 's= =20 missing in the book. This is noted in the errata on the O'Reilly site= =20 as "unconfirmed", and if you're coming from a MySQL/Oracle ba= ckground=20 it's something you might try, otherwise, it's frustrating.

It confuses users and here is the kicker:

[default@app] use = app; use app;
Syntax error at position 9: missing EOF at 'use'
You can not even put two statements on the same line. So the ';&#= 39; is semi useless syntax.

What have learned we learned from this?

[default@app] set people= ['ecapriolo']['last']=3D'capriolo';=A0=A0=A0=A0=A0= =A0
org.apache.cassandra.db.marshal.MarshalException: cannot parse '= ;last' as hex bytes

Ow dear... are you saying...
[default@app] set people[ascii('eca= priolo')][ascii('last')]=3Dascii('capriolo');
Value = inserted.

Is their a way to move things forward without hurting back= wards compatibility of the CLI?

Edward
--20cf307f33d067c93304a9191cf4--