Skip Menu |

This queue is for tickets about the Net-Async-CassandraCQL CPAN distribution.

Report information
The Basics
Id: 99129
Status: resolved
Priority: 0/
Queue: Net-Async-CassandraCQL

People
Owner: Nobody in particular
Requestors: CELOGEEK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.11
Fixed in: (no value)



Subject: CQL3 indicate as supported but doesn't work
Version : Cassandra 2.1 Net-Async-CassandraCQL-0.11 Protocol-CassandraCQL-0.11 my $cass = Net::Async::CassandraCQL->new( host => "localhost", keyspace => "MyKS", default_consistency => CONSISTENCY_ONE, cql_version => 3, ); The program report : Unsupported version
Ah, this is one of those terribly bad misfortunes of naming. In the world of Cassandra there are /two/ separate things that are called "CQL" and have version numbers: * The Cassandra Query Language, those strings that look a bit like SQL with such statements as "INSERT" and "SELECT". The current version of that is 3.0.5, last time I looked. * The CQL wire format used to communicate these things. The current version of that is 2, last time I looked. The 'cql_version' parameter defines the /latter/ of these versions - that should be either 1 or 2. As far as I know there is no version 3 of the wire format. I expect the confusion here is that you're wanting to use CQL language version 3 - this is already supported. You'll want to ask for wire format 2 most likely, unless your server cluster is sufficiently old as to only support 1. It's confusing I know, but that's the terminology that Datastax came up with for Cassandra. :/ -- Paul Evans
Le Jeu 09 Oct 2014 08:37:23, PEVANS a écrit : Show quoted text
> Ah, this is one of those terribly bad misfortunes of naming. > > In the world of Cassandra there are /two/ separate things that are > called "CQL" and have version numbers: > > * The Cassandra Query Language, those strings that look a bit like SQL > with such statements as "INSERT" and "SELECT". The current version of > that is 3.0.5, last time I looked. > > * The CQL wire format used to communicate these things. The current > version of that is 2, last time I looked. > > The 'cql_version' parameter defines the /latter/ of these versions - > that should be either 1 or 2. As far as I know there is no version 3 > of the wire format. > > I expect the confusion here is that you're wanting to use CQL language > version 3 - this is already supported. You'll want to ask for wire > format 2 most likely, unless your server cluster is sufficiently old > as to only support 1. > > It's confusing I know, but that's the terminology that Datastax came > up with for Cassandra. :/
Thanks. I close the ticket