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 05F9710714 for ; Wed, 11 Feb 2015 10:07:24 +0000 (UTC) Received: (qmail 54754 invoked by uid 500); 11 Feb 2015 10:07:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 54712 invoked by uid 500); 11 Feb 2015 10:07:12 -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 54700 invoked by uid 99); 11 Feb 2015 10:07:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2015 10:07:12 +0000 Date: Wed, 11 Feb 2015 10:07:12 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8781) SELECT * FROM cf WHERE (id=1) AND (id=1); error 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-8781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-8781: ---------------------------------------- Assignee: Benjamin Lerer > SELECT * FROM cf WHERE (id=1) AND (id=1); error > ----------------------------------------------- > > Key: CASSANDRA-8781 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8781 > Project: Cassandra > Issue Type: Improvement > Reporter: Sergey Nagaytsev > Assignee: Benjamin Lerer > Priority: Minor > > Error: CQLSTATE[HY000] [2] id cannot be restricted by more than one relation if it includes an Equal > Actual query is with UUID type, 1's are just for short. The column 'id' is the only primary key in column family. > The expression is perfectly logically valid and resolves to one or none record. > It was generated by framework's DBAL as the result of narrowing down the query. Fixing it on application side will take deep heavy rewrite of all DB libs in all languages. -- This message was sent by Atlassian JIRA (v6.3.4#6332)