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 358707CDD for ; Wed, 23 Nov 2011 21:31:04 +0000 (UTC) Received: (qmail 33336 invoked by uid 500); 23 Nov 2011 21:31:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 33293 invoked by uid 500); 23 Nov 2011 21:31:04 -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 33285 invoked by uid 99); 23 Nov 2011 21:31:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 21:31:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Wed, 23 Nov 2011 21:31:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 22D8B9A75A for ; Wed, 23 Nov 2011 21:30:40 +0000 (UTC) Date: Wed, 23 Nov 2011 21:30:40 +0000 (UTC) From: "Jonathan Ellis (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1253730086.7375.1322083840144.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <523520112.38216.1319977412427.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3424) Selecting just the row_key returns nil instead of just the row_key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156297#comment-13156297 ] Jonathan Ellis commented on CASSANDRA-3424: ------------------------------------------- Hmm. I don't think there's a quick fix for this. StorageProxy/ReadVerbHandler doesn't distinguish between "row exists but not the columns you wanted" (should include empty row in the resultset) and "row doesn't exist at all" (should not). > Selecting just the row_key returns nil instead of just the row_key > ------------------------------------------------------------------ > > Key: CASSANDRA-3424 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3424 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Kelley Reynolds > Assignee: Jonathan Ellis > Priority: Minor > Labels: cql > Fix For: 1.0.3 > > Attachments: 3424-v2.txt, CASSANDRA-3424.patch > > > CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1 > USE CassandraCQLTestKeyspace > CREATE COLUMNFAMILY row_key_validation_cf_ascii (id ascii PRIMARY KEY, test_column text) > INSERT INTO row_key_validation_cf_ascii (id, test_column) VALUES ('test string', 'test') > # Works as expected > SELECT * FROM row_key_validation_cf_ascii WHERE id = 'test string' > # Returns an empty result, unexpected > SELECT id FROM row_key_validation_cf_ascii WHERE id = 'test string' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira