Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9CE336A1 for ; Tue, 3 May 2011 01:50:43 +0000 (UTC) Received: (qmail 32556 invoked by uid 500); 3 May 2011 01:50:42 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 32518 invoked by uid 500); 3 May 2011 01:50:42 -0000 Mailing-List: contact commits-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 commits@cassandra.apache.org Received: (qmail 32457 invoked by uid 99); 3 May 2011 01:50:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 01:50:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 01:50:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6E434BEBA3 for ; Tue, 3 May 2011 01:50:03 +0000 (UTC) Date: Tue, 3 May 2011 01:50:03 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <838947946.17215.1304387403448.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1423449126.17088.1304383803109.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-2593) CQL: Errors when running unqualified "select column" statement (no where clause) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-2593: -------------------------------------- Component/s: API Affects Version/s: (was: 0.8.0) 0.8 beta 1 Fix Version/s: 0.8.0 Assignee: Pavel Yaskevich > CQL: Errors when running unqualified "select column" statement (no where clause) > --------------------------------------------------------------------------------- > > Key: CASSANDRA-2593 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2593 > Project: Cassandra > Issue Type: Bug > Components: API > Affects Versions: 0.8 beta 1 > Reporter: Cathy Daw > Assignee: Pavel Yaskevich > Priority: Minor > Labels: cql > Fix For: 0.8.0 > > > *Seed Data* > {code} > CREATE KEYSPACE cqldb with strategy_class = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options:replication_factor=2; > USE cqldb; > CREATE COLUMNFAMILY users (KEY varchar PRIMARY KEY, password varchar, gender varchar, session_token varchar, state varchar, birth_year bigint); > INSERT INTO users (KEY, password) VALUES ('user0', 'ch@ngem3'); > INSERT INTO users (KEY, password, gender, state, birth_year) VALUES ('user1', 'ch@ngem3a', 'f', 'TX', '1968'); > INSERT INTO users (KEY, password) VALUES ('user2', 'ch@ngem3b'); > INSERT INTO users (KEY, password) VALUES ('user3', 'ch@ngem3c'); > {code} > *Query #1 - select varchar column* > {code} > cqlsh> select state from users; > u'user1' | u'state',u'TX' > Exception: 'NoneType' object has no attribute 'decode' > cqlsh> select birth_year from users where KEY='user1'; > u'user1' | u'birth_year',1968 > {code} > *Query #2 - select bigint column* > {code} > cqlsh> select birth_year from users; > Exception: unpack requires a string argument of length 8 > cqlsh> select state from users where KEY='user1'; > u'user1' | u'state',u'TX' > {code} > *A simple 'SELECT *' with no WHERE clause works fine* > {code} > cqlsh> select * from users; > u'user1' | u'birth_year',1968 | u'gender',u'f' | u'password',u'ch@ngem3a' | u'state',u'TX' > u'user0' | u'password',u'ch@ngem3' > u'user3' | u'password',u'ch@ngem3c' > u'user2' | u'password',u'ch@ngem3b' > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira