You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2016/06/02 16:50:59 UTC

[jira] [Resolved] (CASSANDRA-10235) Support for queries with extra parentheses

     [ https://issues.apache.org/jira/browse/CASSANDRA-10235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksey Yeschenko resolved CASSANDRA-10235.
-------------------------------------------
    Resolution: Won't Fix

This has come up before, and every time the resolution is the same: CQL is not SQL, and we are not going to please a random SQL ORM by adding syntax to CQL that doesn't make sense.

> Support for queries with extra parentheses
> ------------------------------------------
>
>                 Key: CASSANDRA-10235
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10235
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Tom van der Woerdt
>
> Currently, Cassandra does not support queries that have top-level parentheses around them :
> {noformat}
> select * from table where (a = 1 and b = 2);
> {noformat}
> One could argue that these are pointless here, but some automated ORM code may output these assuming that the database will handle them properly.
> Since Cassandra does not support OR, it could just ignore these parentheses and have compatibility with those ORMs again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)