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 1B51A10B1A for ; Sun, 11 Aug 2013 01:20:48 +0000 (UTC) Received: (qmail 81747 invoked by uid 500); 11 Aug 2013 01:20:47 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 81723 invoked by uid 500); 11 Aug 2013 01:20:47 -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 81714 invoked by uid 99); 11 Aug 2013 01:20:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Aug 2013 01:20:47 +0000 Date: Sun, 11 Aug 2013 01:20:47 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CASSANDRA-5875) Ambiguous error message: "You must specify one and only one PRIMARY KEY" 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-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis reassigned CASSANDRA-5875: ----------------------------------------- Assignee: Lyuben Todorov > Ambiguous error message: "You must specify one and only one PRIMARY KEY" > ------------------------------------------------------------------------ > > Key: CASSANDRA-5875 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5875 > Project: Cassandra > Issue Type: Improvement > Reporter: Jacob Rhoden > Assignee: Lyuben Todorov > Priority: Minor > > Minor issue, but might be beneficial for new people. I was _missing_ a primary key but thought it meant there was more than one primary key, and was confused for a minute. Here is the current error: > Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: You must specify one and only one PRIMARY KEY > at com.datastax.driver.core.ResultSetFuture.convertException(ResultSetFuture.java:252) > at com.datastax.driver.core.ResultSetFuture$ResponseCallback.onSet(ResultSetFuture.java:119) > at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:202) > at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:319) > Recommend considering two different error messages, ie: > - No primary keys were found, when exactly one is required. > - Multiple primary keys were found, when exactly one may be specified. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira