You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by David Boxenhorn <da...@taotown.com> on 2011/05/02 12:22:12 UTC
Terrible CQL idea: > and < aliases of >= and <=
Is this still true?
*Note: The greater-than and less-than operators (> and <) result in key
ranges that are inclusive of the terms. There is no supported notion of
“strictly” greater-than or less-than; these operators are merely supported
as aliases to >= and <=.
*
I think that making > and < aliases of >= and <= is a terrible idea!
First of all, it is very misleading. Second, what will happen to old code
when > and < are really supported? (*Some* day they will be supported!)
Re: Terrible CQL idea: > and < aliases of >= and <=
Posted by Jonathan Ellis <jb...@gmail.com>.
Created https://issues.apache.org/jira/browse/CASSANDRA-2592 to address this.
On Mon, May 2, 2011 at 10:46 AM, Eric Evans <ee...@rackspace.com> wrote:
> On Mon, 2011-05-02 at 10:41 -0500, Jonathan Ellis wrote:
>> Where is that happening then? RelationType.forString is not lossy,
>> and neither is the RelationType -> IndexExpression conversion in
>> getIndexedSlices.
>
> WhereClause.and(Relation) where it assigns start/end keys.
>
> --
> Eric Evans
> eevans@rackspace.com
>
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com
Re: Terrible CQL idea: > and < aliases of >= and <=
Posted by Eric Evans <ee...@rackspace.com>.
On Mon, 2011-05-02 at 10:41 -0500, Jonathan Ellis wrote:
> Where is that happening then? RelationType.forString is not lossy,
> and neither is the RelationType -> IndexExpression conversion in
> getIndexedSlices.
WhereClause.and(Relation) where it assigns start/end keys.
--
Eric Evans
eevans@rackspace.com
Re: Terrible CQL idea: > and < aliases of >= and <=
Posted by Jonathan Ellis <jb...@gmail.com>.
Where is that happening then? RelationType.forString is not lossy,
and neither is the RelationType -> IndexExpression conversion in
getIndexedSlices.
On Mon, May 2, 2011 at 10:30 AM, Eric Evans <ee...@rackspace.com> wrote:
> On Mon, 2011-05-02 at 09:29 -0500, Jonathan Ellis wrote:
>> 80% sure that is an obsolete comment.
>>
>> Eric, can you verify?
>
> No, it's true.
>
> --
> Eric Evans
> eevans@rackspace.com
>
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com
Re: Terrible CQL idea: > and < aliases of >= and <=
Posted by Eric Evans <ee...@rackspace.com>.
On Mon, 2011-05-02 at 09:29 -0500, Jonathan Ellis wrote:
> 80% sure that is an obsolete comment.
>
> Eric, can you verify?
No, it's true.
--
Eric Evans
eevans@rackspace.com
Re: Terrible CQL idea: > and < aliases of >= and <=
Posted by Jonathan Ellis <jb...@gmail.com>.
80% sure that is an obsolete comment.
Eric, can you verify?
On Mon, May 2, 2011 at 5:22 AM, David Boxenhorn <da...@taotown.com> wrote:
> Is this still true?
>
> Note: The greater-than and less-than operators (> and <) result in key
> ranges that are inclusive of the terms. There is no supported notion of
> “strictly” greater-than or less-than; these operators are merely supported
> as aliases to >= and <=.
>
> I think that making > and < aliases of >= and <= is a terrible idea!
>
> First of all, it is very misleading. Second, what will happen to old code
> when > and < are really supported? (Some day they will be supported!)
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com