You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Gareth Collins <ga...@gmail.com> on 2013/03/29 05:39:00 UTC

CQL3 And Map Literals

Hello,

I have been playing with map literals in CQL3 queries. I see that
single-quotes work:

{'foo':'bar'}

but double-quotes do not:

{"foo":"bar"}

I am curious. Was there a specific reason why it was decided to use
single-quotes?
I ask because double-quotes would make this valid json.

thanks in advance,
Gareth

Re: CQL3 And Map Literals

Posted by aaron morton <aa...@thelastpickle.com>.
> I am curious. Was there a specific reason why it was decided to use
> single-quotes?
ANSII SQL compatible. 
(Am offline now and cannot confirm, but years of writing SQL with single quotes makes me think of that. )

Cheers

-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 29/03/2013, at 10:09 AM, Gareth Collins <ga...@gmail.com> wrote:

> Hello,
> 
> I have been playing with map literals in CQL3 queries. I see that
> single-quotes work:
> 
> {'foo':'bar'}
> 
> but double-quotes do not:
> 
> {"foo":"bar"}
> 
> I am curious. Was there a specific reason why it was decided to use
> single-quotes?
> I ask because double-quotes would make this valid json.
> 
> thanks in advance,
> Gareth